06.Ajax2008. 7. 8. 17:21
반응형

http://code.google.com/apis/ajaxsearch/samples.html


Google AJAX Search API Samples

Simple Hello World

This sample application is the canonical "Hello World" of Google AJAX Search API. This simple application instantiates the search control in read-only mode.

Custom Search EnginesNew!

This sample demonstrates how to use Google Custom Search Engines in conjunction with the Google AJAX Search API. The sample integrates four custom search engines along with blog, video, and news search.

Video Bar SolutionNew!

This sample demonstrates the brand new GSvideoBar() solution. This is a very light weight solution that allows you to place a dynamic video bar vertically or horizontally on your page or blog. You can have multiple Video Bars on a page, all sharing a common video player. The Video Bar also composes nicely with the Video Search Control Solution. Take a look, and be sure to also visit our AJAX Search API Playground blog where we have integrated the Video Bar into the template.

Google AJAX Search API in TypePad

This sample demonstrates the use of the Google AJAX Search API including core web and blog search, the video search solution, and the map search control solution, all hosted in a TypePad blog. The sample includes links to the TypePad module templates and instructions for applying this to your own TypePad based blog.

Google AJAX Search API in Blogger

Identical to the TypePad based solution, but designed for Blogger

Video Search Control Solution

This sample demonstrates the brand new GSvideoSearchControl() solution. This solution allows you to easily embed a rich video search control on your site, blog, etc. The control lets you search, tag, and play videos without leaving the page. The page is very easy to integrate into your applications and can be integrated in just a few lines of code. Feel free to copy and clone the solution to meet your needs, or use it as it stands.

Map Search Solution

This sample uses the brand new GSmapSearchControl() solution to show you how to add a a simple geo-oriented search control anywhere on your site with just a few lines of code. Feel free to copy and clone the solution to meet your needs, or use it as it stands. The sample linked to above demonstrates how to use it. If you can write this, new GSmapSearchControl(container, "1000 NE Multnomah, Portland, OR");, then you can easily add a nice little local search control to your site.

Phone List

This sample demonstrates how to build a "Phone List" of favorite restaurants, etc, using the Google Ajax Search API.

Blog Comment Form

This sample application demonstrates how you can incorporate the AJAX Search API in user composition. In this case, users can clip Google search results to their comments on a blog post.

My Favorite Places

This sample application shows how to to use the Google AJAX Search API to create a collection of favorite places. From a programming perspective, it demonstrates the use of a custom input element and direct use of GSearch objects.

Searchers and Options

This sample application demonstrates many of the programmable options of the Search Control, allowing you to select various searchers, drawing modes, etc.

Locale Selection

This sample application demonstrates the Google AJAX Search API running its UI in a variety of languages.

My Favorite Places #2

This sample application builds on the original My Favorite Places sample and is designed to demonstrate search result and search control dynamic styling, controlling the location of clipped search results, etc. Before diving into this sample, if would be a good idea to become familiar with the previous samples.

Wish List

Similar to the Lead Manager sample, this sample demonstrates building more complex lists, something like a "what I want for christmas list, or what I want for my birthday." This sample deomstrates search result clipping as well as site restricted search.

Video Search + Social Networks

This sample demonstrates how video search might integrate into social networking applications. Note the use of search result clipping to add a little video into a message as well as the ability to remember a search result into a stack of favorites.

Posted by 1010