Awesome LiveSearch up!

I decided to take a break from house renovation work today and install this new LiveSearch functionality (which was adapted by Michael Heilemann of Binary Bonsai). It works very similar to how Mac OS X Tiger’s Spotlight works. Upon entering a search term, it automatically shows you results, and by continuing to type, it narrows the results further. Pretty cool.

Of course, with such coolness comes the usual caveats: this does not work in Mac IE 5, Opera or OmniWeb. I do have some visitors that use Opera, but I haven’t seen any that prefer OmniWeb or Mac IE 5. As such, I do not believe this feature loss affects that many users. A curious anomaly has popped up in final testing in Safari: the links properly change the cursor to the pointing hand when hovering above them, but clicking them does nothing. It would appear that the click is going through the absolutely positioned div containing the results. I have a z-index of 100 set on the search results, so I am not sure why clicks are passing through it as though it were not there. Any help here?

Otherwise, I am quite pleased with this wonderful use of JavaScript to create a more-usable search feature. WordPress’ built-in search is quite lacking, and I plan to overhaul that when I find the time. For now, clicking the “Show more results…” link will take the user to WordPress’ search results (all the posts in full matching any of the search terms).

Hopefully, I can get that (huge) Safari problem of non-working links functioning properly, then I think I’ll be set in this regard! I am not sure if the problem is z-index related or what. If so, the problem may have something to do with the discussion over at Surfin’ Safari about the CSS 2.1 Specifications and the Z-index property.


About this entry

Related entries