Articles Comments

Marco Luthe Online! » WordPress Stuff » WordPress Plugin “Live Search Popup”

WordPress Plugin “Live Search Popup”

I always wanted to add an AJAX-style search to my website – thanks to this nice plugin, I could easily add it. It needed some customization, though, because the colors would not quite fit my theme. Also, I wanted to make my site XHTML valid, but unfortunately, the plugin uses two attributes which are not within the standard: “autocomplete” and “placeholder”.

I realized that I do not need “placeholder”, and I turn on the autocomplete feature with JavaScript, instead – I simply added it to the ls.init function within the live_search.js:

init:function() {
document.getElementById("s").setAttribute("autocomplete","off");
(...)

I actually got this JavaScript trick from the Mozilla Wiki.

This plugin is awesome – thanks for providing it!

[Update from 2007-11-15]

Thanks to Stefan for implementing my suggested “show all” feature!

Filed under: WordPress Stuff · Tags: , , ,

  • http://1stein.org Schimmi

    I integrated this into Live Search Popup version 1.3.4. Thanks for the hint.

  • http://www.saphod.net Marco

    You’re welcome.

blog comments powered by Disqus