AjaxSearch
AjaxSearch 1.9.0-Finale
Ajax and non-Ajax search that supports results highlighting
See:
- ajaxSearch_version_190.txt : release note with updates and improvements since 1.8.5
- ajaxSearch_readme.txt : gobal presentation of AjaxSearch
- cheatSheet : a quick overview of AjaxSearch parameters.
- /documentation/migrationFrom185To190.txt : how to migrate from 1.8.5 to 1.9.0
- Bugs & features tracker : http://svn.modxcms.com/jira/browse/AJAXSEARCH
- Demo site : http://www.modx2.wangba.fr
Download
- ajaxsearch190-6976.zip - 311 kb (461 downloads)
Description
This snippet creates a search box and the results form. The search results are loaded right in the page for the user. If the user does not have javascript, the snippet will use the default searching of the FlexSearchForm snippet. A search term highlighting plugin has been included as well.
The search could be limited to a subset of documents with the use of parents or documents parameters.
You could use AjaxSearch with your own custom tables.
If the user does not have javascript enabled they can still search your site. In this case the search results are returned in a new page.
You can also include search term highlighting that is carried through to the linked page.
It could works in two modes:
ajaxSearch mode :
- Search results displayed in current page through AJAX request
- Multiple search options including live search and non-AJAX option
- Available link to view all results in a new page when only a subset is retuned
- Customize the number of results returned
- Uses the MooTools or jQuery js library for AJAX and visual effects
non-ajaxSearch mode :
- Search results displayed in a new page
- customize the paginating of results
- works without JS enabled as FlexSearchForm
- designed to load only the required non-ajaxSearch code
Instructions
Follow these steps to install this snippet:
- Copy the contents of the file snippet.ajaxSearch.php into a new snippet named AjaxSearch
- Create a directory named ajaxSearch under the assets/snippets folder.
- Open the ajaxSearch.js file and set the loading & close image path to an image you want to display while the search is working.
- Copy the files from the zip to the ajaxSearch folder.
- Add the snippet call like the following: !AjaxSearch? &showResults=`0` &landingPage=`17` &showMoreResults=`1` &moreResultsPage=`17`!
- Use the styles to customize the look of your output.
- Test and see the search working with AJAX
- Setup a new page (landingPage and moreResultsPage) with the snippet call to display all your results: !AjaxSearch? &showInputForm=`0` &ajaxSearch=`0`!
Released Versions
Releases that are grayed out are deprecated.
| Version | Released | Author | Downloads |
|---|---|---|---|
| Total Versions: 11 | Total Downloads: 15,053 | ||
| 1.9.0-Finale | Jun 08, 2010 | coroico | 461 |
| 1.8.5-Finale | Apr 07, 2010 | coroico | 331 |
| 1.8.4-final | Oct 27, 2009 | coroico | 33 |
| 1.8.3a-final | Sep 01, 2009 | coroico | 548 |
| 1.8.2-b | coroico | 375 | |
| 1.8.1 | Jun 16, 2009 | coroico | 1,450 |
| 1.8.0 | Jun 16, 2009 | coroico | 1,295 |
| 1.7.1 | Jun 16, 2009 | coroico | 2,135 |
| 1.7.0.2 | Jun 16, 2009 | coroico | 1,585 |
| 1.6 | Jun 16, 2009 | kylej | 2,739 |
| 1.0 | Jun 16, 2009 | kylej | 4,101 |
Download Statistics
Package downloads per day since tracking began on June 27th, 2010. Weekends are colored. Plot below shows an overview.
Top Countries
This is a list of the countries most downloading this Extra.
| Country | Downloads |
|---|---|
| United States | 141 |
| Russian Federation | 81 |
| Germany | 43 |
| United Kingdom | 32 |
| France | 21 |
| Australia | 16 |
| Ukraine | 15 |
| Japan | 14 |
| Romania | 12 |
| Czech Republic | 11 |




