开发者

Home Baked Google Instant (Just the fancy AJAX)

开发者 https://www.devze.com 2023-01-16 13:46 出处:网络
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 web

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消