1

I'm trying to find a tutorial or script that has most of the Google Instant functionality but I would be hit my API instead of Google and then displaying results from my domain.

beactive
  • 759
  • 1
  • 7
  • 12

2 Answers2

3

It's just an AJAX autocomplete. jQuery UI has a built-in autocompleter that's very easy to work with.

ceejayoz
  • 176,543
  • 40
  • 303
  • 368
  • Note that the search (which is the actual core of the functionality) must be done by the backend, or a pre-defined array of results must be provided. – Piskvor left the building Dec 20 '10 at 17:17
  • 2
    Yep. As he mentioned hitting his own API, I figured he has enough knowledge of that end of stuff. – ceejayoz Dec 20 '10 at 17:26
  • 1
    I think he's talking about the feature on Google that changes the whole result page as you type, not the input's autocomplete. – Ben Dec 20 '10 at 17:30
  • I can get the auto complete to work I need to figure out how to change the results page based on the selected word in the autocomplete. – beactive Dec 20 '10 at 17:41
  • Can anyone help this problem? – beactive Dec 22 '10 at 04:58
  • I found this script using the Google custom search engine api and works great. I can modify this to my needs. http://www.rsc-ne-scotland.org.uk/mashe/2010/09/google-custom-instant/ – beactive Dec 28 '10 at 18:38
0

Here is a tutorial: http://woorkup.com/2010/09/13/how-to-create-your-own-instant-search/

You can also look at the source of the many available jQuery plugins for that purpose (google for "live search", "instant search" or similar). For instance, this one: http://ejohn.org/blog/jquery-livesearch/

Cito
  • 5,365
  • 28
  • 30