I read Digg daily. Recently an article hit the front page on how to add an animated live search to your WordPress blog. Since I have been looking at AJAX solutions for the internship project, I figured it would be a neat thing to try. So now there is a new search tool over there in the sidebar. Let me know if you have any suggestions or problems with it.
I’ve also added several new categories and gone back and recategorized all of my posts. I corrected a few problems that slipped in during the conversion from iBlog too. Not a big deal but worth noting.
i also implemented this live search but it doesn’t work out. i’m sure that i did exactly what the tutorial has said…but any submission of the search form on my wordpress still calls the original search function, which results in page reload and url changes (http://domain/?s=searchterm)…i wonder if you could figure something out…thanks!
The search URL should be http://domain/?s=searchterm&ajax, not http://domain/?s=searchterm.
The following line in the JavaScript is what adds the &ajax to the end of the URL, which is what tells the search code to return an “ajax” results page rather than the regular search results page.
pars = 's=' + escape(s) + '&ajax';
thanks a lot. i see your point.actually it wasw something weird with my server.i put all the code in another general.js and removed the previous one and everything got fine. faint.
Sweet. Glad to hear it. It can be a bitch debugging this kind of stuff.