Skip to content

Search and Category Updates

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.

{ 4 } Comments

  1. roc | June 14, 2006 at 9:58 am | Permalink

    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!

  2. aberkvam | June 15, 2006 at 12:21 am | Permalink

    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';

  3. roc | June 16, 2006 at 12:30 am | Permalink

    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.

  4. aberkvam | June 16, 2006 at 2:22 am | Permalink

    Sweet. Glad to hear it. It can be a bitch debugging this kind of stuff.

Post a Comment

Your email is never published nor shared. Required fields are marked *