Ajax & GoogleSaturday, October 28th, 2006

Playing with Google Ajax Search API

googlecode

Since last post I’ve been playing with Google Ajax Search API. There is a lot of potencial in a inconspicuous search result presented by the Google Search, especially when we can implement it in various way on the website.

Today, I present two solutions, which I use on my blog. First, is a simple search form, which works same like Google Serach box. The main diffrence from that published on a Google Ajax Search API examples, is that the results are displayed on speciffied page, not restricted to the same page with search form. Query is submitted to the search.php using POST method, and the rest is done by a Google Ajax code. The advantage of that solution is the page independent search box. (You can find this search box at the top of this website).

Second thing, which I created using Google Ajax Search Api is something what i called “green-links”. The Green-links are links to the Google Search results that refers to the specified keywords (or phrases). When you click on the green-link the page will scroll to Google Search Results Panel. You will not lose your thread, because when you click on a “close” button on the Google Search Results Panel, results will be closed and the page will be scrolled back to the green-link. Simple! You can test it in the last post.


2 Responses to “Playing with Google Ajax Search API”

September 11th, 2008

Catherine

Hi there. Would you be able so kind as to send me instructions or code as to how you got your google cse to display its google search ajax api results on a specified page? I would greatly appreciate it! Thank you!

October 3rd, 2008

Chris

I too would be interested in exactly how you pulled this off. A simple explanation, code, or whatever would be appreciated.


Leave a Reply

  • Name: (required)
  • E-mail: (not required/will not be published)
  • Website:
  • Comment: (required)
  • Enter Above Code:
  • Letters left: 255
  • Note: Your comment will appear on the site within a few hours after you submit it.