Is it possible to add option to disable mootools in ajaxSearch?
or how to do it manually
this library is very heavy, and is not much usefull for ajaxsearch tasks
-
MODX Staff
- 12,272 Posts
If you want the ability to search and return results without reloading the page then mootools is required. If you’re not interested in that you can use it wihout.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
but the original ahah javascript reload
innerhtml
and also manipulate DOM
without any mootools
and about 2kb size
-
MODX Staff
- 12,272 Posts
I’m sure you can do that then assuming it has the appropriate tools to perform the Ajax request.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Just noted that there’s a parameter in the Snippet $minChars to restrict the minimum number of characters constituting a search term.
Wondered whether perhaps this could be a parameter that could be passed to the Snippet in future versions?
We had an issue recently where the site needed searches to work for a number of acronyms of 2 characters or more, and we had to change the value in the snippet rather than being able to set it in the Snippet call. Not a major, just thinking about having to remember to update this in the code later when/if we update to a later AjaxSearch version. Of course I’d have to remember to update it in the call if the change were to be made now so either way I’ll just have to remember!
;-)
Sorry if this has been posted before but is there a way to include private documents in the search results of ajaxsearch without a web user having to login?
Thanks!
-
MODX Staff
- 12,272 Posts
myan24, I don’t think so, but you might check the parameters in the code itself.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me