Anyone know how you could duplicate the instant nature of Google Instant? I'm trying to create a similar functionality with hand carve开发者_高级运维d results (basically a huge if statement) on a website.
Some more clarification:
If a user were to type 'phone' in a search bar, contact information would instantly appear below.
more clarification: I don't really want predictive results, just simply returning results based on keyword instantly below the input bar.
So you want to move the search box on the first keystroke in a box then use ajax to retrieve results? Sounds like the bulk of what you're asking to do...
Business statements -> code
Try this post http://www.rsc-ne-scotland.org.uk/mashe/2010/09/google-custom-instant/ It's a very simple implementation using jquery and Google custom search returning JSON.
精彩评论