AjaxSearch ver. 1.6
The AjaxSearch snippet is an enhanced version of the original FlexSearchForm snippet for MODx. This snippet adds AJAX functionality on top of the robust content searching. There are two seperate ways to handle the dynamic searching with either live search functionailty or by allowing the user to start the search with the typical form buttom. Both return the results in the current window with some nice effects.
Parameters
- &ajaxSearch
- default: 1
- values: [ 0 | 1 ]
- description: Enable/disable the AJAX functionality.
- &ajaxSearchType
- default: 0
- values: [ 0 | 1 ]
- description: Set this to 1 if you would like to use the live search (i.e. results as you type).
- &ajaxMax
- default: 5
- values: [ int ]
- description: The number of results you would like returned from the ajax search.
- &showMoreResults
- default: 1
- values: [ 0 | 1 ]
- description: If you want a link to show all of the results from the AJAX search.
- &moreResultsPage
- default: 1
- values: [ int ]
- description: Page you want the more results link to point to. This page should contain another call to this snippet for displaying results.
- &addJscript
- default: 1
- values: [ 0 | 1 ]
- description: If you want the MooTools library added to the header of your pages automatically set this to 1.
- &AS_showForm
- default: 1
- values: [ 0 | 1 ]
- description: Show the search form with the results.
- &AS_landing
- default: 1
- values: [ 0 | 1 ]
- description: Document id you would like the search to show on. (For non-ajax search)
- &AS_showResults
- default: 1
- values: [ 0 | 1 ]
- description: Show the results with the snippet. (For non-ajax search)
- &extract
- default: 1
- values: [ 0 | 1 ]
- description: Displays an extract from the searched content including search words highlighting.
- &grabMax
- default: 10
- values: [ int ]
- description: The number of results per page returned for non-ajax search and for the more results page.