Home » Notebook » AjaxSearch now with MooTools

Site Menu

Search



AjaxSearch now with MooTools

As MODx makes its shift to using MooTools, I decided to go ahead and get AjaxSearch ported over. The search I have in my sidebar is using the latest version, and you can see it in action. Along with the conversion to MooTools, I added in some bug fixes and some new feautes including template and language file support.

The MooTools javascript framework was a breeze to learn, and really provides some great functionality. I think I will look at some more of the functionality to come up with some cool stuff for Wayfinder also. If you want to check out the framework go here: www.mootools.net.

Until quickedit gets converted to MooTools (which is happening right now), you will probably get some errors if you try to run your search while logged into the manager. So if you are using the prototype or scriptaculous libraries (maybe others too), you may experience some conflicts with the updated code.

Here is a list of things that have changed in this version.

  • Conversion to MooTools with enhanced functionality for the live search.
  • Addition of language file support.
  • Addition of template support for increased customization of the output.
  • Tweaked search code for better results.
  • Search Highlight Plugin enhanced for better results highlighting.

So go and get it!

Comments

If you have trouble reading the code, click on the code itself to generate a new random code.
Security Code:
 
Required fields are marked with *.
Comment

6

rxczvmrx rxczvmrx Fri December 21, 2007, 21:30:50

oetkrqcf http://wbovnjqv.com bkxqqkeb mmghijdm [URL=http://gkuavhak.com]hsjdgwcr[/URL] <a href="http://mnwozrnj.com">ifrnhqix</a>

Comment

5

... panic Fri February 23, 2007, 06:14:45

>>adding the parameter &ajaxSearch=`0` to the snippet call on the landing page

That did it. Thanks!

Comment

4

Search not working kjaebker Thu February 22, 2007, 12:09:09

panic, are you referring to the ajax returned results or the landing page for more results? If you are talking about the landing page try adding the parameter &ajaxSearch=`0` to the snippet call on the landing page to see if that corrects it.

Comment

3

not working with example data and templates panic Wed February 21, 2007, 01:40:41

Hi,

I've installed modx with sample data and templates. But after updating AjaxSearch to v1.6 I won't get any search results on the defined resultspage.
Why is that?

Comment

2

bsides error kjaebker Fri February 09, 2007, 08:17:53

Make sure that you have the latest version of MooTools. I generated the code for this based off of version 1.0, so you should be using that version or a newer one.

Comment

1

Error bsides Thu February 08, 2007, 05:27:52

I'm sorry for this, but I'm not getting it to work. Everytime I try, it get this error (tested with Firefox):

Error: Fx is not defined
http://ds.supr.com.br/assets/snippets/AjaxSearch/AjaxSearch.j s
Line: 1

Could you tell me what is it?

Thanks in advance.