<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Google Data &#187; Google Ajax API</title>
	<atom:link href="/category/google-ajax-api/feed/" rel="self" type="application/rss+xml" />
	<link>https://googledata.org</link>
	<description>Everything Google: News, Products, Services, Content, Culture</description>
	<lastBuildDate>Fri, 06 Jan 2017 18:14:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.13</generator>
	<item>
		<title>Fall Housekeeping</title>
		<link>https://googledata.org/google-ajax-api/fall-housekeeping-2/</link>
		<comments>https://googledata.org/google-ajax-api/fall-housekeeping-2/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 17:57:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[custom search engine]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=bee823b73f3362223aa1d13dbdb84ff2</guid>
		<description><![CDATA[When we <a href="http://googleajaxsearchapi.blogspot.com/2006_05_01_archive.html">introduced this blog</a> over four years ago, the term AJAX was only a year old, and Google had exactly one relevant API .  Ajax has since become a mainstream part of the Web, and our family of APIs has grown.  Like many growing families, we&#8217;ve accumulated a lot of cruft over the years, and have outgrown our first home.  Time for some housekeeping.<br /><br /><span>API Documentation - Now easier to find and use</span><br />We&#8217;ve reorganized our documentation to make it easier to find what you&#8217;re looking for, based on what you want to do.  We used to group our APIs based on technology - for instance, there were Google Data APIs and AJAX APIs.  Now, you&#8217;ll see that each API has been given its own place, including its own documentation pages.  This new documentation has been created from the ground up to provide a better experience for people coding against the APIs.  We&#8217;ve also organized these more logically by product, such as moving the Book Search API into the <a href="http://code.google.com/apis/books/docs/js/devguide.html">Books family of APIs</a>, and added many more samples to help you get started.<br /><br /><span>A fond farewell</span><br />In the spirit of consolidation, we&#8217;ll be retiring this blog in favor of the <a href="http://googlecode.blogspot.com/">Google Code Blog</a>.  By concentrating on fewer blogs, we&#8217;ll be able to keep the blog fresher and help make sure that as wide an audience as possible is able to benefit from our posts.  We&#8217;ll continue using tags, so that you can subscribe to your favorite APIs and focus on the content that most interests you (though we hope you&#8217;ll check in occasionally to see what new stuff you might be missing).<br /><br />Show your support for the Code blog by hopping over to read about the new <a href="https://code.google.com/apis/console/">Google APIs console</a> and <a href="http://code.google.com/apis/customsearch/v1/overview.html">Custom Search API</a>, and also say good-bye to the Web and Local Search APIs, which are being deprecated.  Full post <a href="http://googlecode.blogspot.com/2010/11/introducing-google-apis-console-and-our.html">here</a>.<br /><br />Posted by:  Adam Feldman, Product Manager]]></description>
				<content:encoded><![CDATA[When we <a href="http://googleajaxsearchapi.blogspot.com/2006_05_01_archive.html">introduced this blog</a> over four years ago, the term AJAX was only a year old, and Google had exactly one relevant API .  Ajax has since become a mainstream part of the Web, and our family of APIs has grown.  Like many growing families, we’ve accumulated a lot of cruft over the years, and have outgrown our first home.  Time for some housekeeping.<br /><br /><span style="font-weight: bold;">API Documentation - Now easier to find and use</span><br />We’ve reorganized our documentation to make it easier to find what you’re looking for, based on what you want to do.  We used to group our APIs based on technology - for instance, there were Google Data APIs and AJAX APIs.  Now, you’ll see that each API has been given its own place, including its own documentation pages.  This new documentation has been created from the ground up to provide a better experience for people coding against the APIs.  We’ve also organized these more logically by product, such as moving the Book Search API into the <a href="http://code.google.com/apis/books/docs/js/devguide.html">Books family of APIs</a>, and added many more samples to help you get started.<br /><br /><span style="font-weight: bold;">A fond farewell</span><br />In the spirit of consolidation, we’ll be retiring this blog in favor of the <a href="http://googlecode.blogspot.com/">Google Code Blog</a>.  By concentrating on fewer blogs, we’ll be able to keep the blog fresher and help make sure that as wide an audience as possible is able to benefit from our posts.  We’ll continue using tags, so that you can subscribe to your favorite APIs and focus on the content that most interests you (though we hope you’ll check in occasionally to see what new stuff you might be missing).<br /><br />Show your support for the Code blog by hopping over to read about the new <a href="https://code.google.com/apis/console/">Google APIs console</a> and <a href="http://code.google.com/apis/customsearch/v1/overview.html">Custom Search API</a>, and also say good-bye to the Web and Local Search APIs, which are being deprecated.  Full post <a href="http://googlecode.blogspot.com/2010/11/introducing-google-apis-console-and-our.html">here</a>.<br /><br />Posted by:  Adam Feldman, Product Manager]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/fall-housekeeping-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Fall Housekeeping</title>
		<link>https://googledata.org/google-ajax-api/fall-housekeeping/</link>
		<comments>https://googledata.org/google-ajax-api/fall-housekeeping/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 17:57:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[custom search engine]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[When we introduced this blog over four years ago, the term AJAX was only a year old, and Google had exactly one relevant API .  Ajax has since become a mainstream part of the Web, and our family of APIs has grown.  Like many growing families, we’ve a...]]></description>
				<content:encoded><![CDATA[When we <a href="http://googleajaxsearchapi.blogspot.com/2006_05_01_archive.html">introduced this blog</a> over four years ago, the term AJAX was only a year old, and Google had exactly one relevant API .  Ajax has since become a mainstream part of the Web, and our family of APIs has grown.  Like many growing families, we’ve accumulated a lot of cruft over the years, and have outgrown our first home.  Time for some housekeeping.<br /><br /><span style="font-weight: bold;">API Documentation - Now easier to find and use</span><br />We’ve reorganized our documentation to make it easier to find what you’re looking for, based on what you want to do.  We used to group our APIs based on technology - for instance, there were Google Data APIs and AJAX APIs.  Now, you’ll see that each API has been given its own place, including its own documentation pages.  This new documentation has been created from the ground up to provide a better experience for people coding against the APIs.  We’ve also organized these more logically by product, such as moving the Book Search API into the <a href="http://code.google.com/apis/books/docs/js/devguide.html">Books family of APIs</a>, and added many more samples to help you get started.<br /><br /><span style="font-weight: bold;">A fond farewell</span><br />In the spirit of consolidation, we’ll be retiring this blog in favor of the <a href="http://googlecode.blogspot.com">Google Code Blog</a>.  By concentrating on fewer blogs, we’ll be able to keep the blog fresher and help make sure that as wide an audience as possible is able to benefit from our posts.  We’ll continue using tags, so that you can subscribe to your favorite APIs and focus on the content that most interests you (though we hope you’ll check in occasionally to see what new stuff you might be missing).<br /><br />Show your support for the Code blog by hopping over to read about the new <a href="https://code.google.com/apis/console/">Google APIs console</a> and <a href="http://code.google.com/apis/customsearch/v1/overview.html">Custom Search API</a>, and also say good-bye to the Web and Local Search APIs, which are being deprecated.  Full post <a href="http://googlecode.blogspot.com/2010/11/introducing-google-apis-console-and-our.html">here</a>.<br /><br />Posted by:  Adam Feldman, Product Manager<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-6754565313977492454?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/fall-housekeeping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase site efficiency by retrieving just your preferred number of results</title>
		<link>https://googledata.org/google-ajax-api/increase-site-efficiency-by-retrieving-just-your-preferred-number-of-results-2/</link>
		<comments>https://googledata.org/google-ajax-api/increase-site-efficiency-by-retrieving-just-your-preferred-number-of-results-2/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 17:42:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=dfdd402a766a4a1764cc3235b1467c1f</guid>
		<description><![CDATA[<span>When using any of the  searchers available in the </span><a href="http://code.google.com/apis/ajaxsearch/"><span>Search API</span></a><span>, four results are  returned by default.  Historically, it has been possible to request a  large set of eight results (or ten for filter Custom Search Engines),  but that&#8217;s it.  We understand that there are many use cases for this  API, and some of them require a finer grain of control over the number  of results displayed.</span><br /><span></span><br /><span>For instance, with the JavaScript API, you  can use <code>.setResultSetSize(1)</code> or  <code>.setResultSetSize(6)</code> in addition to using the  enum to request a <code>SMALL_RESULTSET</code> or  <code>LARGE_RESULTSET</code>.  When using the RESTful  interface, you can also use any integer from 1 to 8 with the <code>rsz</code>  parameter.</span><br /><span></span><br /><span>With this addition,  you can now request an arbitrary number of results, based on the exact  number you need.  By requesting only the results you&#8217;re going to show to  the end-user, you can make your site or app more efficient.  Also, this  will control the cursor values that can be used to retrieve subsequent  pages of results (and impact paging in the </span><a href="http://www.google.com/webelements/customsearch/"><span>Custom Search  element</span></a><span>).</span><br /><span></span><br /><span>For more details,  check out the </span><a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GSearch"><span>documentation</span></a><span>, and if you have any  questions, stop by our </span><a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc"><span>IRC channel</span></a><span> and </span><a href="http://groups.google.com/group/Google-AJAX-Search-API"><span>support forum</span></a><span>.</span>]]></description>
				<content:encoded><![CDATA[<span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">When using any of the  searchers available in the </span><a href="http://code.google.com/apis/ajaxsearch/"><span style="font-size:  11pt; font-family: Arial; color: rgb(0, 0, 153); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  underline; vertical-align: baseline;">Search API</span></a><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">, four results are  returned by default.  Historically, it has been possible to request a  large set of eight results (or ten for filter Custom Search Engines),  but that’s it.  We understand that there are many use cases for this  API, and some of them require a finer grain of control over the number  of results displayed.</span><br /><span style="font-size: 11pt;  font-family: Arial; color: rgb(0, 0, 0); background-color: transparent;  font-weight: normal; font-style: normal; text-decoration: none;  vertical-align: baseline;"></span><br /><span style="font-size: 11pt;  font-family: Arial; color: rgb(0, 0, 0); background-color: transparent;  font-weight: normal; font-style: normal; text-decoration: none;  vertical-align: baseline;">For instance, with the JavaScript API, you  can use <code>.setResultSetSize(1)</code> or  <code>.setResultSetSize(6)</code> in addition to using the  enum to request a <code>SMALL_RESULTSET</code> or  <code>LARGE_RESULTSET</code>.  When using the RESTful  interface, you can also use any integer from 1 to 8 with the <code>rsz</code>  parameter.</span><br /><span style="font-size: 11pt; font-family: Arial;  color: rgb(0, 0, 0); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;"></span><br /><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">With this addition,  you can now request an arbitrary number of results, based on the exact  number you need.  By requesting only the results you’re going to show to  the end-user, you can make your site or app more efficient.  Also, this  will control the cursor values that can be used to retrieve subsequent  pages of results (and impact paging in the </span><a href="http://www.google.com/webelements/customsearch/"><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">Custom Search  element</span></a><span style="font-size: 11pt; font-family: Arial;  color: rgb(0, 0, 0); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;">).</span><br /><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"></span><br /><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">For more details,  check out the </span><a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GSearch"><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">documentation</span></a><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">, and if you have any  questions, stop by our </span><a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc"><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">IRC channel</span></a><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> and </span><a href="http://groups.google.com/group/Google-AJAX-Search-API"><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">support forum</span></a><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">.</span>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/increase-site-efficiency-by-retrieving-just-your-preferred-number-of-results-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Increase site efficiency by retrieving just your preferred number of results</title>
		<link>https://googledata.org/google-ajax-api/increase-site-efficiency-by-retrieving-just-your-preferred-number-of-results/</link>
		<comments>https://googledata.org/google-ajax-api/increase-site-efficiency-by-retrieving-just-your-preferred-number-of-results/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 17:42:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[When using any of the  searchers available in the Search API, four results are  returned by default.  Historically, it has been possible to request a  large set of eight results (or ten for filter Custom Search Engines),  but that’s it.  We understan...]]></description>
				<content:encoded><![CDATA[<span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">When using any of the  searchers available in the </span><a href="http://code.google.com/apis/ajaxsearch/"><span style="font-size:  11pt; font-family: Arial; color: rgb(0, 0, 153); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  underline; vertical-align: baseline;">Search API</span></a><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">, four results are  returned by default.  Historically, it has been possible to request a  large set of eight results (or ten for filter Custom Search Engines),  but that’s it.  We understand that there are many use cases for this  API, and some of them require a finer grain of control over the number  of results displayed.</span><br /><span style="font-size: 11pt;  font-family: Arial; color: rgb(0, 0, 0); background-color: transparent;  font-weight: normal; font-style: normal; text-decoration: none;  vertical-align: baseline;"></span><br /><span style="font-size: 11pt;  font-family: Arial; color: rgb(0, 0, 0); background-color: transparent;  font-weight: normal; font-style: normal; text-decoration: none;  vertical-align: baseline;">For instance, with the JavaScript API, you  can use <code>.setResultSetSize(1)</code> or  <code>.setResultSetSize(6)</code> in addition to using the  enum to request a <code>SMALL_RESULTSET</code> or  <code>LARGE_RESULTSET</code>.  When using the RESTful  interface, you can also use any integer from 1 to 8 with the <code>rsz</code>  parameter.</span><br /><span style="font-size: 11pt; font-family: Arial;  color: rgb(0, 0, 0); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;"></span><br /><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">With this addition,  you can now request an arbitrary number of results, based on the exact  number you need.  By requesting only the results you’re going to show to  the end-user, you can make your site or app more efficient.  Also, this  will control the cursor values that can be used to retrieve subsequent  pages of results (and impact paging in the </span><a href="http://www.google.com/webelements/customsearch/"><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">Custom Search  element</span></a><span style="font-size: 11pt; font-family: Arial;  color: rgb(0, 0, 0); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;">).</span><br /><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"></span><br /><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">For more details,  check out the </span><a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GSearch"><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">documentation</span></a><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">, and if you have any  questions, stop by our </span><a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc"><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">IRC channel</span></a><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> and </span><a href="http://groups.google.com/group/Google-AJAX-Search-API"><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">support forum</span></a><span style="font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">.</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-5109806866677922899?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/increase-site-efficiency-by-retrieving-just-your-preferred-number-of-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Diacritization added to the Google Language API</title>
		<link>https://googledata.org/google-ajax-api/diacritization-added-to-the-google-language-api-2/</link>
		<comments>https://googledata.org/google-ajax-api/diacritization-added-to-the-google-language-api-2/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 16:31:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=cd7fd5fb50c1f27b71f071affa568354</guid>
		<description><![CDATA[Earlier this year, we launched the Tashkeel (Diacritization) service on Google Labs.  I'm pleased to announce that we've added an experimental Diacritization component to the <a href="http://code.google.com/apis/ajaxlanguage/documentation/">Google Language API</a>.  This is a simple JSON API which you can use to add diacritic symbols to strings of Arabic text.<br /><br />To test it out, try clicking this link:<br /><a href="https://www.googleapis.com/language/diacritize/v1?lang=ar&#38;message=%D9%85%D8%B1%D8%AD%D8%A8%D8%A7%20%D8%A7%D9%84%D8%B9%D8%A7%D9%84%D9%85&#38;last_letter=false&#38;callback=result">https://www.googleapis.com/language/diacritize/v1?lang=ar&#38;message=&#1605;&#1585;&#1581;&#1576;&#1575;%20&#1575;&#1604;&#1593;&#1575;&#1604;&#1605;&#38;last_letter=false&#38;callback=result</a><br /><br />A URL-encoded string is supplied as the message parameter, and it's returned by the API with diacritics included.  These symbols are useful to people just learning the language and as an important pre-step for several text processing applications.<br /><br />Right now, the API only supports Arabic, but we're working on adding more languages, as well as a JavaScript API, so be sure to watch this blog for details.  For more information, see the <a href="http://code.google.com/apis/ajaxlanguage/documentation/index.html#Diacritization">documentation</a> and our <a href="http://google-arabia.blogspot.com/2010/06/tashkeel-api-is-now-launched.html">post on the Google Arabia blog</a> (you may want to click "view post in English").<div><br /></div><div>Posted by:  Adam Feldman, Product Manager and Jeff Scudder, Software Engineer</div>]]></description>
				<content:encoded><![CDATA[Earlier this year, we launched the Tashkeel (Diacritization) service on Google Labs.  I'm pleased to announce that we've added an experimental Diacritization component to the <a href="http://code.google.com/apis/ajaxlanguage/documentation/">Google Language API</a>.  This is a simple JSON API which you can use to add diacritic symbols to strings of Arabic text.<br /><br />To test it out, try clicking this link:<br /><a href="https://www.googleapis.com/language/diacritize/v1?lang=ar&amp;message=%D9%85%D8%B1%D8%AD%D8%A8%D8%A7%20%D8%A7%D9%84%D8%B9%D8%A7%D9%84%D9%85&amp;last_letter=false&amp;callback=result">https://www.googleapis.com/language/diacritize/v1?lang=ar&amp;message=مرحبا%20العالم&amp;last_letter=false&amp;callback=result</a><br /><br />A URL-encoded string is supplied as the message parameter, and it's returned by the API with diacritics included.  These symbols are useful to people just learning the language and as an important pre-step for several text processing applications.<br /><br />Right now, the API only supports Arabic, but we're working on adding more languages, as well as a JavaScript API, so be sure to watch this blog for details.  For more information, see the <a href="http://code.google.com/apis/ajaxlanguage/documentation/index.html#Diacritization">documentation</a> and our <a href="http://google-arabia.blogspot.com/2010/06/tashkeel-api-is-now-launched.html">post on the Google Arabia blog</a> (you may want to click "view post in English").<div><br /></div><div>Posted by:  Adam Feldman, Product Manager and Jeff Scudder, Software Engineer</div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/diacritization-added-to-the-google-language-api-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Diacritization added to the Google Language API</title>
		<link>https://googledata.org/google-ajax-api/diacritization-added-to-the-google-language-api/</link>
		<comments>https://googledata.org/google-ajax-api/diacritization-added-to-the-google-language-api/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 16:31:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Earlier this year, we launched the Tashkeel (Diacritization) service on Google Labs.  I'm pleased to announce that we've added an experimental Diacritization component to the Google Language API.  This is a simple JSON API which you can use to add diac...]]></description>
				<content:encoded><![CDATA[Earlier this year, we launched the Tashkeel (Diacritization) service on Google Labs.  I'm pleased to announce that we've added an experimental Diacritization component to the <a href="http://code.google.com/apis/ajaxlanguage/documentation/">Google Language API</a>.  This is a simple JSON API which you can use to add diacritic symbols to strings of Arabic text.<br /><br />To test it out, try clicking this link:<br /><a href="https://www.googleapis.com/language/diacritize/v1?lang=ar&amp;message=%D9%85%D8%B1%D8%AD%D8%A8%D8%A7%20%D8%A7%D9%84%D8%B9%D8%A7%D9%84%D9%85&amp;last_letter=false&amp;callback=result">https://www.googleapis.com/language/diacritize/v1?lang=ar&amp;message=مرحبا%20العالم&amp;last_letter=false&amp;callback=result</a><br /><br />A URL-encoded string is supplied as the message parameter, and it's returned by the API with diacritics included.  These symbols are useful to people just learning the language and as an important pre-step for several text processing applications.<br /><br />Right now, the API only supports Arabic, but we're working on adding more languages, as well as a JavaScript API, so be sure to watch this blog for details.  For more information, see the <a href="http://code.google.com/apis/ajaxlanguage/documentation/index.html#Diacritization">documentation</a> and our <a href="http://google-arabia.blogspot.com/2010/06/tashkeel-api-is-now-launched.html">post on the Google Arabia blog</a> (you may want to click "view post in English").<div><br /></div><div>Posted by:  Adam Feldman, Product Manager and Jeff Scudder, Software Engineer</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-4432681333488480332?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/diacritization-added-to-the-google-language-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Feed API — Now with instant gratification</title>
		<link>https://googledata.org/google-ajax-api/google-feed-api-%e2%80%94-now-with-instant-gratification/</link>
		<comments>https://googledata.org/google-ajax-api/google-feed-api-%e2%80%94-now-with-instant-gratification/#comments</comments>
		<pubDate>Wed, 19 May 2010 16:19:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[One of Google's most popular APIs is our Feed  API.  This API is found all over the web, making any feed content  available for developers to embed on their sites.A problem  with embedding content in this manner is that there's no good way to  make sur...]]></description>
				<content:encoded><![CDATA[One of Google's most popular APIs is our <a href="http://code.google.com/apis/ajaxfeeds/" id="fsa:" title="Feed API">Feed  API</a>.  This API is found all over the web, making any feed content  available for developers to embed on their sites.<br /><br />A problem  with embedding content in this manner is that there's no good way to  make sure that your visitors see the freshest data, regardless of how  long they stay on your page.  Of course, you could try polling (also  known as the "are we there yet?" method), repeatedly reloading the feed  to see if the content has changed.  This technique is generally a waste  of bandwidth and doesn't always result in very low latency.<br /><br />Instead,  we've got something better.  I'm pleased to announce a preview of a  brand new version of the Feed API, which includes push updates.  With  this new version, you'll be able to make the latest feed data available  to your visitors - when it's available - without polling or requiring a  page refresh.  The best part is that this will work with any <a href="http://code.google.com/p/pubsubhubbub/" id="cjh6" title="PubSubHubbub">PubSubHubbub</a> enabled feed.<br /><br />Here's a short <a href="http://www.youtube.com/watch?v=9FhVKx6-C6w">demonstration</a> of what I'm talking about:<br /><object width="320" height="266" class="BLOG_video_class" id="BLOG_video-dab984481799a64c" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="movie" value="http://www.youtube.com/get_player"><param name="bgcolor" value="#FFFFFF"><param name="allowfullscreen" value="true"><param name="flashvars" value="flvurl=http://v5.nonxt6.googlevideo.com/videoplayback?id%3Ddab984481799a64c%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1312821625%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D5C9F00521E301A5DA075BECD82602C34C4607E4.813F4C4576C5967AEF122206240397C6B5C5C501%26key%3Dck1&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Ddab984481799a64c%26offsetms%3D5000%26itag%3Dw160%26sigh%3Dex81MTRdmljuM7yAzs6-ZmS6Tkc&amp;autoplay=0&amp;ps=blogger"><embed src="http://www.youtube.com/get_player" type="application/x-shockwave-flash"width="320" height="266" bgcolor="#FFFFFF"flashvars="flvurl=http://v5.nonxt6.googlevideo.com/videoplayback?id%3Ddab984481799a64c%26itag%3D5%26app%3Dblogger%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1312821625%26sparams%3Did,itag,ip,ipbits,expire%26signature%3D5C9F00521E301A5DA075BECD82602C34C4607E4.813F4C4576C5967AEF122206240397C6B5C5C501%26key%3Dck1&iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Ddab984481799a64c%26offsetms%3D5000%26itag%3Dw160%26sigh%3Dex81MTRdmljuM7yAzs6-ZmS6Tkc&autoplay=0&ps=blogger"allowFullScreen="true" /></object><br /><br />As the video shows, this new version works much  like the older Feed API.  But instead of loading the existing feed  data, you actually subscribe to the feed, and your callback is executed  any time new feed data comes in.<br /><br />Let's see how this works.   First, you must load the API (just like before, except now v2):<br /><pre>google.load("feeds",  "2");</pre>Now, subscribe to the feed you're  interested in and give the callback to be executed:<br /><pre>var feed = new google.feed.push.Feed("example.com/atom.xml");<br />feed.subscribe(myCallback);</pre>And, finally, you need to write the callback method that is run every time  there's an update.  In this example, we just display each new entry  title as it comes in:<br /><pre>function myCallback() {<br />  var container = document.getElementById("feed");<br />  for (var i = 0; i &lt; result.feed.entries.length; i++) {<br />    var div = document.createElement("div");<br />    div.appendChild(document.createTextNode(result.feed.entries[i].title));<br />    container.appendChild(div);<br />  }<br />}</pre>For a running example you can try out,  check out the <a href="http://code.google.com/apis/ajax/playground/#include_historical_entries" id="nd9b" title="Code Playground">Code Playground</a>.<br /><br />We want to encourage  you to experiment and build innovative applications with this new API -  but since we don't know how it will be used, we can't quite open the  floodgates yet.  Therefore, we're initially making it available on a  sign-up basis.  Please fill out this <a href="http://code.google.com/apis/feed/push/" id="krb3" title="form">form</a>,  telling us a little about how you'd like to use this API, and we'll try  to give you access as soon as possible.  Also, please remember that  this is a <a href="http://code.google.com/labs/" id="cclc" title="Code  Labs">Code Labs</a> version, and therefore it may change or be removed  at any time.<br /><br />After we get some data from this experimental period  we'll be able to open it up to everyone.  Once you've begun  experimenting, be sure to stop by our <a href="http://groups.google.com/group/Google-AJAX-Search-API" id="ctrm" title="support forum">support forum</a> or <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" id="u06n" title="IRC channel">IRC channel</a> to share your creations  with everyone.  If you'd like to learn more about how this API works,  our <a href="http://code.google.com/events/io/2010/sessions/building-real-time-apps-app-engine-feed-api.html" id="ldxk" title="Google I/O session">Google I/O session</a> will be  posted to YouTube soon.<br /><br /><br />Posted by:  Brett Bavar, Software  Engineer and Adam Feldman, Product Manager<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-2118622936804156034?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/google-feed-api-%e2%80%94-now-with-instant-gratification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Feed API — Now with instant gratification</title>
		<link>https://googledata.org/google-ajax-api/google-feed-api-now-with-instant-gratification/</link>
		<comments>https://googledata.org/google-ajax-api/google-feed-api-now-with-instant-gratification/#comments</comments>
		<pubDate>Wed, 19 May 2010 16:19:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=b7f4e1a67643f2d97de7bf49f5ecb3d2</guid>
		<description><![CDATA[One of Google's most popular APIs is our Feed  API.  This API is found all over the web, making any feed content  available for developers to embed on their sites.A problem  with embedding content in this manner is that there's no good way to  make sur...]]></description>
				<content:encoded><![CDATA[One of Google's most popular APIs is our <a href="http://code.google.com/apis/ajaxfeeds/" id="fsa:" title="Feed API">Feed  API</a>.  This API is found all over the web, making any feed content  available for developers to embed on their sites.<br /><br />A problem  with embedding content in this manner is that there's no good way to  make sure that your visitors see the freshest data, regardless of how  long they stay on your page.  Of course, you could try polling (also  known as the "are we there yet?" method), repeatedly reloading the feed  to see if the content has changed.  This technique is generally a waste  of bandwidth and doesn't always result in very low latency.<br /><br />Instead,  we've got something better.  I'm pleased to announce a preview of a  brand new version of the Feed API, which includes push updates.  With  this new version, you'll be able to make the latest feed data available  to your visitors - when it's available - without polling or requiring a  page refresh.  The best part is that this will work with any <a href="http://code.google.com/p/pubsubhubbub/" id="cjh6" title="PubSubHubbub">PubSubHubbub</a> enabled feed.<br /><br />Here's a short <a href="http://www.youtube.com/watch?v=9FhVKx6-C6w">demonstration</a> of what I'm talking about:<br /><object width="320" height="266" class="BLOG_video_class" id="BLOG_video-dab984481799a64c" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="movie" value="//www.youtube.com/get_player"><param name="bgcolor" value="#FFFFFF"><param name="allowfullscreen" value="true"><param name="flashvars" value="flvurl=http://redirector.googlevideo.com/videoplayback?id%3Ddab984481799a64c%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1429546890%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3D27FB32455947DAD381AA2230AB56B218156E735F.1FD64CD15C6422E26929562BA9676F0B8C267402%26key%3Dck2&amp;iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Ddab984481799a64c%26offsetms%3D5000%26itag%3Dw160%26sigh%3Dex81MTRdmljuM7yAzs6-ZmS6Tkc&amp;autoplay=0&amp;ps=blogger"><embed src="//www.youtube.com/get_player" type="application/x-shockwave-flash" width="320" height="266" bgcolor="#FFFFFF" flashvars="flvurl=http://redirector.googlevideo.com/videoplayback?id%3Ddab984481799a64c%26itag%3D5%26source%3Dblogger%26app%3Dblogger%26cmo%3Dsensitive_content%253Dyes%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D1429546890%26sparams%3Did,itag,source,ip,ipbits,expire%26signature%3D27FB32455947DAD381AA2230AB56B218156E735F.1FD64CD15C6422E26929562BA9676F0B8C267402%26key%3Dck2&iurl=http://video.google.com/ThumbnailServer2?app%3Dblogger%26contentid%3Ddab984481799a64c%26offsetms%3D5000%26itag%3Dw160%26sigh%3Dex81MTRdmljuM7yAzs6-ZmS6Tkc&autoplay=0&ps=blogger" allowFullScreen="true" /></object><br /><br />As the video shows, this new version works much  like the older Feed API.  But instead of loading the existing feed  data, you actually subscribe to the feed, and your callback is executed  any time new feed data comes in.<br /><br />Let's see how this works.   First, you must load the API (just like before, except now v2):<br /><pre>google.load("feeds",  "2");</pre>Now, subscribe to the feed you're  interested in and give the callback to be executed:<br /><pre>var feed = new google.feed.push.Feed("example.com/atom.xml");<br />feed.subscribe(myCallback);</pre>And, finally, you need to write the callback method that is run every time  there's an update.  In this example, we just display each new entry  title as it comes in:<br /><pre>function myCallback() {<br />  var container = document.getElementById("feed");<br />  for (var i = 0; i &lt; result.feed.entries.length; i++) {<br />    var div = document.createElement("div");<br />    div.appendChild(document.createTextNode(result.feed.entries[i].title));<br />    container.appendChild(div);<br />  }<br />}</pre>For a running example you can try out,  check out the <a href="http://code.google.com/apis/ajax/playground/#include_historical_entries" id="nd9b" title="Code Playground">Code Playground</a>.<br /><br />We want to encourage  you to experiment and build innovative applications with this new API -  but since we don't know how it will be used, we can't quite open the  floodgates yet.  Therefore, we're initially making it available on a  sign-up basis.  Please fill out this <a href="http://code.google.com/apis/feed/push/" id="krb3" title="form">form</a>,  telling us a little about how you'd like to use this API, and we'll try  to give you access as soon as possible.  Also, please remember that  this is a <a href="http://code.google.com/labs/" id="cclc" title="Code  Labs">Code Labs</a> version, and therefore it may change or be removed  at any time.<br /><br />After we get some data from this experimental period  we'll be able to open it up to everyone.  Once you've begun  experimenting, be sure to stop by our <a href="http://groups.google.com/group/Google-AJAX-Search-API" id="ctrm" title="support forum">support forum</a> or <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" id="u06n" title="IRC channel">IRC channel</a> to share your creations  with everyone.  If you'd like to learn more about how this API works,  our <a href="http://code.google.com/events/io/2010/sessions/building-real-time-apps-app-engine-feed-api.html" id="ldxk" title="Google I/O session">Google I/O session</a> will be  posted to YouTube soon.<br /><br /><br />Posted by:  Brett Bavar, Software  Engineer and Adam Feldman, Product Manager]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/google-feed-api-now-with-instant-gratification/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Transliteration API adds 6 more languages</title>
		<link>https://googledata.org/google-ajax-api/transliteration-api-adds-6-more-languages-2/</link>
		<comments>https://googledata.org/google-ajax-api/transliteration-api-adds-6-more-languages-2/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 05:58:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=beb0b836ca0fe86fc9e31fd0b6abd4a0</guid>
		<description><![CDATA[<h4><span><span>We're excited to announce the addition  of 6 new languages (Greek, Russian, Serbian, Sanskrit, Amharic,  Tigrinya) to the </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration"><span>Transliteration  API</span></a><span>.  Using Google Transliteration you can convert Roman characters to their  phonetic equivalent in your language. Note that this is not the same as  translation &#8212; it's the sound of the words that are converted from one  alphabet to the other.</span></span></h4><a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration"><span>Transliteration  API</span></a><span>  allows this functionality to be available to all websites, which will  make it easier for you to add transliteration capabilities to textfields  on your webpages. Using this customizable API, you can enable users of  your website to type </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#TransliterationSupportedLanguages"><span>19 languages</span></a><span>. </span><span>For more information,  please take a look at the</span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration"><span> </span><span>documentation</span></a><span> </span><span>and samples at our</span><a href="http://code.google.com/apis/ajax/playground/#transliterate_hindi"><span> </span><span>code playground</span></a><span>. </span><span>If you're looking for a  finer level of control on your web pages, also check out the </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#LowLevelTransliteration"><span>low-level  interface</span></a><span>  to transliteration, and the </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#FontRendering"><span>font rendering  support APIs</span></a><span>.</span><br /><span></span><br /><span>Google Transliteration is integrated  into</span><a href="http://www.google.com/transliterate/about.html?v=1#products"><span> </span><span>several Google  properties</span></a><span> and we have</span><a href="http://code.google.com/p/t13n/"><span> </span><span>bookmarklets</span></a><span> in addition to API to  extend this capability to other websites. </span><span>Please try these out  and</span><a href="http://groups.google.com/group/google-india-labs"><span> </span><span>let us know</span></a><span> what you think and  how you're using it.</span><br /><span></span><br /><span>Posted by: Kuntal Loya and Ajay Somani,  Software Engineers</span><br /><span></span>]]></description>
				<content:encoded><![CDATA[<h4 id="internal-source-marker_0.7507443823917048"><span class="Apple-style-span" style="font-weight: normal; "><span style="font-size:  10pt; font-family: Verdana; color: rgb(0, 0, 0); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;">We're excited to announce the addition  of 6 new languages (Greek, Russian, Serbian, Sanskrit, Amharic,  Tigrinya) to the </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">Transliteration  API</span></a><span style="font-size: 10pt; font-family: Verdana; color:  rgb(51, 51, 51); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;">.  Using Google Transliteration you can convert Roman characters to their  phonetic equivalent in your language. Note that this is not the same as  translation — it's the sound of the words that are converted from one  alphabet to the other.</span></span></h4><a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">Transliteration  API</span></a><span style="font-size: 10pt; font-family: Verdana; color:  rgb(0, 0, 0); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;">  allows this functionality to be available to all websites, which will  make it easier for you to add transliteration capabilities to textfields  on your webpages. Using this customizable API, you can enable users of  your website to type </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#TransliterationSupportedLanguages"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">19 languages</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">. </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">For more information,  please take a look at the</span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration"><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">documentation</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">and samples at our</span><a href="http://code.google.com/apis/ajax/playground/#transliterate_hindi"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">code playground</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">. </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">If you're looking for a  finer level of control on your web pages, also check out the </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#LowLevelTransliteration"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">low-level  interface</span></a><span style="font-size: 10pt; font-family: Verdana;  color: rgb(0, 0, 0); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;">  to transliteration, and the </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#FontRendering"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">font rendering  support APIs</span></a><span style="font-size: 10pt; font-family:  Verdana; color: rgb(0, 0, 0); background-color: transparent;  font-weight: normal; font-style: normal; text-decoration: none;  vertical-align: baseline;">.</span><br /><span style="font-size: 10pt;  font-family: Verdana; color: rgb(0, 0, 0); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;"></span><br /><span style="font-size:  10pt; font-family: Verdana; color: rgb(51, 51, 51); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;">Google Transliteration is integrated  into</span><a href="http://www.google.com/transliterate/about.html?v=1#products"><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(85, 26, 139);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">several Google  properties</span></a><span style="font-size: 10pt; font-family: Verdana;  color: rgb(51, 51, 51); background-color: transparent; font-weight:  normal; font-style: normal; text-decoration: none; vertical-align:  baseline;"> and we have</span><a href="http://code.google.com/p/t13n/"><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(85, 26, 139);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">bookmarklets</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> in addition to API to  extend this capability to other websites. </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">Please try these out  and</span><a href="http://groups.google.com/group/google-india-labs"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">let us know</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> what you think and  how you're using it.</span><br /><span style="font-size: 10pt;  font-family: Verdana; color: rgb(0, 0, 0); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;"></span><br /><span style="font-size:  10pt; font-family: Verdana; color: rgb(0, 0, 0); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;">Posted by: Kuntal Loya and Ajay Somani,  Software Engineers</span><br /><span style="font-size: 10pt; font-family:  Verdana; color: rgb(0, 0, 0); background-color: transparent;  font-weight: normal; font-style: normal; text-decoration: none;  vertical-align: baseline;"></span>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/transliteration-api-adds-6-more-languages-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Transliteration API adds 6 more languages</title>
		<link>https://googledata.org/google-ajax-api/transliteration-api-adds-6-more-languages/</link>
		<comments>https://googledata.org/google-ajax-api/transliteration-api-adds-6-more-languages/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 05:58:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[We're excited to announce the addition  of 6 new languages (Greek, Russian, Serbian, Sanskrit, Amharic,  Tigrinya) to the Transliteration  API.  Using Google Transliteration you can convert Roman characters to their  phonetic equivalent in your languag...]]></description>
				<content:encoded><![CDATA[<h4 id="internal-source-marker_0.7507443823917048"><span class="Apple-style-span" style="font-weight: normal; "><span style="font-size:  10pt; font-family: Verdana; color: rgb(0, 0, 0); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;">We're excited to announce the addition  of 6 new languages (Greek, Russian, Serbian, Sanskrit, Amharic,  Tigrinya) to the </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">Transliteration  API</span></a><span style="font-size: 10pt; font-family: Verdana; color:  rgb(51, 51, 51); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;">.  Using Google Transliteration you can convert Roman characters to their  phonetic equivalent in your language. Note that this is not the same as  translation — it's the sound of the words that are converted from one  alphabet to the other.</span></span></h4><a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">Transliteration  API</span></a><span style="font-size: 10pt; font-family: Verdana; color:  rgb(0, 0, 0); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;">  allows this functionality to be available to all websites, which will  make it easier for you to add transliteration capabilities to textfields  on your webpages. Using this customizable API, you can enable users of  your website to type </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#TransliterationSupportedLanguages"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">19 languages</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">. </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">For more information,  please take a look at the</span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration"><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">documentation</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">and samples at our</span><a href="http://code.google.com/apis/ajax/playground/#transliterate_hindi"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">code playground</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">. </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">If you're looking for a  finer level of control on your web pages, also check out the </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#LowLevelTransliteration"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">low-level  interface</span></a><span style="font-size: 10pt; font-family: Verdana;  color: rgb(0, 0, 0); background-color: transparent; font-weight: normal;  font-style: normal; text-decoration: none; vertical-align: baseline;">  to transliteration, and the </span><a href="http://code.google.com/apis/ajaxlanguage/documentation/#FontRendering"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">font rendering  support APIs</span></a><span style="font-size: 10pt; font-family:  Verdana; color: rgb(0, 0, 0); background-color: transparent;  font-weight: normal; font-style: normal; text-decoration: none;  vertical-align: baseline;">.</span><br /><span style="font-size: 10pt;  font-family: Verdana; color: rgb(0, 0, 0); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;"></span><br /><span style="font-size:  10pt; font-family: Verdana; color: rgb(51, 51, 51); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;">Google Transliteration is integrated  into</span><a href="http://www.google.com/transliterate/about.html?v=1#products"><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(85, 26, 139);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">several Google  properties</span></a><span style="font-size: 10pt; font-family: Verdana;  color: rgb(51, 51, 51); background-color: transparent; font-weight:  normal; font-style: normal; text-decoration: none; vertical-align:  baseline;"> and we have</span><a href="http://code.google.com/p/t13n/"><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(85, 26, 139);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">bookmarklets</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(51, 51, 51);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> in addition to API to  extend this capability to other websites. </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;">Please try these out  and</span><a href="http://groups.google.com/group/google-india-labs"><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> </span><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 153);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: underline; vertical-align: baseline;">let us know</span></a><span style="font-size: 10pt; font-family: Verdana; color: rgb(0, 0, 0);  background-color: transparent; font-weight: normal; font-style: normal;  text-decoration: none; vertical-align: baseline;"> what you think and  how you're using it.</span><br /><span style="font-size: 10pt;  font-family: Verdana; color: rgb(0, 0, 0); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;"></span><br /><span style="font-size:  10pt; font-family: Verdana; color: rgb(0, 0, 0); background-color:  transparent; font-weight: normal; font-style: normal; text-decoration:  none; vertical-align: baseline;">Posted by: Kuntal Loya and Ajay Somani,  Software Engineers</span><br /><span style="font-size: 10pt; font-family:  Verdana; color: rgb(0, 0, 0); background-color: transparent;  font-weight: normal; font-style: normal; text-decoration: none;  vertical-align: baseline;"></span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-2269040763882480159?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/transliteration-api-adds-6-more-languages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rendering custom data in the Custom Search element</title>
		<link>https://googledata.org/google-ajax-api/rendering-custom-data-in-the-custom-search-element-2/</link>
		<comments>https://googledata.org/google-ajax-api/rendering-custom-data-in-the-custom-search-element-2/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 01:19:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[custom search engine]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=ef7580980357a18f16930ac176a66405</guid>
		<description><![CDATA[Last year we introduced <a href="http://googlecustomsearch.blogspot.com/2009/05/enabling-rich-snippets-in-custom-search.html" title="Rich Snippets">Rich Snippets in Custom Search</a>,  allowing you to define your own custom attributes that we'll index and  return with your custom search results.  A few months later we showed  you <a href="http://adsense.blogspot.com/2009/10/more-customized-search-experience-for.html" title="how to render">how to render</a> some of these rich  snippets in your <a href="http://www.google.com/webelements/customsearch/" title="Custom Search element">Custom Search element</a>.  Sure, this was  a powerful way to let your visitors see thumbnails or interact with the results via <a href="http://googlecustomsearch.blogspot.com/2009/10/structured-custom-search.html" title="actions">actions</a>.  But we felt it was still too constrained.  It is with great pleasure that today we're announcing that you now have full rendering control of all your metadata in the Custom Search element.<br /><br />What do I mean?  If a picture is worth a thousand  words, an example is worth a thousand pictures.  Here's a fully customized element, showcasing results and metadata from <a href="http://www.scribd.com/" title="Scribd.com">Scribd.com</a>:<br /><div> <div> <div> <a> <img></a> </div> </div> <div> <div> <table><tr><td valign="top"> <div></div> </td> <td valign="top"> <div> <a></a> </div> <div></div> <div></div> <div> <img> By <span></span> &#160;-&#160; <span></span> pages&#160;-&#160; <span></span> views &#160;-&#160;last modified&#160;<span></span> </div> <div></div> </td> </tr></table></div> </div> </div> <div></div><br /><div><br />The  results really jump out at you, huh?  The thumbnails really help users  see what they're looking at, but we've shown you those before.  Same  with the Download action links by each result.  But never before could  you include arbitrary, per-result metadata with your Google Custom  Search results so easily.  Notice the author, length, views and date  information in each result.  There's even an icon representing each  result's document type.<br /><br />So how can you add this to your page?   Let's take a look.<br /><br />First, you need to include custom attributes  within your webpages, either via microformats, RDFa, or a special markup  called PageMaps.  A PageMap identifies specific attributes that Google  recognizes and indexes, and then returns along with search results.  Our  prior blog post on <a href="http://googlecustomsearch.blogspot.com/2009/10/structured-custom-search.html" title="Structured Custom Search">Structured Custom Search</a>  tells you how to add PageMaps to your site.  Please keep in mind that  your site needs to be re-indexed, which can take some time.  Therefore,  your PageMaps might not show up immediately.<br /><br />Once your custom  attributes have been indexed, you're ready to tell the element how to  render them.  If you don't already have the element on your page, you  can add it with a few lines:<br /><pre>&#60;script src="http://www.google.com/jsapi" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript"&#62;<br />// Load the Search API<br />google.load('search', '1');<br /><br />// Set a callback to load the Custom Search Control when you page loads<br />google.setOnLoadCallback(<br />  function(){<br />    new google.search.CustomSearchControl('INSERT-YOUR-ID').draw('cse');<br />  },<br />true);<br />&#60;/script&#62;<br />&#60;div id="cse"&#62;&#60;/div&#62;</pre>Here's the Scribd.com <a href="http://ajax-apis.appspot.com/html/csedr1.html" title="sample">sample</a>, with only the default rich snippet inclusion:<br /><div><a href="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3s_7EAI/AAAAAAAAACE/_aMDGr-7X_0/s1600/3.bmp"><img src="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3s_7EAI/AAAAAAAAACE/_aMDGr-7X_0/s400/3.bmp" border="0" alt=""></a></div><br />It looks okay, but let's  make it better.<br /><br />We have to override the default rendering, by adding this line to the <code>onLoadCallback</code>:<pre>google.search.Csedr.addOverride("mysite_");</pre>Now, create a div to hold all of the rendering information - put it right  above the div that the element uses:<pre>&#60;div style="display:none"&#62;<br />&#60;/div&#62;<br /></pre>Okay,  now that everything's set up, it's time for the good part.  First off,  let's try shrinking the thumbnails a bit.  Inside the  <code>div</code> that was just added above, and tell the  element to render the images at 48x48 pixels:<pre>&#60;div id="mysite_thumbnail"&#62;<br />&#60;div data-if="Vars.thumbnail" class="gs-image-box gs-web-image-box"&#62;<br />  &#60;a class="gs-image" data-attr="{href:url, target:target}"&#62;<br />    &#60;img class="gs-image" data-attr="{src:thumbnail.src, width:48, height: 48}"/&#62;<br />  &#60;/a&#62;<br />&#60;/div&#62;<br />&#60;/div&#62;</pre>This replaces the default thumbnail rendering code with a  similar version that sets the image dimensions directly.<br /><br />Here's  the same <a href="http://ajax-apis.appspot.com/html/csedr2.html" title="sample">sample</a> with the above code added:<br /><div><a href="http://4.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3f3HYrI/AAAAAAAAAB8/BS9qknKss0I/s1600/2.bmp"><img src="http://4.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3f3HYrI/AAAAAAAAAB8/BS9qknKss0I/s400/2.bmp" border="0" alt=""></a></div>Now it's time to add the  new content and tweak the rendering of the basic content, too:<pre>&#60;div id="mysite_webResult"&#62;<br />&#60;div class="gs-webResult gs-result"<br />  data-vars="{longUrl:function() {<br />    var i = unescapedUrl.indexOf(visibleUrl);<br />    return i &#60; 1 ? visibleUrl : unescapedUrl.substring(i);}}"&#62;<br /><br />  &#60;table&#62;<br />    &#60;tr&#62;<br />      &#60;td valign="top"&#62;<br />        &#60;div data-if="Vars.richSnippet" data-attr="0"<br />          data-body="render('thumbnail',richSnippet,{url:unescapedUrl,target:target})"&#62;&#60;/div&#62;<br />      &#60;/td&#62;<br /><br />      &#60;td valign="top"&#62;<br />        &#60;div class="gs-title"&#62;<br />          &#60;a class="gs-title" data-attr="{href:unescapedUrl,target:target}"<br />            data-body="html(title)"&#62;&#60;/a&#62;<br />        &#60;/div&#62;<br />        &#60;div class="gs-snippet" data-body="html(content)"&#62;&#60;/div&#62;<br />        &#60;div class="gs-visibleUrl gs-visibleUrl-short" data-body="longUrl()"&#62;&#60;/div&#62;<br />        &#60;div style="&#38; Vars.richSnippet.document"&#62;<br />          &#60;img data-attr="{src:Vars.richSnippet.document.filetypeImage}"&#62;<br />          By &#60;span data-body="Vars.richSnippet.document.author"&#62;&#60;/span&#62;  -<br />          &#60;span data-body="Vars.richSnippet.document.pageCount"&#62;&#60;/span&#62; pages -<br />          &#60;span data-body="Vars.richSnippet.document.viewCount"&#62;&#60;/span&#62; views<br />           - last modified  &#60;span data-body="Vars.richSnippet.document.timeAgo"&#62;&#60;/span&#62;<br />        &#60;/div&#62;<br /><br />        &#60;div data-if="Vars.richSnippet &#38;&#38; Vars.richSnippet.action" class="gs-actions"<br />          data-body="render('action',richSnippet,{url:unescapedUrl,target:target})"&#62;&#60;/div&#62;<br />      &#60;/td&#62;<br />    &#60;/tr&#62;<br />  &#60;/table&#62;<br />&#60;/div&#62;<br />&#60;/div&#62;</pre>Voila!  The <a href="http://ajax-apis.appspot.com/html/csedr3.html" title="sample">sample</a> is now complete, and here's how it looks:<br /><div><a href="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub27fq5XI/AAAAAAAAAB0/ZOgrk9kBPUg/s1600/1.bmp"><img src="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub27fq5XI/AAAAAAAAAB0/ZOgrk9kBPUg/s400/1.bmp" border="0" alt=""></a></div><br />This example is a bit  more complex.  It shows how to use the <code>render()</code>  function to call other code, and also how you can include any  JavaScript logic.  You can even define internal functions, such as  <code>longUrl()</code>.<br /><br />Didn't quite catch all of  that or want to do even more?  Check out the <a href="http://code.google.com/apis/ajaxsearch/documentation/customsearch/rendering.html" title="documentation">documentation</a>.<br /><br />The best part of announcing new features like this is seeing what innovative  implementations people come up with.  Don't keep us waiting - come show off your handiwork in our <a href="http://groups.google.com/group/Google-AJAX-Search-API" title="support forum">support forum</a> or <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" title="IRC channel">IRC channel</a>!</div><div></div>Posted by:  David Gibson, Software Engineer and Adam Feldman, Product Manager]]></description>
				<content:encoded><![CDATA[Last year we introduced <a href="http://googlecustomsearch.blogspot.com/2009/05/enabling-rich-snippets-in-custom-search.html" id="a1_7" title="Rich Snippets">Rich Snippets in Custom Search</a>,  allowing you to define your own custom attributes that we'll index and  return with your custom search results.  A few months later we showed  you <a href="http://adsense.blogspot.com/2009/10/more-customized-search-experience-for.html" id="wbi4" title="how to render">how to render</a> some of these rich  snippets in your <a href="http://www.google.com/webelements/customsearch/" id="w:t2" title="Custom Search element">Custom Search element</a>.  Sure, this was  a powerful way to let your visitors see thumbnails or interact with the results via <a href="http://googlecustomsearch.blogspot.com/2009/10/structured-custom-search.html" id="t:0p" title="actions">actions</a>.  But we felt it was still too constrained.  It is with great pleasure that today we're announcing that you now have full rendering control of all your metadata in the Custom Search element.<br /><br />What do I mean?  If a picture is worth a thousand  words, an example is worth a thousand pictures.  Here's a fully customized element, showcasing results and metadata from <a href="http://www.scribd.com/" id="g-0j" title="Scribd.com">Scribd.com</a>:<br /><script src="http://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1'); google.setOnLoadCallback( function(){ var customSearchControl = new google.search.CustomSearchControl( '000458029060823693019:rufl7axsp9k'); google.search.Csedr.addOverride("mysite_"); customSearchControl.draw('cse'); customSearchControl.execute("cheetah"); }, true); </script> <div style="display:none"> <div id="mysite_thumbnail"> <div data-if="Vars.thumbnail" class="gs-image-box gs-web-image-box"> <a class="gs-image" data-attr="{href:url, target:target}"> <img class="gs-image" data-attr="{src:thumbnail.src, width:48, height: 48}" /> </a> </div> </div> <div id="mysite_webResult"> <div class="gs-webResult gs-result" data-vars="{longUrl:function() { var i = unescapedUrl.indexOf(visibleUrl); return i &lt; 1 ? visibleUrl : unescapedUrl.substring(i);}}"> <table> <tr> <td valign="top"> <div data-if="Vars.richSnippet" data-attr="0" data-body="render('thumbnail',richSnippet,{url:unescapedUrl,target:target})"></div> </td> <td valign="top"> <div class="gs-title"> <a class="gs-title" data-attr="{href:unescapedUrl,target:target}" data-body="html(title)"></a> </div> <div class="gs-snippet" data-body="html(content)"></div> <div class="gs-visibleUrl gs-visibleUrl-short" data-body="longUrl()"></div> <div color="#676767" data-if="Vars.richSnippet && Vars.richSnippet.document"> <img data-attr="{src:Vars.richSnippet.document.filetypeImage}" /> By <span data-body="Vars.richSnippet.document.author"></span> &nbsp;-&nbsp; <span data-body="Vars.richSnippet.document.pageCount"></span> pages&nbsp;-&nbsp; <span data-body="Vars.richSnippet.document.viewCount"></span> views &nbsp;-&nbsp;last modified&nbsp;<span data-body="Vars.richSnippet.document.timeAgo"></span> </div> <div data-if="Vars.richSnippet && Vars.richSnippet.action" class="gs-actions" data-body="render('action',richSnippet,{url:unescapedUrl,target:target})"></div> </td> </tr> </table> </div> </div> </div> <div id="cse"></div><br /><div style="clear:both; margin-top: 2em;"><br />The  results really jump out at you, huh?  The thumbnails really help users  see what they're looking at, but we've shown you those before.  Same  with the Download action links by each result.  But never before could  you include arbitrary, per-result metadata with your Google Custom  Search results so easily.  Notice the author, length, views and date  information in each result.  There's even an icon representing each  result's document type.<br /><br />So how can you add this to your page?   Let's take a look.<br /><br />First, you need to include custom attributes  within your webpages, either via microformats, RDFa, or a special markup  called PageMaps.  A PageMap identifies specific attributes that Google  recognizes and indexes, and then returns along with search results.  Our  prior blog post on <a href="http://googlecustomsearch.blogspot.com/2009/10/structured-custom-search.html" id="w3hp" title="Structured Custom Search">Structured Custom Search</a>  tells you how to add PageMaps to your site.  Please keep in mind that  your site needs to be re-indexed, which can take some time.  Therefore,  your PageMaps might not show up immediately.<br /><br />Once your custom  attributes have been indexed, you're ready to tell the element how to  render them.  If you don't already have the element on your page, you  can add it with a few lines:<br /><pre>&lt;script src="http://www.google.com/jsapi" type="text/javascript"&gt;&lt;/script&gt;<br />&lt;script type="text/javascript"&gt;<br />// Load the Search API<br />google.load('search', '1');<br /><br />// Set a callback to load the Custom Search Control when you page loads<br />google.setOnLoadCallback(<br />  function(){<br />    new google.search.CustomSearchControl('INSERT-YOUR-ID').draw('cse');<br />  },<br />true);<br />&lt;/script&gt;<br />&lt;div id="cse"&gt;&lt;/div&gt;</pre>Here's the Scribd.com <a href="http://ajax-apis.appspot.com/html/csedr1.html" id="mqwq" title="sample">sample</a>, with only the default rich snippet inclusion:<br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3s_7EAI/AAAAAAAAACE/_aMDGr-7X_0/s1600/3.bmp"><img style="cursor:pointer; cursor:hand;width: 400px; height: 81px;" src="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3s_7EAI/AAAAAAAAACE/_aMDGr-7X_0/s400/3.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5459800767042621442" /></a></div><br />It looks okay, but let's  make it better.<br /><br />We have to override the default rendering, by adding this line to the <code>onLoadCallback</code>:<pre>google.search.Csedr.addOverride("mysite_");</pre>Now, create a div to hold all of the rendering information - put it right  above the div that the element uses:<pre>&lt;div style="display:none"&gt;<br />&lt;/div&gt;<br /></pre>Okay,  now that everything's set up, it's time for the good part.  First off,  let's try shrinking the thumbnails a bit.  Inside the  <code>div</code> that was just added above, and tell the  element to render the images at 48x48 pixels:<pre>&lt;div id="mysite_thumbnail"&gt;<br />&lt;div data-if="Vars.thumbnail" class="gs-image-box gs-web-image-box"&gt;<br />  &lt;a class="gs-image" data-attr="{href:url, target:target}"&gt;<br />    &lt;img class="gs-image" data-attr="{src:thumbnail.src, width:48, height: 48}"/&gt;<br />  &lt;/a&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;</pre>This replaces the default thumbnail rendering code with a  similar version that sets the image dimensions directly.<br /><br />Here's  the same <a href="http://ajax-apis.appspot.com/html/csedr2.html" id="nz0w" title="sample">sample</a> with the above code added:<br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3f3HYrI/AAAAAAAAAB8/BS9qknKss0I/s1600/2.bmp"><img style="cursor:pointer; cursor:hand;width: 400px; height: 62px;" src="http://4.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3f3HYrI/AAAAAAAAAB8/BS9qknKss0I/s400/2.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5459800763516019378" /></a></div>Now it's time to add the  new content and tweak the rendering of the basic content, too:<pre>&lt;div id="mysite_webResult"&gt;<br />&lt;div class="gs-webResult gs-result"<br />  data-vars="{longUrl:function() {<br />    var i = unescapedUrl.indexOf(visibleUrl);<br />    return i &lt; 1 ? visibleUrl : unescapedUrl.substring(i);}}"&gt;<br /><br />  &lt;table&gt;<br />    &lt;tr&gt;<br />      &lt;td valign="top"&gt;<br />        &lt;div data-if="Vars.richSnippet" data-attr="0"<br />          data-body="render('thumbnail',richSnippet,{url:unescapedUrl,target:target})"&gt;&lt;/div&gt;<br />      &lt;/td&gt;<br /><br />      &lt;td valign="top"&gt;<br />        &lt;div class="gs-title"&gt;<br />          &lt;a class="gs-title" data-attr="{href:unescapedUrl,target:target}"<br />            data-body="html(title)"&gt;&lt;/a&gt;<br />        &lt;/div&gt;<br />        &lt;div class="gs-snippet" data-body="html(content)"&gt;&lt;/div&gt;<br />        &lt;div class="gs-visibleUrl gs-visibleUrl-short" data-body="longUrl()"&gt;&lt;/div&gt;<br />        &lt;div style="&amp; Vars.richSnippet.document"&gt;<br />          &lt;img data-attr="{src:Vars.richSnippet.document.filetypeImage}"&gt;<br />          By &lt;span data-body="Vars.richSnippet.document.author"&gt;&lt;/span&gt;  -<br />          &lt;span data-body="Vars.richSnippet.document.pageCount"&gt;&lt;/span&gt; pages -<br />          &lt;span data-body="Vars.richSnippet.document.viewCount"&gt;&lt;/span&gt; views<br />           - last modified  &lt;span data-body="Vars.richSnippet.document.timeAgo"&gt;&lt;/span&gt;<br />        &lt;/div&gt;<br /><br />        &lt;div data-if="Vars.richSnippet &amp;&amp; Vars.richSnippet.action" class="gs-actions"<br />          data-body="render('action',richSnippet,{url:unescapedUrl,target:target})"&gt;&lt;/div&gt;<br />      &lt;/td&gt;<br />    &lt;/tr&gt;<br />  &lt;/table&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;</pre>Voila!  The <a href="http://ajax-apis.appspot.com/html/csedr3.html" id="y0yr" title="sample">sample</a> is now complete, and here's how it looks:<br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub27fq5XI/AAAAAAAAAB0/ZOgrk9kBPUg/s1600/1.bmp"><img style="cursor:pointer; cursor:hand;width: 400px; height: 83px;" src="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub27fq5XI/AAAAAAAAAB0/ZOgrk9kBPUg/s400/1.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5459800753754006898" /></a></div><br />This example is a bit  more complex.  It shows how to use the <code>render()</code>  function to call other code, and also how you can include any  JavaScript logic.  You can even define internal functions, such as  <code>longUrl()</code>.<br /><br />Didn't quite catch all of  that or want to do even more?  Check out the <a href="http://code.google.com/apis/ajaxsearch/documentation/customsearch/rendering.html" id="w3.g" title="documentation">documentation</a>.<br /><br />The best part of announcing new features like this is seeing what innovative  implementations people come up with.  Don't keep us waiting - come show off your handiwork in our <a href="http://groups.google.com/group/Google-AJAX-Search-API" id="n6jj" title="support forum">support forum</a> or <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" id="u_it" title="IRC channel">IRC channel</a>!</div><div style="clear:both; margin-top: 2em;"></div>Posted by:  David Gibson, Software Engineer and Adam Feldman, Product Manager]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/rendering-custom-data-in-the-custom-search-element-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Rendering custom data in the Custom Search element</title>
		<link>https://googledata.org/google-ajax-api/rendering-custom-data-in-the-custom-search-element/</link>
		<comments>https://googledata.org/google-ajax-api/rendering-custom-data-in-the-custom-search-element/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 01:19:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[custom search engine]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Last year we introduced <a href="http://googlecustomsearch.blogspot.com/2009/05/enabling-rich-snippets-in-custom-search.html" title="Rich Snippets">Rich Snippets in Custom Search</a>,  allowing you to define your own custom attributes that we'll index and  return with your custom search results.  A few months later we showed  you <a href="http://adsense.blogspot.com/2009/10/more-customized-search-experience-for.html" title="how to render">how to render</a> some of these rich  snippets in your <a href="http://www.google.com/webelements/customsearch/" title="Custom Search element">Custom Search element</a>.  Sure, this was  a powerful way to let your visitors see thumbnails or interact with the results via <a href="http://googlecustomsearch.blogspot.com/2009/10/structured-custom-search.html" title="actions">actions</a>.  But we felt it was still too constrained.  It is with great pleasure that today we're announcing that you now have full rendering control of all your metadata in the Custom Search element.<br /><br />What do I mean?  If a picture is worth a thousand  words, an example is worth a thousand pictures.  Here's a fully customized element, showcasing results and metadata from <a href="http://www.scribd.com/" title="Scribd.com">Scribd.com</a>:<br />  <div> <div> <div data-if="Vars.thumbnail"> <a data-attr="{href:url, target:target}"> <img class="gs-image" data-attr="{src:thumbnail.src, width:48, height: 48}" /> </a> </div> </div> <div> <div data-vars="{longUrl:function() { var i = unescapedUrl.indexOf(visibleUrl); return i &#60; 1 ? visibleUrl : unescapedUrl.substring(i);}}"> <table> <tr> <td valign="top"> <div data-if="Vars.richSnippet" data-attr="0" data-body="render('thumbnail',richSnippet,{url:unescapedUrl,target:target})"></div> </td> <td valign="top"> <div> <a data-attr="{href:unescapedUrl,target:target}" data-body="html(title)"></a> </div> <div data-body="html(content)"></div> <div data-body="longUrl()"></div> <div color="#676767" data-if="Vars.richSnippet &#038;& Vars.richSnippet.document"> <img data-attr="{src:Vars.richSnippet.document.filetypeImage}" /> By <span data-body="Vars.richSnippet.document.author"></span> &#160;-&#160; <span data-body="Vars.richSnippet.document.pageCount"></span> pages&#160;-&#160; <span data-body="Vars.richSnippet.document.viewCount"></span> views &#160;-&#160;last modified&#160;<span data-body="Vars.richSnippet.document.timeAgo"></span> </div> <div data-if="Vars.richSnippet &#038;& Vars.richSnippet.action" data-body="render('action',richSnippet,{url:unescapedUrl,target:target})"></div> </td> </tr> </table> </div> </div> </div> <div></div><br /><div><br />The  results really jump out at you, huh?  The thumbnails really help users  see what they're looking at, but we've shown you those before.  Same  with the Download action links by each result.  But never before could  you include arbitrary, per-result metadata with your Google Custom  Search results so easily.  Notice the author, length, views and date  information in each result.  There's even an icon representing each  result's document type.<br /><br />So how can you add this to your page?   Let's take a look.<br /><br />First, you need to include custom attributes  within your webpages, either via microformats, RDFa, or a special markup  called PageMaps.  A PageMap identifies specific attributes that Google  recognizes and indexes, and then returns along with search results.  Our  prior blog post on <a href="http://googlecustomsearch.blogspot.com/2009/10/structured-custom-search.html" title="Structured Custom Search">Structured Custom Search</a>  tells you how to add PageMaps to your site.  Please keep in mind that  your site needs to be re-indexed, which can take some time.  Therefore,  your PageMaps might not show up immediately.<br /><br />Once your custom  attributes have been indexed, you're ready to tell the element how to  render them.  If you don't already have the element on your page, you  can add it with a few lines:<br /><pre>&#60;script src="http://www.google.com/jsapi" type="text/javascript"&#62;&#60;/script&#62;<br />&#60;script type="text/javascript"&#62;<br />// Load the Search API<br />google.load('search', '1');<br /><br />// Set a callback to load the Custom Search Control when you page loads<br />google.setOnLoadCallback(<br />  function(){<br />    new google.search.CustomSearchControl('INSERT-YOUR-ID').draw('cse');<br />  },<br />true);<br />&#60;/script&#62;<br />&#60;div id="cse"&#62;&#60;/div&#62;</pre>Here's the Scribd.com <a href="http://ajax-apis.appspot.com/html/csedr1.html" title="sample">sample</a>, with only the default rich snippet inclusion:<br /><div><a href="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3s_7EAI/AAAAAAAAACE/_aMDGr-7X_0/s1600/3.bmp"><img style="cursor:pointer; cursor:hand;width: 400px; height: 81px;" src="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3s_7EAI/AAAAAAAAACE/_aMDGr-7X_0/s400/3.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5459800767042621442" /></a></div><br />It looks okay, but let's  make it better.<br /><br />We have to override the default rendering, by adding this line to the <code>onLoadCallback</code>:<pre>google.search.Csedr.addOverride("mysite_");</pre>Now, create a div to hold all of the rendering information - put it right  above the div that the element uses:<pre>&#60;div style="display:none"&#62;<br />&#60;/div&#62;<br /></pre>Okay,  now that everything's set up, it's time for the good part.  First off,  let's try shrinking the thumbnails a bit.  Inside the  <code>div</code> that was just added above, and tell the  element to render the images at 48x48 pixels:<pre>&#60;div id="mysite_thumbnail"&#62;<br />&#60;div data-if="Vars.thumbnail" class="gs-image-box gs-web-image-box"&#62;<br />  &#60;a class="gs-image" data-attr="{href:url, target:target}"&#62;<br />    &#60;img class="gs-image" data-attr="{src:thumbnail.src, width:48, height: 48}"/&#62;<br />  &#60;/a&#62;<br />&#60;/div&#62;<br />&#60;/div&#62;</pre>This replaces the default thumbnail rendering code with a  similar version that sets the image dimensions directly.<br /><br />Here's  the same <a href="http://ajax-apis.appspot.com/html/csedr2.html" title="sample">sample</a> with the above code added:<br /><div><a href="http://4.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3f3HYrI/AAAAAAAAAB8/BS9qknKss0I/s1600/2.bmp"><img style="cursor:pointer; cursor:hand;width: 400px; height: 62px;" src="http://4.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3f3HYrI/AAAAAAAAAB8/BS9qknKss0I/s400/2.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5459800763516019378" /></a></div>Now it's time to add the  new content and tweak the rendering of the basic content, too:<pre>&#60;div id="mysite_webResult"&#62;<br />&#60;div class="gs-webResult gs-result"<br />  data-vars="{longUrl:function() {<br />    var i = unescapedUrl.indexOf(visibleUrl);<br />    return i &#60; 1 ? visibleUrl : unescapedUrl.substring(i);}}"&#62;<br /><br />  &#60;table&#62;<br />    &#60;tr&#62;<br />      &#60;td valign="top"&#62;<br />        &#60;div data-if="Vars.richSnippet" data-attr="0"<br />          data-body="render('thumbnail',richSnippet,{url:unescapedUrl,target:target})"&#62;&#60;/div&#62;<br />      &#60;/td&#62;<br /><br />      &#60;td valign="top"&#62;<br />        &#60;div class="gs-title"&#62;<br />          &#60;a class="gs-title" data-attr="{href:unescapedUrl,target:target}"<br />            data-body="html(title)"&#62;&#60;/a&#62;<br />        &#60;/div&#62;<br />        &#60;div class="gs-snippet" data-body="html(content)"&#62;&#60;/div&#62;<br />        &#60;div class="gs-visibleUrl gs-visibleUrl-short" data-body="longUrl()"&#62;&#60;/div&#62;<br />        &#60;div style="&#38; Vars.richSnippet.document"&#62;<br />          &#60;img data-attr="{src:Vars.richSnippet.document.filetypeImage}"&#62;<br />          By &#60;span data-body="Vars.richSnippet.document.author"&#62;&#60;/span&#62;  -<br />          &#60;span data-body="Vars.richSnippet.document.pageCount"&#62;&#60;/span&#62; pages -<br />          &#60;span data-body="Vars.richSnippet.document.viewCount"&#62;&#60;/span&#62; views<br />           - last modified  &#60;span data-body="Vars.richSnippet.document.timeAgo"&#62;&#60;/span&#62;<br />        &#60;/div&#62;<br /><br />        &#60;div data-if="Vars.richSnippet &#38;&#38; Vars.richSnippet.action" class="gs-actions"<br />          data-body="render('action',richSnippet,{url:unescapedUrl,target:target})"&#62;&#60;/div&#62;<br />      &#60;/td&#62;<br />    &#60;/tr&#62;<br />  &#60;/table&#62;<br />&#60;/div&#62;<br />&#60;/div&#62;</pre>Voila!  The <a href="http://ajax-apis.appspot.com/html/csedr3.html" title="sample">sample</a> is now complete, and here's how it looks:<br /><div><a href="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub27fq5XI/AAAAAAAAAB0/ZOgrk9kBPUg/s1600/1.bmp"><img style="cursor:pointer; cursor:hand;width: 400px; height: 83px;" src="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub27fq5XI/AAAAAAAAAB0/ZOgrk9kBPUg/s400/1.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5459800753754006898" /></a></div><br />This example is a bit  more complex.  It shows how to use the <code>render()</code>  function to call other code, and also how you can include any  JavaScript logic.  You can even define internal functions, such as  <code>longUrl()</code>.<br /><br />Didn't quite catch all of  that or want to do even more?  Check out the <a href="http://code.google.com/apis/ajaxsearch/documentation/customsearch/rendering.html" title="documentation">documentation</a>.<br /><br />The best part of announcing new features like this is seeing what innovative  implementations people come up with.  Don't keep us waiting - come show off your handiwork in our <a href="http://groups.google.com/group/Google-AJAX-Search-API" title="support forum">support forum</a> or <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" title="IRC channel">IRC channel</a>!</div><div></div>Posted by:  David Gibson, Software Engineer and Adam Feldman, Product Manager<div><img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/29072373-3153939506135843744?l=googleajaxsearchapi.blogspot.com" alt="" /></div>]]></description>
				<content:encoded><![CDATA[Last year we introduced <a href="http://googlecustomsearch.blogspot.com/2009/05/enabling-rich-snippets-in-custom-search.html" id="a1_7" title="Rich Snippets">Rich Snippets in Custom Search</a>,  allowing you to define your own custom attributes that we'll index and  return with your custom search results.  A few months later we showed  you <a href="http://adsense.blogspot.com/2009/10/more-customized-search-experience-for.html" id="wbi4" title="how to render">how to render</a> some of these rich  snippets in your <a href="http://www.google.com/webelements/customsearch/" id="w:t2" title="Custom Search element">Custom Search element</a>.  Sure, this was  a powerful way to let your visitors see thumbnails or interact with the results via <a href="http://googlecustomsearch.blogspot.com/2009/10/structured-custom-search.html" id="t:0p" title="actions">actions</a>.  But we felt it was still too constrained.  It is with great pleasure that today we're announcing that you now have full rendering control of all your metadata in the Custom Search element.<br /><br />What do I mean?  If a picture is worth a thousand  words, an example is worth a thousand pictures.  Here's a fully customized element, showcasing results and metadata from <a href="http://www.scribd.com/" id="g-0j" title="Scribd.com">Scribd.com</a>:<br /><script src="http://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1'); google.setOnLoadCallback( function(){ var customSearchControl = new google.search.CustomSearchControl( '000458029060823693019:rufl7axsp9k'); google.search.Csedr.addOverride("mysite_"); customSearchControl.draw('cse'); customSearchControl.execute("cheetah"); }, true); </script> <div style="display:none"> <div id="mysite_thumbnail"> <div data-if="Vars.thumbnail" class="gs-image-box gs-web-image-box"> <a class="gs-image" data-attr="{href:url, target:target}"> <img class="gs-image" data-attr="{src:thumbnail.src, width:48, height: 48}" /> </a> </div> </div> <div id="mysite_webResult"> <div class="gs-webResult gs-result" data-vars="{longUrl:function() { var i = unescapedUrl.indexOf(visibleUrl); return i &lt; 1 ? visibleUrl : unescapedUrl.substring(i);}}"> <table> <tr> <td valign="top"> <div data-if="Vars.richSnippet" data-attr="0" data-body="render('thumbnail',richSnippet,{url:unescapedUrl,target:target})"></div> </td> <td valign="top"> <div class="gs-title"> <a class="gs-title" data-attr="{href:unescapedUrl,target:target}" data-body="html(title)"></a> </div> <div class="gs-snippet" data-body="html(content)"></div> <div class="gs-visibleUrl gs-visibleUrl-short" data-body="longUrl()"></div> <div color="#676767" data-if="Vars.richSnippet && Vars.richSnippet.document"> <img data-attr="{src:Vars.richSnippet.document.filetypeImage}" /> By <span data-body="Vars.richSnippet.document.author"></span> &nbsp;-&nbsp; <span data-body="Vars.richSnippet.document.pageCount"></span> pages&nbsp;-&nbsp; <span data-body="Vars.richSnippet.document.viewCount"></span> views &nbsp;-&nbsp;last modified&nbsp;<span data-body="Vars.richSnippet.document.timeAgo"></span> </div> <div data-if="Vars.richSnippet && Vars.richSnippet.action" class="gs-actions" data-body="render('action',richSnippet,{url:unescapedUrl,target:target})"></div> </td> </tr> </table> </div> </div> </div> <div id="cse"></div><br /><div style="clear:both; margin-top: 2em;"><br />The  results really jump out at you, huh?  The thumbnails really help users  see what they're looking at, but we've shown you those before.  Same  with the Download action links by each result.  But never before could  you include arbitrary, per-result metadata with your Google Custom  Search results so easily.  Notice the author, length, views and date  information in each result.  There's even an icon representing each  result's document type.<br /><br />So how can you add this to your page?   Let's take a look.<br /><br />First, you need to include custom attributes  within your webpages, either via microformats, RDFa, or a special markup  called PageMaps.  A PageMap identifies specific attributes that Google  recognizes and indexes, and then returns along with search results.  Our  prior blog post on <a href="http://googlecustomsearch.blogspot.com/2009/10/structured-custom-search.html" id="w3hp" title="Structured Custom Search">Structured Custom Search</a>  tells you how to add PageMaps to your site.  Please keep in mind that  your site needs to be re-indexed, which can take some time.  Therefore,  your PageMaps might not show up immediately.<br /><br />Once your custom  attributes have been indexed, you're ready to tell the element how to  render them.  If you don't already have the element on your page, you  can add it with a few lines:<br /><pre>&lt;script src="http://www.google.com/jsapi" type="text/javascript"&gt;&lt;/script&gt;<br />&lt;script type="text/javascript"&gt;<br />// Load the Search API<br />google.load('search', '1');<br /><br />// Set a callback to load the Custom Search Control when you page loads<br />google.setOnLoadCallback(<br />  function(){<br />    new google.search.CustomSearchControl('INSERT-YOUR-ID').draw('cse');<br />  },<br />true);<br />&lt;/script&gt;<br />&lt;div id="cse"&gt;&lt;/div&gt;</pre>Here's the Scribd.com <a href="http://ajax-apis.appspot.com/html/csedr1.html" id="mqwq" title="sample">sample</a>, with only the default rich snippet inclusion:<br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3s_7EAI/AAAAAAAAACE/_aMDGr-7X_0/s1600/3.bmp"><img style="cursor:pointer; cursor:hand;width: 400px; height: 81px;" src="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3s_7EAI/AAAAAAAAACE/_aMDGr-7X_0/s400/3.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5459800767042621442" /></a></div><br />It looks okay, but let's  make it better.<br /><br />We have to override the default rendering, by adding this line to the <code>onLoadCallback</code>:<pre>google.search.Csedr.addOverride("mysite_");</pre>Now, create a div to hold all of the rendering information - put it right  above the div that the element uses:<pre>&lt;div style="display:none"&gt;<br />&lt;/div&gt;<br /></pre>Okay,  now that everything's set up, it's time for the good part.  First off,  let's try shrinking the thumbnails a bit.  Inside the  <code>div</code> that was just added above, and tell the  element to render the images at 48x48 pixels:<pre>&lt;div id="mysite_thumbnail"&gt;<br />&lt;div data-if="Vars.thumbnail" class="gs-image-box gs-web-image-box"&gt;<br />  &lt;a class="gs-image" data-attr="{href:url, target:target}"&gt;<br />    &lt;img class="gs-image" data-attr="{src:thumbnail.src, width:48, height: 48}"/&gt;<br />  &lt;/a&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;</pre>This replaces the default thumbnail rendering code with a  similar version that sets the image dimensions directly.<br /><br />Here's  the same <a href="http://ajax-apis.appspot.com/html/csedr2.html" id="nz0w" title="sample">sample</a> with the above code added:<br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3f3HYrI/AAAAAAAAAB8/BS9qknKss0I/s1600/2.bmp"><img style="cursor:pointer; cursor:hand;width: 400px; height: 62px;" src="http://4.bp.blogspot.com/_qU0w4wiK3GA/S8Ub3f3HYrI/AAAAAAAAAB8/BS9qknKss0I/s400/2.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5459800763516019378" /></a></div>Now it's time to add the  new content and tweak the rendering of the basic content, too:<pre>&lt;div id="mysite_webResult"&gt;<br />&lt;div class="gs-webResult gs-result"<br />  data-vars="{longUrl:function() {<br />    var i = unescapedUrl.indexOf(visibleUrl);<br />    return i &lt; 1 ? visibleUrl : unescapedUrl.substring(i);}}"&gt;<br /><br />  &lt;table&gt;<br />    &lt;tr&gt;<br />      &lt;td valign="top"&gt;<br />        &lt;div data-if="Vars.richSnippet" data-attr="0"<br />          data-body="render('thumbnail',richSnippet,{url:unescapedUrl,target:target})"&gt;&lt;/div&gt;<br />      &lt;/td&gt;<br /><br />      &lt;td valign="top"&gt;<br />        &lt;div class="gs-title"&gt;<br />          &lt;a class="gs-title" data-attr="{href:unescapedUrl,target:target}"<br />            data-body="html(title)"&gt;&lt;/a&gt;<br />        &lt;/div&gt;<br />        &lt;div class="gs-snippet" data-body="html(content)"&gt;&lt;/div&gt;<br />        &lt;div class="gs-visibleUrl gs-visibleUrl-short" data-body="longUrl()"&gt;&lt;/div&gt;<br />        &lt;div style="&amp; Vars.richSnippet.document"&gt;<br />          &lt;img data-attr="{src:Vars.richSnippet.document.filetypeImage}"&gt;<br />          By &lt;span data-body="Vars.richSnippet.document.author"&gt;&lt;/span&gt;  -<br />          &lt;span data-body="Vars.richSnippet.document.pageCount"&gt;&lt;/span&gt; pages -<br />          &lt;span data-body="Vars.richSnippet.document.viewCount"&gt;&lt;/span&gt; views<br />           - last modified  &lt;span data-body="Vars.richSnippet.document.timeAgo"&gt;&lt;/span&gt;<br />        &lt;/div&gt;<br /><br />        &lt;div data-if="Vars.richSnippet &amp;&amp; Vars.richSnippet.action" class="gs-actions"<br />          data-body="render('action',richSnippet,{url:unescapedUrl,target:target})"&gt;&lt;/div&gt;<br />      &lt;/td&gt;<br />    &lt;/tr&gt;<br />  &lt;/table&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;</pre>Voila!  The <a href="http://ajax-apis.appspot.com/html/csedr3.html" id="y0yr" title="sample">sample</a> is now complete, and here's how it looks:<br /><div style="text-align: center;"><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub27fq5XI/AAAAAAAAAB0/ZOgrk9kBPUg/s1600/1.bmp"><img style="cursor:pointer; cursor:hand;width: 400px; height: 83px;" src="http://1.bp.blogspot.com/_qU0w4wiK3GA/S8Ub27fq5XI/AAAAAAAAAB0/ZOgrk9kBPUg/s400/1.bmp" border="0" alt="" id="BLOGGER_PHOTO_ID_5459800753754006898" /></a></div><br />This example is a bit  more complex.  It shows how to use the <code>render()</code>  function to call other code, and also how you can include any  JavaScript logic.  You can even define internal functions, such as  <code>longUrl()</code>.<br /><br />Didn't quite catch all of  that or want to do even more?  Check out the <a href="http://code.google.com/apis/ajaxsearch/documentation/customsearch/rendering.html" id="w3.g" title="documentation">documentation</a>.<br /><br />The best part of announcing new features like this is seeing what innovative  implementations people come up with.  Don't keep us waiting - come show off your handiwork in our <a href="http://groups.google.com/group/Google-AJAX-Search-API" id="n6jj" title="support forum">support forum</a> or <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" id="u_it" title="IRC channel">IRC channel</a>!</div><div style="clear:both; margin-top: 2em;"></div>Posted by:  David Gibson, Software Engineer and Adam Feldman, Product Manager<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-3153939506135843744?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/rendering-custom-data-in-the-custom-search-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Restricting by licenses now available in the Image Search API</title>
		<link>https://googledata.org/google-ajax-api/restricting-by-licenses-now-available-in-the-image-search-api-2/</link>
		<comments>https://googledata.org/google-ajax-api/restricting-by-licenses-now-available-in-the-image-search-api-2/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 22:38:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=0e6f1e7fad34017cf01e90e391e6a5fe</guid>
		<description><![CDATA[I'm always amazed at the creative ways developers use Google's APIs.   I'm always pleased when we are able to add a new feature to the API, as I  know that someone, somewhere will do something cool and unexpected with  it.  The latest addition is to th...]]></description>
				<content:encoded><![CDATA[I'm always amazed at the creative ways developers use Google's APIs.   I'm always pleased when we are able to add a new feature to the API, as I  know that someone, somewhere will do something cool and unexpected with  it.  The latest addition is to the Image Search API.  You can now  restrict results by various licenses applied to each image.<br /><br />There  are two different ways to use this feature.  In the JavaScript API, you  can restrict your results to one of four common licenses (just like on <a href="http://images.google.com/" id="k3.3" title="Google Image Search">Google  Image Search</a>).  This is done using the <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GimageSearch" id="mi-l" title="setRestriction">setRestriction</a> method, after  creating your Image Search searcher.  Here's how to restrict to images  which have been labeled for reuse with modification:<br /><pre><div class="udiff"><span class="dump">var searcher = new google.search.ImageSearch();</span></div><a id="0" name="0"></a><div class="udiffremove"><a id="0" name="0"></a><div class="udiffadd"><span class="dump">searcher.setRestriction(google.search.ImageSearch.RESTRICT_RIGHTS,</span></div><div class="udiffadd"><span class="dump">                        google.search.ImageSearch.RIGHTS_MODIFICATION);</span></div></div></pre><div class="udiffadd"><span class="dump">You can experiment with a <a href="http://code.google.com/apis/ajax/playground/#rights_restrict" id="g4ab" title="live example">live example</a> of this in our Code  Playground.<br /><br />If you're using the JSON API, you can use the <a id="0" name="0"></a><span class="dump" id="bh3q"><a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_fonje_image" id="dvo4" title="as_rights">as_rights</a></span> optional parameter to  tell the API to include or exclude certain attributions.  To perform the  same restriction as above, try adding this to your requests:<pre>&amp;as_rights=<br /> (cc_publicdomain|cc_attribute|cc_sharealike|cc_noncommercial).-(cc_nonderived)</pre></span></div>For  a full list of the attribute combinations for each type of license,  perform an appropriately restricted search on Google Image Search's <a href="http://images.google.com/advanced_image_search" id="t9_h" title="advanced search">advanced search</a> and take a look at the  as_rights parameter in the URL on the results page.<br /><br /><div class="udiffadd"><span class="dump">Note: Images returned with this  filter may still have conditions on the license for use. Please remember  that violating copyright is strictly prohibited by the API <a href="http://code.google.com/apis/ajaxsearch/terms.html" id="v-57" title="Terms of Use">Terms of Use</a>.  For more details, see <a href="http://www.google.com/support/websearch/bin/answer.py?answer=29508" id="karv" title="this article">this article</a>.</span></div><br />Please  come visit our <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" id="oq.e" title="IRC channel">IRC channel</a> and <a href="http://groups.google.com/group/Google-AJAX-Search-API" id="pj6e" title="support forum">support forum</a> and let us know how you've used  this feature in your site or app!]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/restricting-by-licenses-now-available-in-the-image-search-api-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Restricting by licenses now available in the Image Search API</title>
		<link>https://googledata.org/google-ajax-api/restricting-by-licenses-now-available-in-the-image-search-api/</link>
		<comments>https://googledata.org/google-ajax-api/restricting-by-licenses-now-available-in-the-image-search-api/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 22:38:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I'm always amazed at the creative ways developers use Google's APIs.   I'm always pleased when we are able to add a new feature to the API, as I  know that someone, somewhere will do something cool and unexpected with  it.  The latest addition is to th...]]></description>
				<content:encoded><![CDATA[I'm always amazed at the creative ways developers use Google's APIs.   I'm always pleased when we are able to add a new feature to the API, as I  know that someone, somewhere will do something cool and unexpected with  it.  The latest addition is to the Image Search API.  You can now  restrict results by various licenses applied to each image.<br /><br />There  are two different ways to use this feature.  In the JavaScript API, you  can restrict your results to one of four common licenses (just like on <a href="http://images.google.com/" id="k3.3" title="Google Image Search">Google  Image Search</a>).  This is done using the <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GimageSearch" id="mi-l" title="setRestriction">setRestriction</a> method, after  creating your Image Search searcher.  Here's how to restrict to images  which have been labeled for reuse with modification:<br /><pre><div class="udiff"><span class="dump">var searcher = new google.search.ImageSearch();</span></div><a id="0" name="0"></a><div class="udiffremove"><a id="0" name="0"></a><div class="udiffadd"><span class="dump">searcher.setRestriction(google.search.ImageSearch.RESTRICT_RIGHTS,</span></div><div class="udiffadd"><span class="dump">                        google.search.ImageSearch.RIGHTS_MODIFICATION);</span></div></div></pre><div class="udiffadd"><span class="dump">You can experiment with a <a href="http://code.google.com/apis/ajax/playground/#rights_restrict" id="g4ab" title="live example">live example</a> of this in our Code  Playground.<br /><br />If you're using the JSON API, you can use the <a id="0" name="0"></a><span class="dump" id="bh3q"><a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_fonje_image" id="dvo4" title="as_rights">as_rights</a></span> optional parameter to  tell the API to include or exclude certain attributions.  To perform the  same restriction as above, try adding this to your requests:<pre>&amp;as_rights=<br /> (cc_publicdomain|cc_attribute|cc_sharealike|cc_noncommercial).-(cc_nonderived)</pre></span></div>For  a full list of the attribute combinations for each type of license,  perform an appropriately restricted search on Google Image Search's <a href="http://images.google.com/advanced_image_search" id="t9_h" title="advanced search">advanced search</a> and take a look at the  as_rights parameter in the URL on the results page.<br /><br /><div class="udiffadd"><span class="dump">Note: Images returned with this  filter may still have conditions on the license for use. Please remember  that violating copyright is strictly prohibited by the API <a href="http://code.google.com/apis/ajaxsearch/terms.html" id="v-57" title="Terms of Use">Terms of Use</a>.  For more details, see <a href="http://www.google.com/support/websearch/bin/answer.py?answer=29508" id="karv" title="this article">this article</a>.</span></div><br />Please  come visit our <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" id="oq.e" title="IRC channel">IRC channel</a> and <a href="http://groups.google.com/group/Google-AJAX-Search-API" id="pj6e" title="support forum">support forum</a> and let us know how you've used  this feature in your site or app!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-7978281892405184801?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/restricting-by-licenses-now-available-in-the-image-search-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Media RSS support added to the Feed API</title>
		<link>https://googledata.org/google-ajax-api/media-rss-support-added-to-the-feed-api-2/</link>
		<comments>https://googledata.org/google-ajax-api/media-rss-support-added-to-the-feed-api-2/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 17:15:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=db2bfc63e41627946bba90fccb39e839</guid>
		<description><![CDATA[More and more sites are adding support for MediaRSS  to include images, videos and other types of multimedia files.  Today,  we're announcing that the Google Feed API now includes this metadata in the  response.  This content is now included in the JSO...]]></description>
				<content:encoded><![CDATA[More and more sites are adding support for <a href="http://video.search.yahoo.com/mrss" id="y.63" title="MediaRSS">MediaRSS</a>  to include images, videos and other types of multimedia files.  Today,  we're announcing that the <a href="http://code.google.com/apis/ajaxfeeds/" id="jdkc" title="Google  Feed API">Google Feed API</a> now includes this metadata in the  response.  This content is now included in the JSON and XML results  returned by the API.  For more details on the result format, check out  the <a href="http://code.google.com/apis/ajaxfeeds/documentation/reference.html#JSON" id="upd7" title="documentation">documentation</a>.<br /><br />Please note  that complete MediaRSS content is generally only available in feed  entries newer than February 1, 2010.<br /><br />Questions?  Comments?  If  you're attending <a href="http://code.google.com/events/io/2010/" id="jfzb" title="Google I/O">Google I/O</a>, come meet the team and  learn more about the Feed API at our <a href="http://code.google.com/events/io/2010/officehours.html" id="humm" title="Office Hours">Office Hours</a>.  If you can't wait that long,  there's always our <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" id="ztof" title="IRC channel">IRC channel</a> and <a href="http://groups.google.com/group/Google-AJAX-Search-API" id="vmrt" title="support forum">support forum</a>.]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/media-rss-support-added-to-the-feed-api-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Media RSS support added to the Feed API</title>
		<link>https://googledata.org/google-ajax-api/media-rss-support-added-to-the-feed-api/</link>
		<comments>https://googledata.org/google-ajax-api/media-rss-support-added-to-the-feed-api/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 17:15:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[More and more sites are adding support for MediaRSS  to include images, videos and other types of multimedia files.  Today,  we're announcing that the Google Feed API now includes this metadata in the  response.  This content is now included in the JSO...]]></description>
				<content:encoded><![CDATA[More and more sites are adding support for <a href="http://video.search.yahoo.com/mrss" id="y.63" title="MediaRSS">MediaRSS</a>  to include images, videos and other types of multimedia files.  Today,  we're announcing that the <a href="http://code.google.com/apis/ajaxfeeds/" id="jdkc" title="Google  Feed API">Google Feed API</a> now includes this metadata in the  response.  This content is now included in the JSON and XML results  returned by the API.  For more details on the result format, check out  the <a href="http://code.google.com/apis/ajaxfeeds/documentation/reference.html#JSON" id="upd7" title="documentation">documentation</a>.<br /><br />Please note  that complete MediaRSS content is generally only available in feed  entries newer than February 1, 2010.<br /><br />Questions?  Comments?  If  you're attending <a href="http://code.google.com/events/io/2010/" id="jfzb" title="Google I/O">Google I/O</a>, come meet the team and  learn more about the Feed API at our <a href="http://code.google.com/events/io/2010/officehours.html" id="humm" title="Office Hours">Office Hours</a>.  If you can't wait that long,  there's always our <a href="https://groups.google.com/group/google-ajax-search-api/browse_thread/thread/ccbcf6c42d5a78bc" id="ztof" title="IRC channel">IRC channel</a> and <a href="http://groups.google.com/group/Google-AJAX-Search-API" id="vmrt" title="support forum">support forum</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-7716660715513068817?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/media-rss-support-added-to-the-feed-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Helping you help us help you</title>
		<link>https://googledata.org/google-ajax-api/helping-you-help-us-help-you/</link>
		<comments>https://googledata.org/google-ajax-api/helping-you-help-us-help-you/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 02:25:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[As I mentioned in a previous post, we've taken several  measures to help differentiate legitimate API traffic from bad requests.    To help us serve you better, I'm pleased to announce a new way for  you to identify your request as harmful.   Beginning...]]></description>
				<content:encoded><![CDATA[As I mentioned in a <a href="http://googleajaxsearchapi.blogspot.com/2010/01/new-parameter-for-server-side-api-calls.html" id="kbsz" title="previous post">previous post</a>, we've taken several  measures to help differentiate legitimate API traffic from bad requests.    To help us serve you better, I'm pleased to announce a new way for  you to identify your request as harmful.   Beginning today, please  include the <code>&amp;evil=true</code> parameter in  your API requests if you're one of the bad guys.<br /><br />How does this  work in practice?   Here's an <a href="http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=april+fools+day&amp;evil=true" id="nzq6" title="example query">example query</a> which lets Google  know that you're intending to use the API for nefarious purposes.  This  way, we can respond to your request in the appropriate manner as  efficiently as possible.<br /><br />Note:  In order to encourage adoption as  quickly as possible, we are requiring all bad requests to include the <a href="http://google.com/search?q=evil+bit" id="ev96" title="evil bit">evil  bit</a> by the end of today, April 1.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-8087571674302048209?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/helping-you-help-us-help-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Helping you help us help you</title>
		<link>https://googledata.org/google-ajax-api/helping-you-help-us-help-you-2/</link>
		<comments>https://googledata.org/google-ajax-api/helping-you-help-us-help-you-2/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 02:25:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=77adc85898d714389bb4876bf1f015bf</guid>
		<description><![CDATA[As I mentioned in a previous post, we've taken several  measures to help differentiate legitimate API traffic from bad requests.    To help us serve you better, I'm pleased to announce a new way for  you to identify your request as harmful.   Beginning...]]></description>
				<content:encoded><![CDATA[As I mentioned in a <a href="http://googleajaxsearchapi.blogspot.com/2010/01/new-parameter-for-server-side-api-calls.html" id="kbsz" title="previous post">previous post</a>, we've taken several  measures to help differentiate legitimate API traffic from bad requests.    To help us serve you better, I'm pleased to announce a new way for  you to identify your request as harmful.   Beginning today, please  include the <code>&amp;evil=true</code> parameter in  your API requests if you're one of the bad guys.<br /><br />How does this  work in practice?   Here's an <a href="http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=april+fools+day&amp;evil=true" id="nzq6" title="example query">example query</a> which lets Google  know that you're intending to use the API for nefarious purposes.  This  way, we can respond to your request in the appropriate manner as  efficiently as possible.<br /><br />Note:  In order to encourage adoption as  quickly as possible, we are requiring all bad requests to include the <a href="http://google.com/search?q=evil+bit" id="ev96" title="evil bit">evil  bit</a> by the end of today, April 1.]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/helping-you-help-us-help-you-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Search Form and Results on Two Different Pages</title>
		<link>https://googledata.org/google-ajax-api/search-form-and-results-on-two-different-pages/</link>
		<comments>https://googledata.org/google-ajax-api/search-form-and-results-on-two-different-pages/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 17:08:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[custom search engine]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[One of the major advantages of an Ajax style search box is that users can perform their queries and get their results without leaving the page. However, some webmasters prefer that their users go to a separate results page after they enter a search. Th...]]></description>
				<content:encoded><![CDATA[<p>One of the major advantages of an Ajax style search box is that users can perform their queries and get their results without leaving the page. However, some webmasters prefer that their users go to a separate results page after they enter a search. The Ajax search library supports this &quot;two-page&quot; use case as well, and since this is a question that we see from time to time we've set up a simple <a href="http://ajax-apis.appspot.com/two-page-search">demo site</a>.<p><p>To create this page we wrote a simple form in HTML and added JavaScript to add the &quot;Google Custom Search&quot; branding in the search box. View source   to see all the details.</p><p>When the user submits the form, they are taken to a results page which has the following HTML structure:</p><pre>    &lt;div id=&quot;results&quot;&gt;Loading...&lt;/div&gt;</pre><p>We then tell the search library to draw its search box and results in the div we just created:</p><pre>        // Draw the control in content div<br />        customSearchControl.draw('results');</pre><p>Since the user came to this page from our search form, their query terms are now part of the page URL, so all we need to do now is extract them and execute their query:</p><pre>      function getQuery() {<br />        var url = '' + window.location;<br />        var queryStart = url.indexOf('?') + 1;<br />        if (queryStart &gt; 0) {<br />          var parts = url.substr(queryStart).split('&amp;');<br />          for (var i = 0; i < parts.length; i++) {<br />            if (parts[i].substr(0, 1) == 'q') {<br />              return unescape(parts[i].split('=')[1].replace(/\+/g, ' '));<br />            }<br />          }<br />        }<br />        return '';<br />      }<br /><br />      // See the source code of the results page for full details.<br /><br />      ...<br />  <br /><br />        // Run a query<br />        customSearchControl.execute(getQuery());</pre><p>There is one more optional setting that you might be interested in. The second page which we've just created contains a search box that will allow the user to perform searches on this same page. If you would prefer for the search box not to appear on this results page we can add the following HTML to the page:</p><pre>    &lt;input style=&quot;display:none&quot; id=&quot;hidden-input&quot; /&gt;</pre><p>We hide the input box because we don't want the Ajax search library to render the usual query input box, just to show the results. We then tell the search library to draw its search box in the hidden input, making it invisible:</p><pre>        // Set drawing options to use our hidden input box.<br />        var drawOptions = new google.search.DrawOptions();<br />        drawOptions.setInput(document.getElementById('hidden-input'));<br /><br />        // Change the draw call to include our new options.<br />        customSearchControl.draw('results', drawOptions);</pre><p>To see an example of a two-page search setup with a hidden query input, visit <a href="http://ajax-apis.appspot.com/two-page-search-alt">this page</a>.</p><p>To learn more about the <a href="http://code.google.com/apis/customsearch/">Google Custom Search API</a>, read our <a href="http://code.google.com/apis/customsearch/docs/dev_guide.html">documentation</a>. If you run into any problems while setting this up, post your question in our <a href="http://groups.google.com/group/google-ajax-search-api">discussion group</a> or hop on our <a href="http://webchat.freenode.net/?channels=googleajaxapis">IRC channel</a>.</p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-1953971872129013266?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/search-form-and-results-on-two-different-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search Form and Results on Two Different Pages</title>
		<link>https://googledata.org/google-ajax-api/search-form-and-results-on-two-different-pages-2/</link>
		<comments>https://googledata.org/google-ajax-api/search-form-and-results-on-two-different-pages-2/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 17:08:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[custom search engine]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=a41213e7155baa73a13319af739dc482</guid>
		<description><![CDATA[<p>One of the major advantages of an Ajax style search box is that users can perform their queries and get their results without leaving the page. However, some webmasters prefer that their users go to a separate results page after they enter a search. The Ajax search library supports this "two-page" use case as well, and since this is a question that we see from time to time we've set up a simple <a href="http://ajax-apis.appspot.com/two-page-search">demo site</a>.</p><p></p><p>To create this page we wrote a simple form in HTML and added JavaScript to add the "Google Custom Search" branding in the search box. View source   to see all the details.</p><p>When the user submits the form, they are taken to a results page which has the following HTML structure:</p><pre>    &#60;div id="results"&#62;Loading...&#60;/div&#62;</pre><p>We then tell the search library to draw its search box and results in the div we just created:</p><pre>        // Draw the control in content div<br />        customSearchControl.draw('results');</pre><p>Since the user came to this page from our search form, their query terms are now part of the page URL, so all we need to do now is extract them and execute their query:</p><pre>      function getQuery() {<br />        var url = '' + window.location;<br />        var queryStart = url.indexOf('?') + 1;<br />        if (queryStart &#62; 0) {<br />          var parts = url.substr(queryStart).split('&#38;');<br />          for (var i = 0; i             if (parts[i].substr(0, 1) == 'q') {<br />              return unescape(parts[i].split('=')[1].replace(/\+/g, ' '));<br />            }<br />          }<br />        }<br />        return '';<br />      }<br /><br />      // See the source code of the results page for full details.<br /><br />      ...<br /><br /><br />        // Run a query<br />        customSearchControl.execute(getQuery());</pre><p>There is one more optional setting that you might be interested in. The second page which we've just created contains a search box that will allow the user to perform searches on this same page. If you would prefer for the search box not to appear on this results page we can add the following HTML to the page:</p><pre>    &#60;input style="display:none" id="hidden-input" /&#62;</pre><p>We hide the input box because we don't want the Ajax search library to render the usual query input box, just to show the results. We then tell the search library to draw its search box in the hidden input, making it invisible:</p><pre>        // Set drawing options to use our hidden input box.<br />        var drawOptions = new google.search.DrawOptions();<br />        drawOptions.setInput(document.getElementById('hidden-input'));<br /><br />        // Change the draw call to include our new options.<br />        customSearchControl.draw('results', drawOptions);</pre><p>To see an example of a two-page search setup with a hidden query input, visit <a href="http://ajax-apis.appspot.com/two-page-search-alt">this page</a>.</p><p>To learn more about the <a href="http://code.google.com/apis/customsearch/">Google Custom Search API</a>, read our <a href="http://code.google.com/apis/customsearch/docs/dev_guide.html">documentation</a>. If you run into any problems while setting this up, post your question in our <a href="http://groups.google.com/group/google-ajax-search-api">discussion group</a> or hop on our <a href="http://webchat.freenode.net/?channels=googleajaxapis">IRC channel</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>One of the major advantages of an Ajax style search box is that users can perform their queries and get their results without leaving the page. However, some webmasters prefer that their users go to a separate results page after they enter a search. The Ajax search library supports this &quot;two-page&quot; use case as well, and since this is a question that we see from time to time we've set up a simple <a href="http://ajax-apis.appspot.com/two-page-search">demo site</a>.<p><p>To create this page we wrote a simple form in HTML and added JavaScript to add the &quot;Google Custom Search&quot; branding in the search box. View source   to see all the details.</p><p>When the user submits the form, they are taken to a results page which has the following HTML structure:</p><pre>    &lt;div id=&quot;results&quot;&gt;Loading...&lt;/div&gt;</pre><p>We then tell the search library to draw its search box and results in the div we just created:</p><pre>        // Draw the control in content div<br />        customSearchControl.draw('results');</pre><p>Since the user came to this page from our search form, their query terms are now part of the page URL, so all we need to do now is extract them and execute their query:</p><pre>      function getQuery() {<br />        var url = '' + window.location;<br />        var queryStart = url.indexOf('?') + 1;<br />        if (queryStart &gt; 0) {<br />          var parts = url.substr(queryStart).split('&amp;');<br />          for (var i = 0; i < parts.length; i++) {<br />            if (parts[i].substr(0, 1) == 'q') {<br />              return unescape(parts[i].split('=')[1].replace(/\+/g, ' '));<br />            }<br />          }<br />        }<br />        return '';<br />      }<br /><br />      // See the source code of the results page for full details.<br /><br />      ...<br />  <br /><br />        // Run a query<br />        customSearchControl.execute(getQuery());</pre><p>There is one more optional setting that you might be interested in. The second page which we've just created contains a search box that will allow the user to perform searches on this same page. If you would prefer for the search box not to appear on this results page we can add the following HTML to the page:</p><pre>    &lt;input style=&quot;display:none&quot; id=&quot;hidden-input&quot; /&gt;</pre><p>We hide the input box because we don't want the Ajax search library to render the usual query input box, just to show the results. We then tell the search library to draw its search box in the hidden input, making it invisible:</p><pre>        // Set drawing options to use our hidden input box.<br />        var drawOptions = new google.search.DrawOptions();<br />        drawOptions.setInput(document.getElementById('hidden-input'));<br /><br />        // Change the draw call to include our new options.<br />        customSearchControl.draw('results', drawOptions);</pre><p>To see an example of a two-page search setup with a hidden query input, visit <a href="http://ajax-apis.appspot.com/two-page-search-alt">this page</a>.</p><p>To learn more about the <a href="http://code.google.com/apis/customsearch/">Google Custom Search API</a>, read our <a href="http://code.google.com/apis/customsearch/docs/dev_guide.html">documentation</a>. If you run into any problems while setting this up, post your question in our <a href="http://groups.google.com/group/google-ajax-search-api">discussion group</a> or hop on our <a href="http://webchat.freenode.net/?channels=googleajaxapis">IRC channel</a>.</p>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/search-form-and-results-on-two-different-pages-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Finding Images on a Specific Site</title>
		<link>https://googledata.org/google-ajax-api/finding-images-on-a-specific-site/</link>
		<comments>https://googledata.org/google-ajax-api/finding-images-on-a-specific-site/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 18:55:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>One feature of the <a href="http://code.google.com/apis/ajaxsearch/documentation/">AJAX Image Search API</a> that you might find useful is the ability to retrieve only the images which are visible on a specific website. For example, you could add a search box that allows people to search through just the images on your own site or you could create a slideshow which shows images from your favorite site.</p><p>To specify a site, use the <code>setSiteRestriction</code> method on an <code>ImageSearch</code> object. Here is a simple example:</p><p><a href="http://code.google.com/apis/ajax/playground/#site_restrict">http://code.google.com/apis/ajax/playground/#site_restrict</a></p><p>We can do more than just provide a site-specific image search box, we could also use the search results in a unique way. For example, we could create a slideshow which shows images which match our desired keyword and appear on a specific site. For this example, let's create a simple slideshow that displays images from <a href="http://nasa.gov">nasa.gov</a>.</p><pre>var imageIndex = 0;<br />var images;<br /><br />function nextImage() {<br /> imageIndex++;<br /> if (imageIndex &#62;= images.length) {<br />   imageIndex = 0;<br /> }<br /><br /> var imageContainer = document.getElementById(<br />     'image-container');<br /> imageContainer.src = images[imageIndex].tbUrl;<br />}<br /><br />function searchComplete(searcher) {<br /> if (searcher.results &#38;&#38; searcher.results.length > 0) {<br />   var contentDiv = document.getElementById(<br />       'content-slideshow');<br />   contentDiv.innerHTML = '';<br /><br />   var imageTag = document.createElement('img');<br />   imageTag['id'] = 'image-container';<br />   imageTag['src'] = searcher.results[imageIndex].tbUrl;<br />   images = searcher.results;<br /><br />   contentDiv.appendChild(imageTag);<br /><br />   // Switch to the next image every 5 seconds.<br />   <strong>setInterval("nextImage();", 5000);</strong><br /> }<br />}<br /><br />function slideshowOnLoad() {<br /> var imageSearch = new google.search.ImageSearch();<br /> <strong>imageSearch.setSiteRestriction('nasa.gov');</strong><br /> imageSearch.setSearchCompleteCallback(<br />     this, searchComplete, [imageSearch]);<br /> <strong>imageSearch.execute('supernova');</strong><br />}<br /><br />google.setOnLoadCallback(slideshowOnLoad);</pre><p>In the above samples, there are three lines I'd like to call your attention to. The first line to note is the <code>imageSearch.execute</code> at the bottom, here we've entered the keywords that our slideshow images should be related to. Next we restrict the site to <a href="http://nasa.gov">nasa.gov</a> using <code>imageSearch.setSiteRestriction</code>. Lastly, we call <code>setInterval</code> once we receive the results of our search for images. The <code>setInterval</code> call tells the browser to run our <code>nextImage</code> function every five seconds.</p><p>Here are the two samples we've talked about in action:</p><div></div><div></div><p>The site restriction can also include a path within a website. For example you could do <code>setSiteRestriction(<br />'http://www.flickr.com/photos/&#60;username&#62;')</code> to search the photos that have been posted by a particular user on <a href="http://flickr.com">flickr</a>.</p><p>To learn more about some other neat features of the AJAX Image Search API take a look at our <a href="http://code.google.com/apis/ajax/playground/#site_restrict">code playground samples</a> and <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GimageSearch">documentation</a>. For questions on this and other topics, drop us a line in the <a href="http://groups.google.com/group/google-ajax-search-api">discussion group</a>.</p><div><img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/29072373-888716444711104599?l=googleajaxsearchapi.blogspot.com" alt="" /></div>]]></description>
				<content:encoded><![CDATA[<p>One feature of the <a href="http://code.google.com/apis/ajaxsearch/documentation/">AJAX Image Search API</a> that you might find useful is the ability to retrieve only the images which are visible on a specific website. For example, you could add a search box that allows people to search through just the images on your own site or you could create a slideshow which shows images from your favorite site.</p><p>To specify a site, use the <code>setSiteRestriction</code> method on an <code>ImageSearch</code> object. Here is a simple example:</p><p><a href="http://code.google.com/apis/ajax/playground/#site_restrict">http://code.google.com/apis/ajax/playground/#site_restrict</a></p><p>We can do more than just provide a site-specific image search box, we could also use the search results in a unique way. For example, we could create a slideshow which shows images which match our desired keyword and appear on a specific site. For this example, let's create a simple slideshow that displays images from <a href="http://nasa.gov">nasa.gov</a>.</p><pre>var imageIndex = 0;<br />var images;<br /><br />function nextImage() {<br /> imageIndex++;<br /> if (imageIndex &gt;= images.length) {<br />   imageIndex = 0;<br /> }<br /><br /> var imageContainer = document.getElementById(<br />     'image-container');<br /> imageContainer.src = images[imageIndex].tbUrl;<br />}<br /><br />function searchComplete(searcher) {<br /> if (searcher.results &amp;&amp; searcher.results.length > 0) {<br />   var contentDiv = document.getElementById(<br />       'content-slideshow');<br />   contentDiv.innerHTML = '';<br /><br />   var imageTag = document.createElement('img');<br />   imageTag['id'] = 'image-container';<br />   imageTag['src'] = searcher.results[imageIndex].tbUrl;<br />   images = searcher.results;<br /><br />   contentDiv.appendChild(imageTag);<br /><br />   // Switch to the next image every 5 seconds.<br />   <strong>setInterval("nextImage();", 5000);</strong><br /> }<br />}<br /><br />function slideshowOnLoad() {<br /> var imageSearch = new google.search.ImageSearch();<br /> <strong>imageSearch.setSiteRestriction('nasa.gov');</strong><br /> imageSearch.setSearchCompleteCallback(<br />     this, searchComplete, [imageSearch]);<br /> <strong>imageSearch.execute('supernova');</strong><br />}<br /><br />google.setOnLoadCallback(slideshowOnLoad);</pre><p>In the above samples, there are three lines I'd like to call your attention to. The first line to note is the <code>imageSearch.execute</code> at the bottom, here we've entered the keywords that our slideshow images should be related to. Next we restrict the site to <a href="http://nasa.gov">nasa.gov</a> using <code>imageSearch.setSiteRestriction</code>. Lastly, we call <code>setInterval</code> once we receive the results of our search for images. The <code>setInterval</code> call tells the browser to run our <code>nextImage</code> function every five seconds.</p><p>Here are the two samples we've talked about in action:</p><div id='search-demo'></div><div id='slideshow-demo' style="height: 350px"></div><p>The site restriction can also include a path within a website. For example you could do <code>setSiteRestriction(<br />'http://www.flickr.com/photos/&lt;username&gt;')</code> to search the photos that have been posted by a particular user on <a href="http://flickr.com">flickr</a>.</p><p>To learn more about some other neat features of the AJAX Image Search API take a look at our <a href="http://code.google.com/apis/ajax/playground/#site_restrict">code playground samples</a> and <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GimageSearch">documentation</a>. For questions on this and other topics, drop us a line in the <a href="http://groups.google.com/group/google-ajax-search-api">discussion group</a>.</p><script src="http://www.google.com/jsapi?key=ABQIAAAA1XbMiDxx_BTCY2_FkPh06RRaGTYH6UMl8mADNa0YKuWNNa8VNxQEerTAUcfkyrr6OwBovxn7TDAH5Q" type="text/javascript"></script><script type="text/javascript">google.load("search","1"); function onLoad(){var searchControl=new google.search.SearchControl;var imageSearch=new google.search.ImageSearch;imageSearch.setSiteRestriction("nasa.gov");searchControl.addSearcher(imageSearch);searchControl.draw(document.getElementById("search-demo"));searchControl.execute("supernova");var imageSearch=new google.search.ImageSearch;imageSearch.setSiteRestriction("nasa.gov");imageSearch.setSearchCompleteCallback(this,searchComplete,[imageSearch]);imageSearch.execute("supernova")}var imageIndex=0; var images;function nextImage(){imageIndex++;if(imageIndex>=images.length)imageIndex=0;var imageContainer=document.getElementById("image-container");imageContainer.src=images[imageIndex].tbUrl} function searchComplete(searcher){if(searcher.results&&searcher.results.length>0){var contentDiv=document.getElementById("slideshow-demo");contentDiv.innerHTML="";var imageTag=document.createElement("img");imageTag["id"]="image-container";imageTag["src"]=searcher.results[imageIndex].tbUrl;images=searcher.results;contentDiv.appendChild(imageTag);setInterval("nextImage();",3E3)}}google.setOnLoadCallback(onLoad);</script><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-888716444711104599?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/finding-images-on-a-specific-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding Images on a Specific Site</title>
		<link>https://googledata.org/google-ajax-api/finding-images-on-a-specific-site-2/</link>
		<comments>https://googledata.org/google-ajax-api/finding-images-on-a-specific-site-2/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 18:55:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=cb2f8477ffa363ba46d8bd0ec0483727</guid>
		<description><![CDATA[<p>One feature of the <a href="http://code.google.com/apis/ajaxsearch/documentation/">AJAX Image Search API</a> that you might find useful is the ability to retrieve only the images which are visible on a specific website. For example, you could add a search box that allows people to search through just the images on your own site or you could create a slideshow which shows images from your favorite site.</p><p>To specify a site, use the <code>setSiteRestriction</code> method on an <code>ImageSearch</code> object. Here is a simple example:</p><p><a href="http://code.google.com/apis/ajax/playground/#site_restrict">http://code.google.com/apis/ajax/playground/#site_restrict</a></p><p>We can do more than just provide a site-specific image search box, we could also use the search results in a unique way. For example, we could create a slideshow which shows images which match our desired keyword and appear on a specific site. For this example, let's create a simple slideshow that displays images from <a href="http://nasa.gov/">nasa.gov</a>.</p><pre>var imageIndex = 0;<br />var images;<br /><br />function nextImage() {<br /> imageIndex++;<br /> if (imageIndex &#62;= images.length) {<br />   imageIndex = 0;<br /> }<br /><br /> var imageContainer = document.getElementById(<br />     'image-container');<br /> imageContainer.src = images[imageIndex].tbUrl;<br />}<br /><br />function searchComplete(searcher) {<br /> if (searcher.results &#38;&#38; searcher.results.length &#62; 0) {<br />   var contentDiv = document.getElementById(<br />       'content-slideshow');<br />   contentDiv.innerHTML = '';<br /><br />   var imageTag = document.createElement('img');<br />   imageTag['id'] = 'image-container';<br />   imageTag['src'] = searcher.results[imageIndex].tbUrl;<br />   images = searcher.results;<br /><br />   contentDiv.appendChild(imageTag);<br /><br />   // Switch to the next image every 5 seconds.<br /><strong>setInterval("nextImage();", 5000);</strong><br /> }<br />}<br /><br />function slideshowOnLoad() {<br /> var imageSearch = new google.search.ImageSearch();<br /><strong>imageSearch.setSiteRestriction('nasa.gov');</strong><br /> imageSearch.setSearchCompleteCallback(<br />     this, searchComplete, [imageSearch]);<br /><strong>imageSearch.execute('supernova');</strong><br />}<br /><br />google.setOnLoadCallback(slideshowOnLoad);</pre><p>In the above samples, there are three lines I'd like to call your attention to. The first line to note is the <code>imageSearch.execute</code> at the bottom, here we've entered the keywords that our slideshow images should be related to. Next we restrict the site to <a href="http://nasa.gov/">nasa.gov</a> using <code>imageSearch.setSiteRestriction</code>. Lastly, we call <code>setInterval</code> once we receive the results of our search for images. The <code>setInterval</code> call tells the browser to run our <code>nextImage</code> function every five seconds.</p><p>Here are the two samples we've talked about in action:</p><div></div><div></div><p>The site restriction can also include a path within a website. For example you could do <code>setSiteRestriction(<br />'http://www.flickr.com/photos/&#60;username&#62;')</code> to search the photos that have been posted by a particular user on <a href="http://flickr.com/">flickr</a>.</p><p>To learn more about some other neat features of the AJAX Image Search API take a look at our <a href="http://code.google.com/apis/ajax/playground/#site_restrict">code playground samples</a> and <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GimageSearch">documentation</a>. For questions on this and other topics, drop us a line in the <a href="http://groups.google.com/group/google-ajax-search-api">discussion group</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>One feature of the <a href="http://code.google.com/apis/ajaxsearch/documentation/">AJAX Image Search API</a> that you might find useful is the ability to retrieve only the images which are visible on a specific website. For example, you could add a search box that allows people to search through just the images on your own site or you could create a slideshow which shows images from your favorite site.</p><p>To specify a site, use the <code>setSiteRestriction</code> method on an <code>ImageSearch</code> object. Here is a simple example:</p><p><a href="http://code.google.com/apis/ajax/playground/#site_restrict">http://code.google.com/apis/ajax/playground/#site_restrict</a></p><p>We can do more than just provide a site-specific image search box, we could also use the search results in a unique way. For example, we could create a slideshow which shows images which match our desired keyword and appear on a specific site. For this example, let's create a simple slideshow that displays images from <a href="http://nasa.gov/">nasa.gov</a>.</p><pre>var imageIndex = 0;<br />var images;<br /><br />function nextImage() {<br /> imageIndex++;<br /> if (imageIndex &gt;= images.length) {<br />   imageIndex = 0;<br /> }<br /><br /> var imageContainer = document.getElementById(<br />     'image-container');<br /> imageContainer.src = images[imageIndex].tbUrl;<br />}<br /><br />function searchComplete(searcher) {<br /> if (searcher.results &amp;&amp; searcher.results.length > 0) {<br />   var contentDiv = document.getElementById(<br />       'content-slideshow');<br />   contentDiv.innerHTML = '';<br /><br />   var imageTag = document.createElement('img');<br />   imageTag['id'] = 'image-container';<br />   imageTag['src'] = searcher.results[imageIndex].tbUrl;<br />   images = searcher.results;<br /><br />   contentDiv.appendChild(imageTag);<br /><br />   // Switch to the next image every 5 seconds.<br />   <strong>setInterval("nextImage();", 5000);</strong><br /> }<br />}<br /><br />function slideshowOnLoad() {<br /> var imageSearch = new google.search.ImageSearch();<br /> <strong>imageSearch.setSiteRestriction('nasa.gov');</strong><br /> imageSearch.setSearchCompleteCallback(<br />     this, searchComplete, [imageSearch]);<br /> <strong>imageSearch.execute('supernova');</strong><br />}<br /><br />google.setOnLoadCallback(slideshowOnLoad);</pre><p>In the above samples, there are three lines I'd like to call your attention to. The first line to note is the <code>imageSearch.execute</code> at the bottom, here we've entered the keywords that our slideshow images should be related to. Next we restrict the site to <a href="http://nasa.gov/">nasa.gov</a> using <code>imageSearch.setSiteRestriction</code>. Lastly, we call <code>setInterval</code> once we receive the results of our search for images. The <code>setInterval</code> call tells the browser to run our <code>nextImage</code> function every five seconds.</p><p>Here are the two samples we've talked about in action:</p><div id='search-demo'></div><div id='slideshow-demo' style="height: 350px"></div><p>The site restriction can also include a path within a website. For example you could do <code>setSiteRestriction(<br />'http://www.flickr.com/photos/&lt;username&gt;')</code> to search the photos that have been posted by a particular user on <a href="http://flickr.com/">flickr</a>.</p><p>To learn more about some other neat features of the AJAX Image Search API take a look at our <a href="http://code.google.com/apis/ajax/playground/#site_restrict">code playground samples</a> and <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_class_GimageSearch">documentation</a>. For questions on this and other topics, drop us a line in the <a href="http://groups.google.com/group/google-ajax-search-api">discussion group</a>.</p><script src="http://www.google.com/jsapi?key=ABQIAAAA1XbMiDxx_BTCY2_FkPh06RRaGTYH6UMl8mADNa0YKuWNNa8VNxQEerTAUcfkyrr6OwBovxn7TDAH5Q" type="text/javascript"></script><script type="text/javascript">google.load("search","1"); function onLoad(){var searchControl=new google.search.SearchControl;var imageSearch=new google.search.ImageSearch;imageSearch.setSiteRestriction("nasa.gov");searchControl.addSearcher(imageSearch);searchControl.draw(document.getElementById("search-demo"));searchControl.execute("supernova");var imageSearch=new google.search.ImageSearch;imageSearch.setSiteRestriction("nasa.gov");imageSearch.setSearchCompleteCallback(this,searchComplete,[imageSearch]);imageSearch.execute("supernova")}var imageIndex=0; var images;function nextImage(){imageIndex++;if(imageIndex>=images.length)imageIndex=0;var imageContainer=document.getElementById("image-container");imageContainer.src=images[imageIndex].tbUrl} function searchComplete(searcher){if(searcher.results&&searcher.results.length>0){var contentDiv=document.getElementById("slideshow-demo");contentDiv.innerHTML="";var imageTag=document.createElement("img");imageTag["id"]="image-container";imageTag["src"]=searcher.results[imageIndex].tbUrl;images=searcher.results;contentDiv.appendChild(imageTag);setInterval("nextImage();",3E3)}}google.setOnLoadCallback(onLoad);</script>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/finding-images-on-a-specific-site-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>New Parameter for Server Side API Calls</title>
		<link>https://googledata.org/google-ajax-api/new-parameter-for-server-side-api-calls-2/</link>
		<comments>https://googledata.org/google-ajax-api/new-parameter-for-server-side-api-calls-2/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 21:10:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=277272526ad3ec829116e1158aaa8791</guid>
		<description><![CDATA[Over the last several years, you've helped make Google's AJAX APIs incredibly successful.  Not surprisingly, however, there are some people who try to take advantage of these free APIs by using them in ways that they were not designed for, abuse which ...]]></description>
				<content:encoded><![CDATA[<div>Over the last several years, you've helped make <a href="http://code.google.com/apis/ajax/">Google's AJAX APIs</a> incredibly successful.  Not surprisingly, however, there are some people who try to take advantage of these free APIs by using them in ways that they were not designed for, abuse which is prohibited by the <a href="http://code.google.com/apis/ajaxsearch/terms.html">Terms of Use</a>.  Specifically, some servers are making countless requests - requests not made on the behalf of an end-user - in an attempt to scrape data from the APIs.</div><div><br /></div><div>To help us discourage this behavior without affecting legitimate developers, we're adding a new parameter to the RESTful interface, userip.  With this parameter, developers have the option of supplying the IP address of the end-user on whose behalf they are making the API request.  Doing so will help us distinguish this legitimate server-side traffic from the more abusive scraping in which there are no end-users.</div><div><br /></div><div>Use of this new parameter is *not* required.  However, if it is not included with server-side requests, those requests are more likely to be interpreted and automatically blocked as abuse, especially in situations where a server is sending a high volume of traffic to the API.  Additional safeguards you can take include setting setting a valid HTTP referer (as required by our Terms of Use) and using an <a href="http://code.google.com/apis/ajaxsearch/signup.html">API key</a>.  These additional measures will help us contact you in case there are problems with your website or application (sometimes a programming error results in massive traffic, forcing us to block your access if we are unable to contact you).  In choosing to utilize this parameter, please be sure that you're in compliance with any local laws, including any laws relating to disclosure of personal information being sent.</div><div><br /></div><div>Check the <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_fonje">documentation</a> for usage of the new parameter.  We'd love to hear any comments, questions or problems you're having in the <a href="http://groups.google.com/group/Google-AJAX-Search-API">support forum</a>.</div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/new-parameter-for-server-side-api-calls-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>New Parameter for Server Side API Calls</title>
		<link>https://googledata.org/google-ajax-api/new-parameter-for-server-side-api-calls/</link>
		<comments>https://googledata.org/google-ajax-api/new-parameter-for-server-side-api-calls/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 21:10:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Over the last several years, you've helped make Google's AJAX APIs incredibly successful.  Not surprisingly, however, there are some people who try to take advantage of these free APIs by using them in ways that they were not designed for, abuse which ...]]></description>
				<content:encoded><![CDATA[<div>Over the last several years, you've helped make <a href="http://code.google.com/apis/ajax/">Google's AJAX APIs</a> incredibly successful.  Not surprisingly, however, there are some people who try to take advantage of these free APIs by using them in ways that they were not designed for, abuse which is prohibited by the <a href="http://code.google.com/apis/ajaxsearch/terms.html">Terms of Use</a>.  Specifically, some servers are making countless requests - requests not made on the behalf of an end-user - in an attempt to scrape data from the APIs.</div><div><br /></div><div>To help us discourage this behavior without affecting legitimate developers, we're adding a new parameter to the RESTful interface, userip.  With this parameter, developers have the option of supplying the IP address of the end-user on whose behalf they are making the API request.  Doing so will help us distinguish this legitimate server-side traffic from the more abusive scraping in which there are no end-users.</div><div><br /></div><div>Use of this new parameter is *not* required.  However, if it is not included with server-side requests, those requests are more likely to be interpreted and automatically blocked as abuse, especially in situations where a server is sending a high volume of traffic to the API.  Additional safeguards you can take include setting setting a valid HTTP referer (as required by our Terms of Use) and using an <a href="http://code.google.com/apis/ajaxsearch/signup.html">API key</a>.  These additional measures will help us contact you in case there are problems with your website or application (sometimes a programming error results in massive traffic, forcing us to block your access if we are unable to contact you).  In choosing to utilize this parameter, please be sure that you're in compliance with any local laws, including any laws relating to disclosure of personal information being sent.</div><div><br /></div><div>Check the <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_fonje">documentation</a> for usage of the new parameter.  We'd love to hear any comments, questions or problems you're having in the <a href="http://groups.google.com/group/Google-AJAX-Search-API">support forum</a>.</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-5903802290198334801?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/new-parameter-for-server-side-api-calls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Search in Your Country</title>
		<link>https://googledata.org/google-ajax-api/web-search-in-your-country-2/</link>
		<comments>https://googledata.org/google-ajax-api/web-search-in-your-country-2/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 18:23:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=3ee58b218e602523c7d420cba7b7d463</guid>
		<description><![CDATA[I am happy to announce the addition of the ability to scope your searches to a specific country in the AJAX Web Search API.  Now, if you have a lot of visitors in Madagascar, you can make sure that the search results displayed on your site are tailored...]]></description>
				<content:encoded><![CDATA[<p>I am happy to announce the addition of the ability to scope your searches to a specific country in the AJAX Web Search API.  Now, if you have a lot of visitors in Madagascar, you can make sure that the search results displayed on your site are tailored to them.  All it takes is a small change to your code.</p><p>There are three possible ways to implement, depending on how you're using the API:</p><ol><li> If you use the loader, you can simply load jsapi on the domain you're interested in (<a href="http://code.google.com/apis/ajax/playground/#set_google_locale_using_hostname">example</a>), such as:<br /><pre>&lt;script src="http://www.google.es/jsapi"&gt;&lt;/script&gt;</pre></li><br /><li>Alternately, you can set this with the web search object's .setRestriction method (<a href="http://code.google.com/apis/ajax/playground/#set_google_locale_restriction">example</a>):  <br /><pre>var ws = new google.search.WebSearch();<br />ws.setRestriction(google.search.Search.RESTRICT_EXTENDED_ARGS,<br />                  {'gl' : 'es'});</pre></li><li>Finally, if you're using the RESTful interface, all you have to do is append a "gl" URL parameter to your request:  <br /><pre><a href="http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=flowers&gl=fr">http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=flowers&amp;gl=fr</a></pre></li></ol><p>Most valid <a href="http://en.wikipedia.org/wiki/ISO_3166-1">country codes</a> will work, as long as Google has a home page  on that country's top level domain (e.g. <a href="http://www.google.es/">google.es</a>).  If you use an invalid or unsupported country code, you'll get an error message letting you know.</p><p>We're excited to bring you this addition to the API, and look forward to seeing the innovative ways in which you use this new feature to improve your users' experience.  Please drop us a line with your thoughts (or questions) on our <a href="http://groups.google.com/group/google-ajax-search-api">discussion group</a>.</p>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/web-search-in-your-country-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Web Search in Your Country</title>
		<link>https://googledata.org/google-ajax-api/web-search-in-your-country/</link>
		<comments>https://googledata.org/google-ajax-api/web-search-in-your-country/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 18:23:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I am happy to announce the addition of the ability to scope your searches to a specific country in the AJAX Web Search API.  Now, if you have a lot of visitors in Madagascar, you can make sure that the search results displayed on your site are tailored...]]></description>
				<content:encoded><![CDATA[<p>I am happy to announce the addition of the ability to scope your searches to a specific country in the AJAX Web Search API.  Now, if you have a lot of visitors in Madagascar, you can make sure that the search results displayed on your site are tailored to them.  All it takes is a small change to your code.</p><p>There are three possible ways to implement, depending on how you're using the API:</p><ol><li> If you use the loader, you can simply load jsapi on the domain you're interested in (<a href="http://code.google.com/apis/ajax/playground/#set_google_locale_using_hostname">example</a>), such as:<br /><pre>&lt;script src="http://www.google.es/jsapi"&gt;&lt;/script&gt;</pre></li><br /><li>Alternately, you can set this with the web search object's .setRestriction method (<a href="http://code.google.com/apis/ajax/playground/#set_google_locale_restriction">example</a>):  <br /><pre>var ws = new google.search.WebSearch();<br />ws.setRestriction(google.search.Search.RESTRICT_EXTENDED_ARGS,<br />                  {'gl' : 'es'});</pre></li><li>Finally, if you're using the RESTful interface, all you have to do is append a "gl" URL parameter to your request:  <br /><pre><a href="http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=flowers&gl=fr">http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=flowers&amp;gl=fr</a></pre></li></ol><p>Most valid <a href="http://en.wikipedia.org/wiki/ISO_3166-1">country codes</a> will work, as long as Google has a home page  on that country's top level domain (e.g. <a href="http://www.google.es/">google.es</a>).  If you use an invalid or unsupported country code, you'll get an error message letting you know.</p><p>We're excited to bring you this addition to the API, and look forward to seeing the innovative ways in which you use this new feature to improve your users' experience.  Please drop us a line with your thoughts (or questions) on our <a href="http://groups.google.com/group/google-ajax-search-api">discussion group</a>.</p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-4414084535137901999?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/web-search-in-your-country/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Chrome Frame Ajax Detection</title>
		<link>https://googledata.org/google-ajax-api/google-chrome-frame-ajax-detection-2/</link>
		<comments>https://googledata.org/google-ajax-api/google-chrome-frame-ajax-detection-2/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 16:42:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=7e941b796e51919e1bec20aac0c106b8</guid>
		<description><![CDATA[<p>In partnership with the Google Chrome Frame team, we are making available a library to allow your web application to detect the presence of <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a>. We on the Ajax team are excited about the possibilities of this add-on improving JavaScript performance and enabling some of the new features available in HTML5. If you have a web application which makes use of these new features, you can use this library to prompt the user to install Google Chrome Frame, or recognize when a user has just installed it. The library provides granular controls so that you can create the user experience which best suits your site.</p><p>As a short example, I've created the following <a href="http://ajax-apis.appspot.com/gcfcheck-demo">simple demo</a> which just detects whether Google Chrome Frame is installed or not with an alternate message if you are in a browser for which this plugin is not available.</p><p></p><div>Do you have Google Chrome Frame installed?<div>We're checking on that now.</div></div><br /><p>Ben Lisbakken has also added detection for Google Chrome Frame to the <a href="http://code.google.com/apis/ajax/playground/">Ajax Playground</a>. If you <a href="http://code.google.com/p/google-ajax-examples/source/browse/trunk/interactive_samples/index.html">view source</a> on the page you can see another example of a customized CFInstall.check implementation which is designed to fit the page.</p><p>For more details on the Google Chrome Frame Ajax API, see the <a href="http://code.google.com/chrome/chromeframe/developers_guide.html#CFInstall_check_Options">documentation</a> and for questions, please visit the <a href="http://groups.google.com/group/google-chrome-frame">discussion group</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>In partnership with the Google Chrome Frame team, we are making available a library to allow your web application to detect the presence of <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a>. We on the Ajax team are excited about the possibilities of this add-on improving JavaScript performance and enabling some of the new features available in HTML5. If you have a web application which makes use of these new features, you can use this library to prompt the user to install Google Chrome Frame, or recognize when a user has just installed it. The library provides granular controls so that you can create the user experience which best suits your site.</p><p>As a short example, I've created the following <a href="http://ajax-apis.appspot.com/gcfcheck-demo">simple demo</a> which just detects whether Google Chrome Frame is installed or not with an alternate message if you are in a browser for which this plugin is not available.</p><script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load('chrome-frame', '1');function notNeeded() {var answerDiv = document.getElementById('answer');answerDiv.innerHTML = 'Oh it looks like maybe you don\'t need Google Chrome Frame.';}; function onLoad() {var browserCheck = setTimeout("notNeeded();", 250); function missing() {var answerDiv = document.getElementById('answer'); answerDiv.innerHTML = 'Oh, sorry, it is not installed.'; if (browserCheck != null) {clearTimeout(browserCheck);};}; function found() {var answerDiv = document.getElementById('answer');answerDiv.innerHTML = 'Hooray! You have Google Chrome Frame installed.'; if (browserCheck != null) {clearTimeout(browserCheck);}};if (CFInstall.isAvailable()) {found();};CFInstall.check({'onmissing': missing,'preventPrompt': true});};google.setOnLoadCallback(onLoad);</script><p><div>Do you have Google Chrome Frame installed?<div id="answer">We're checking on that now.</div></div></p><br /><p>Ben Lisbakken has also added detection for Google Chrome Frame to the <a href="http://code.google.com/apis/ajax/playground/">Ajax Playground</a>. If you <a href="http://code.google.com/p/google-ajax-examples/source/browse/trunk/interactive_samples/index.html">view source</a> on the page you can see another example of a customized CFInstall.check implementation which is designed to fit the page.</p><p>For more details on the Google Chrome Frame Ajax API, see the <a href="http://code.google.com/chrome/chromeframe/developers_guide.html#CFInstall_check_Options">documentation</a> and for questions, please visit the <a href="http://groups.google.com/group/google-chrome-frame">discussion group</a>.</p>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/google-chrome-frame-ajax-detection-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Google Chrome Frame Ajax Detection</title>
		<link>https://googledata.org/google-ajax-api/google-chrome-frame-ajax-detection/</link>
		<comments>https://googledata.org/google-ajax-api/google-chrome-frame-ajax-detection/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 16:42:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<p>In partnership with the Google Chrome Frame team, we are making available a library to allow your web application to detect the presence of <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a>. We on the Ajax team are excited about the possibilities of this add-on improving JavaScript performance and enabling some of the new features available in HTML5. If you have a web application which makes use of these new features, you can use this library to prompt the user to install Google Chrome Frame, or recognize when a user has just installed it. The library provides granular controls so that you can create the user experience which best suits your site.</p><p>As a short example, I've created the following <a href="http://ajax-apis.appspot.com/gcfcheck-demo">simple demo</a> which just detects whether Google Chrome Frame is installed or not with an alternate message if you are in a browser for which this plugin is not available.</p><p><div>Do you have Google Chrome Frame installed?<div>We're checking on that now.</div></div></p><br /><p>Ben Lisbakken has also added detection for Google Chrome Frame to the <a href="http://code.google.com/apis/ajax/playground/">Ajax Playground</a>. If you <a href="http://code.google.com/p/google-ajax-examples/source/browse/trunk/interactive_samples/index.html">view source</a> on the page you can see another example of a customized CFInstall.check implementation which is designed to fit the page.</p><p>For more details on the Google Chrome Frame Ajax API, see the <a href="http://code.google.com/chrome/chromeframe/developers_guide.html#CFInstall_check_Options">documentation</a> and for questions, please visit the <a href="http://groups.google.com/group/google-chrome-frame">discussion group</a>.</p><div><img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/29072373-8524049149400584?l=googleajaxsearchapi.blogspot.com" alt="" /></div>]]></description>
				<content:encoded><![CDATA[<p>In partnership with the Google Chrome Frame team, we are making available a library to allow your web application to detect the presence of <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a>. We on the Ajax team are excited about the possibilities of this add-on improving JavaScript performance and enabling some of the new features available in HTML5. If you have a web application which makes use of these new features, you can use this library to prompt the user to install Google Chrome Frame, or recognize when a user has just installed it. The library provides granular controls so that you can create the user experience which best suits your site.</p><p>As a short example, I've created the following <a href="http://ajax-apis.appspot.com/gcfcheck-demo">simple demo</a> which just detects whether Google Chrome Frame is installed or not with an alternate message if you are in a browser for which this plugin is not available.</p><script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load('chrome-frame', '1');function notNeeded() {var answerDiv = document.getElementById('answer');answerDiv.innerHTML = 'Oh it looks like maybe you don\'t need Google Chrome Frame.';}; function onLoad() {var browserCheck = setTimeout("notNeeded();", 250); function missing() {var answerDiv = document.getElementById('answer'); answerDiv.innerHTML = 'Oh, sorry, it is not installed.'; if (browserCheck != null) {clearTimeout(browserCheck);};}; function found() {var answerDiv = document.getElementById('answer');answerDiv.innerHTML = 'Hooray! You have Google Chrome Frame installed.'; if (browserCheck != null) {clearTimeout(browserCheck);}};if (CFInstall.isAvailable()) {found();};CFInstall.check({'onmissing': missing,'preventPrompt': true});};google.setOnLoadCallback(onLoad);</script><p><div>Do you have Google Chrome Frame installed?<div id="answer">We're checking on that now.</div></div></p><br /><p>Ben Lisbakken has also added detection for Google Chrome Frame to the <a href="http://code.google.com/apis/ajax/playground/">Ajax Playground</a>. If you <a href="http://code.google.com/p/google-ajax-examples/source/browse/trunk/interactive_samples/index.html">view source</a> on the page you can see another example of a customized CFInstall.check implementation which is designed to fit the page.</p><p>For more details on the Google Chrome Frame Ajax API, see the <a href="http://code.google.com/chrome/chromeframe/developers_guide.html#CFInstall_check_Options">documentation</a> and for questions, please visit the <a href="http://groups.google.com/group/google-chrome-frame">discussion group</a>.</p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-8524049149400584?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/google-chrome-frame-ajax-detection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More Languages, More Keyboards</title>
		<link>https://googledata.org/google-ajax-api/more-languages-more-keyboards-2/</link>
		<comments>https://googledata.org/google-ajax-api/more-languages-more-keyboards-2/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 17:14:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=c77e1cb6eafc1e942568401230a26af3</guid>
		<description><![CDATA[The language APIs keep right on trucking, released recently are a handful of new translation languages, pairs, and keyboard layouts.We've added the ability to use machine translation to or from the following languages:AfrikaansBelarusianIcelandicIrishM...]]></description>
				<content:encoded><![CDATA[<p>The language APIs keep right on trucking, <a href="http://googleblog.blogspot.com/2009/08/google-translate-now-speaks-51.html">released recently</a> are a handful of new translation languages, pairs, and keyboard layouts.</p><p>We've added the ability to use machine translation to or from the following languages:</p><ul><li>Afrikaans</li><li>Belarusian</li><li>Icelandic</li><li>Irish</li><li>Macedonian</li><li>Malay</li><li>Persian</li><li>Swahili</li><li>Welsh</li><li>Yiddish</li></ul><p>With the addition of the above the total count for language pair combination comes to a mind boggling 2550 pairs. In addition, we find the above additions exciting because, for the first time, <a href="http://google-africa.blogspot.com/2009/09/google-translate-now-available-for.html">African languages</a> are available through the API and we now support all <a href="http://europa.eu/languages/en/home">23 Official European Union languages</a>.<p><p>A few months ago we <a href="http://googleajaxsearchapi.blogspot.com/2009/06/introducing-virtual-keyboard-api.html">announce our virtual keyboard API</a> and this month we've added nine new <a href="http://code.google.com/apis/ajaxlanguage/documentation/#KeyboardSupportedLayout">keyboard layouts</a>:</p><ul><li>Bulgarian</li><li>Czech</li><li>Greek</li><li>Hebrew</li><li>Hungarian - 101 layout</li><li>Slovak</li><li>Slovenian</li><li>Turkish - Q layout</li><li>Ukrainian - 101 layout</li></ul><p>Here's a simple example of using the <a href="http://savedbythegoog.appspot.com/?id=ag5zYXZlZGJ5dGhlZ29vZ3ISCxIJU2F2ZWRDb2RlGNKu1gEM">Slovak keyboard</a> layout.</p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_WhF8No7Ryt4/Sq_MX1GQZ0I/AAAAAAAAABM/IeuS-BMn-3s/s1600-h/SlovakKeyboard.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 295px;" src="http://1.bp.blogspot.com/_WhF8No7Ryt4/Sq_MX1GQZ0I/AAAAAAAAABM/IeuS-BMn-3s/s400/SlovakKeyboard.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5381744789493409602" /></a>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/more-languages-more-keyboards-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>More Languages, More Keyboards</title>
		<link>https://googledata.org/google-ajax-api/more-languages-more-keyboards/</link>
		<comments>https://googledata.org/google-ajax-api/more-languages-more-keyboards/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 17:14:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The language APIs keep right on trucking, released recently are a handful of new translation languages, pairs, and keyboard layouts.We've added the ability to use machine translation to or from the following languages:AfrikaansBelarusianIcelandicIrishM...]]></description>
				<content:encoded><![CDATA[<p>The language APIs keep right on trucking, <a href="http://googleblog.blogspot.com/2009/08/google-translate-now-speaks-51.html">released recently</a> are a handful of new translation languages, pairs, and keyboard layouts.</p><p>We've added the ability to use machine translation to or from the following languages:</p><ul><li>Afrikaans</li><li>Belarusian</li><li>Icelandic</li><li>Irish</li><li>Macedonian</li><li>Malay</li><li>Persian</li><li>Swahili</li><li>Welsh</li><li>Yiddish</li></ul><p>With the addition of the above the total count for language pair combination comes to a mind boggling 2550 pairs. In addition, we find the above additions exciting because, for the first time, <a href="http://google-africa.blogspot.com/2009/09/google-translate-now-available-for.html">African languages</a> are available through the API and we now support all <a href="http://europa.eu/languages/en/home">23 Official European Union languages</a>.<p><p>A few months ago we <a href="http://googleajaxsearchapi.blogspot.com/2009/06/introducing-virtual-keyboard-api.html">announce our virtual keyboard API</a> and this month we've added nine new <a href="http://code.google.com/apis/ajaxlanguage/documentation/#KeyboardSupportedLayout">keyboard layouts</a>:</p><ul><li>Bulgarian</li><li>Czech</li><li>Greek</li><li>Hebrew</li><li>Hungarian - 101 layout</li><li>Slovak</li><li>Slovenian</li><li>Turkish - Q layout</li><li>Ukrainian - 101 layout</li></ul><p>Here's a simple example of using the <a href="http://savedbythegoog.appspot.com/?id=ag5zYXZlZGJ5dGhlZ29vZ3ISCxIJU2F2ZWRDb2RlGNKu1gEM">Slovak keyboard</a> layout.</p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_WhF8No7Ryt4/Sq_MX1GQZ0I/AAAAAAAAABM/IeuS-BMn-3s/s1600-h/SlovakKeyboard.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 295px;" src="http://1.bp.blogspot.com/_WhF8No7Ryt4/Sq_MX1GQZ0I/AAAAAAAAABM/IeuS-BMn-3s/s400/SlovakKeyboard.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5381744789493409602" /></a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-9188132311247785678?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/more-languages-more-keyboards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Custom Search with Custom Style: Peanut Butter and Jelly</title>
		<link>https://googledata.org/google-ajax-api/custom-search-with-custom-style-peanut-butter-and-jelly-2/</link>
		<comments>https://googledata.org/google-ajax-api/custom-search-with-custom-style-peanut-butter-and-jelly-2/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 17:21:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[custom search engine]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=1d3481eec0d6776aea24bff14acc36e0</guid>
		<description><![CDATA[Creating a custom look and feel for your website can have significant benefits in everything from improving usability to setting a professional or playful tone for your website. In many cases, letting users search the content of your site and related s...]]></description>
				<content:encoded><![CDATA[<p>Creating a custom look and feel for your website can have significant benefits in everything from improving usability to setting a professional or playful tone for your website. In many cases, letting users search the content of your site and related sites gets them the information they need faster. After all, a speedy user experience is a happy user experience. Here are some examples of how Custom Search and custom styles are as easy (and delicious) as peanut butter and jelly.</p><p>We start with a <a href="http://www.google.com/webelements/customsearch/">Custom Search Element</a>, which uses the <a href="http://code.google.com/apis/ajaxsearch/documentation/customsearch/index.html">CustomSearchControl</a> to add a <a href="http://www.google.com/coop/cse/">Custom Search Engine</a> to my web page. If you've never used a Custom Search engine before, I think you'll find a lot to love: it uses Google's search technology to include a specific group of websites for indexing, and you can <a href="https://www.google.com/adsense/static/en_US/Afs.html">share in ad revenue</a>.</p><p>One of the many benefits of using the AJAX Search APIs to dynamically add search capabilities to your web pages is that you can also control the look and feel of the search input and results by using open web standards like cascading style sheets (CSS). When you combine this styling  with Custom Search, you can create a seamless search experience for your users.</p><p>You can begin by changing the search input box (dynamically added to your page by default) to use an input box that you've placed on the page wherever you like.</p><pre>// Set drawing options to use my text box<br />// as input instead of having the library create one.<br />var drawOptions = new google.search.DrawOptions();<br />drawOptions.setInput(<br />    document.getElementById('query_input'));<br /><br />// Draw the control in content div<br />customSearchControl.draw(<br />    'results', drawOptions);</pre><p>With the above changes we get a page that <a href="http://ajax-apis.appspot.com/cse-less-style">looks like this</a>:</p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_WhF8No7Ryt4/SoBbSTlOPjI/AAAAAAAAAAc/0KGEys_H9nA/s1600-h/ajax1.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 194px;" src="http://2.bp.blogspot.com/_WhF8No7Ryt4/SoBbSTlOPjI/AAAAAAAAAAc/0KGEys_H9nA/s400/ajax1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5368391125877800498" /></a><p>Now that we're able to use a Custom Search box (look ma, no button push required!) we can add CSS rules to change fonts, colors, and more in the search results.</p><p>For example, see: <a href="http://ajax-apis.appspot.com/cse-style">http://ajax-apis.appspot.com/cse-style</a> which has CSS rules that effect the styling of the search results and compare it to our <a href="http://ajax-apis.appspot.com/cse-less-style">first step</a> which uses the default styles.</p><p>Take a look at the CSS rules to get an idea for how this works, and how you can do custom styling to fit your own website.</p><p>We can change the font and add a border around each search result:</p><pre>#results .gsc-results {<br />  /* Sets font for titles, snippets, and URLs. */<br />  font-family: arial, helvetica, sans-serif;<br />}<br /><br />#results .gsc-result {<br />  position: relative;<br />  border: 1px solid #eee;<br />  border-left: 10px solid #eee;<br />  padding: 8px 8px 8px 20px;<br />  border-radius: 8px;<br />  -webkit-border-radius: 8px;<br />  -moz-border-radius: 8px;<br />}</pre><p>We can also change the style of a single result when the user moves the mouse cursor over it:</p><pre>#results .gsc-result:hover {<br />  border: 1px solid #888;<br />  border-left: 10px solid #888;<br />}</pre><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_WhF8No7Ryt4/SoBbb6aJxwI/AAAAAAAAAAk/MQVBCapHW6k/s1600-h/ajax2.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 225px;" src="http://3.bp.blogspot.com/_WhF8No7Ryt4/SoBbb6aJxwI/AAAAAAAAAAk/MQVBCapHW6k/s400/ajax2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5368391290919175938" /></a><p>These are just a couple of examples. Since the CSS styling is handled by the browser, you can use any supported CSS rules to select portions of the search results. For more information on the result HTML structure and the CSS classes you may want to select in your own customizations, see the documentation on <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_GResultCss">styling AJAX Search results</a>.</p>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/custom-search-with-custom-style-peanut-butter-and-jelly-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Custom Search with Custom Style: Peanut Butter and Jelly</title>
		<link>https://googledata.org/google-ajax-api/custom-search-with-custom-style-peanut-butter-and-jelly/</link>
		<comments>https://googledata.org/google-ajax-api/custom-search-with-custom-style-peanut-butter-and-jelly/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 17:21:00 +0000</pubDate>
		<dc:creator><![CDATA[Jeff Scudder]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[custom search engine]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Creating a custom look and feel for your website can have significant benefits in everything from improving usability to setting a professional or playful tone for your website. In many cases, letting users search the content of your site and related s...]]></description>
				<content:encoded><![CDATA[<p>Creating a custom look and feel for your website can have significant benefits in everything from improving usability to setting a professional or playful tone for your website. In many cases, letting users search the content of your site and related sites gets them the information they need faster. After all, a speedy user experience is a happy user experience. Here are some examples of how Custom Search and custom styles are as easy (and delicious) as peanut butter and jelly.</p><p>We start with a <a href="http://www.google.com/webelements/customsearch/">Custom Search Element</a>, which uses the <a href="http://code.google.com/apis/ajaxsearch/documentation/customsearch/index.html">CustomSearchControl</a> to add a <a href="http://www.google.com/coop/cse/">Custom Search Engine</a> to my web page. If you've never used a Custom Search engine before, I think you'll find a lot to love: it uses Google's search technology to include a specific group of websites for indexing, and you can <a href="https://www.google.com/adsense/static/en_US/Afs.html">share in ad revenue</a>.</p><p>One of the many benefits of using the AJAX Search APIs to dynamically add search capabilities to your web pages is that you can also control the look and feel of the search input and results by using open web standards like cascading style sheets (CSS). When you combine this styling  with Custom Search, you can create a seamless search experience for your users.</p><p>You can begin by changing the search input box (dynamically added to your page by default) to use an input box that you've placed on the page wherever you like.</p><pre>// Set drawing options to use my text box<br />// as input instead of having the library create one.<br />var drawOptions = new google.search.DrawOptions();<br />drawOptions.setInput(<br />    document.getElementById('query_input'));<br /><br />// Draw the control in content div<br />customSearchControl.draw(<br />    'results', drawOptions);</pre><p>With the above changes we get a page that <a href="http://ajax-apis.appspot.com/cse-less-style">looks like this</a>:</p><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_WhF8No7Ryt4/SoBbSTlOPjI/AAAAAAAAAAc/0KGEys_H9nA/s1600-h/ajax1.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 194px;" src="http://2.bp.blogspot.com/_WhF8No7Ryt4/SoBbSTlOPjI/AAAAAAAAAAc/0KGEys_H9nA/s400/ajax1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5368391125877800498" /></a><p>Now that we're able to use a Custom Search box (look ma, no button push required!) we can add CSS rules to change fonts, colors, and more in the search results.</p><p>For example, see: <a href="http://ajax-apis.appspot.com/cse-style">http://ajax-apis.appspot.com/cse-style</a> which has CSS rules that effect the styling of the search results and compare it to our <a href="http://ajax-apis.appspot.com/cse-less-style">first step</a> which uses the default styles.</p><p>Take a look at the CSS rules to get an idea for how this works, and how you can do custom styling to fit your own website.</p><p>We can change the font and add a border around each search result:</p><pre>#results .gsc-results {<br />  /* Sets font for titles, snippets, and URLs. */<br />  font-family: arial, helvetica, sans-serif;<br />}<br /><br />#results .gsc-result {<br />  position: relative;<br />  border: 1px solid #eee;<br />  border-left: 10px solid #eee;<br />  padding: 8px 8px 8px 20px;<br />  border-radius: 8px;<br />  -webkit-border-radius: 8px;<br />  -moz-border-radius: 8px;<br />}</pre><p>We can also change the style of a single result when the user moves the mouse cursor over it:</p><pre>#results .gsc-result:hover {<br />  border: 1px solid #888;<br />  border-left: 10px solid #888;<br />}</pre><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_WhF8No7Ryt4/SoBbb6aJxwI/AAAAAAAAAAk/MQVBCapHW6k/s1600-h/ajax2.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 225px;" src="http://3.bp.blogspot.com/_WhF8No7Ryt4/SoBbb6aJxwI/AAAAAAAAAAk/MQVBCapHW6k/s400/ajax2.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5368391290919175938" /></a><p>These are just a couple of examples. Since the CSS styling is handled by the browser, you can use any supported CSS rules to select portions of the search results. For more information on the result HTML structure and the CSS classes you may want to select in your own customizations, see the documentation on <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_GResultCss">styling AJAX Search results</a>.</p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-7796710236096811046?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/custom-search-with-custom-style-peanut-butter-and-jelly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Behind the scenes with two AJAX API Developers</title>
		<link>https://googledata.org/google-ajax-api/behind-the-scenes-with-two-ajax-api-developers-2/</link>
		<comments>https://googledata.org/google-ajax-api/behind-the-scenes-with-two-ajax-api-developers-2/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 00:59:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=9fd41c7e5f34887030668f0ad98c9490</guid>
		<description><![CDATA[We enjoy featuring real-world applications that show how versatile the AJAX APIs can be. Below we're highlighting two very different apps and the developers who built them:AroundMeAroundMe is an iPhone application where the AJAX APIs are central to the...]]></description>
				<content:encoded><![CDATA[We enjoy featuring real-world applications that show how versatile the AJAX APIs can be. Below we're highlighting two very different apps and the developers who built them:<br /><br /><span style="font-weight: bold;">AroundMe</span><br />AroundMe is an iPhone application where the AJAX APIs are central to the user experience. Specifically, the app utilizes the Local Search API to enable users to find information about their surroundings. In the videos below, Marco Pifferi (the developer behind AroundMe) gives a demo of his app, his thoughts on using the AJAX APIs, and tips for integrating them in mobile apps.<br /><br /><object width="480" height="385"><param name="movie" value="http://www.youtube.com/p/199B096EAD8832EC&amp;hl=en&amp;fs=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/p/199B096EAD8832EC&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><br /><br /><span style="font-weight: bold;">Mibbit</span><br />Mibbit is a web-based chat application that uses the AJAX APIs to enhance the chat experience. The language APIs help users to translate their messages into a number of different languages. Mibbit also uses the Maps API and YouTube API to display embedded maps or YouTube videos if a user includes a Maps or YouTube URL in their chat. Jimmy Moore, creator of Mibbit, walks through Mibbit in his video below.<br /><br /><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/nlpsQYKLLv0&amp;hl=en&amp;fs=1&amp;"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/nlpsQYKLLv0&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object><br /><br />Do you have a great app that uses the AJAX APIs? <a href="http://code.google.com/videos/submit.html">Submit a video</a> about it and we may feature it on this blog.  Questions?  Stop by our <a href="http://groups.google.com/group/Google-AJAX-Search-API">support forum</a> or <a href="http://www.mibbit.com/?server=irc.freenode.net&amp;channel=%23googleajaxapis">IRC channel</a>.]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/behind-the-scenes-with-two-ajax-api-developers-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Behind the scenes with two AJAX API Developers</title>
		<link>https://googledata.org/google-ajax-api/behind-the-scenes-with-two-ajax-api-developers/</link>
		<comments>https://googledata.org/google-ajax-api/behind-the-scenes-with-two-ajax-api-developers/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 00:59:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[We enjoy featuring real-world applications that show how versatile the AJAX APIs can be. Below we're highlighting two very different apps and the developers who built them:AroundMeAroundMe is an iPhone application where the AJAX APIs are central to the...]]></description>
				<content:encoded><![CDATA[We enjoy featuring real-world applications that show how versatile the AJAX APIs can be. Below we're highlighting two very different apps and the developers who built them:<br /><br /><span style="font-weight: bold;">AroundMe</span><br />AroundMe is an iPhone application where the AJAX APIs are central to the user experience. Specifically, the app utilizes the Local Search API to enable users to find information about their surroundings. In the videos below, Marco Pifferi (the developer behind AroundMe) gives a demo of his app, his thoughts on using the AJAX APIs, and tips for integrating them in mobile apps.<br /><br /><object width="480" height="385"><param name="movie" value="http://www.youtube.com/p/199B096EAD8832EC&amp;hl=en&amp;fs=1"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/p/199B096EAD8832EC&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object><br /><br /><span style="font-weight: bold;">Mibbit</span><br />Mibbit is a web-based chat application that uses the AJAX APIs to enhance the chat experience. The language APIs help users to translate their messages into a number of different languages. Mibbit also uses the Maps API and YouTube API to display embedded maps or YouTube videos if a user includes a Maps or YouTube URL in their chat. Jimmy Moore, creator of Mibbit, walks through Mibbit in his video below.<br /><br /><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/nlpsQYKLLv0&amp;hl=en&amp;fs=1&amp;"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><embed src="http://www.youtube.com/v/nlpsQYKLLv0&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object><br /><br />Do you have a great app that uses the AJAX APIs? <a href="http://code.google.com/videos/submit.html">Submit a video</a> about it and we may feature it on this blog.  Questions?  Stop by our <a href="http://groups.google.com/group/Google-AJAX-Search-API">support forum</a> or <a href="http://www.mibbit.com/?server=irc.freenode.net&amp;channel=%23googleajaxapis">IRC channel</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-1927544842322758476?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/behind-the-scenes-with-two-ajax-api-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing the Virtual Keyboard API</title>
		<link>https://googledata.org/google-ajax-api/introducing-the-virtual-keyboard-api-2/</link>
		<comments>https://googledata.org/google-ajax-api/introducing-the-virtual-keyboard-api-2/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 19:07:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=1f1c8dfb30d1de1132d103d93899235a</guid>
		<description><![CDATA[<p> It is often difficult for Internet users to input text in many non-Latin script-based languages for a variety of reasons.  The correct keyboard layout may not be installed on the computer they're using - sometimes such a layout may not be well developed or widely available.  This poses a challenging problem for web developers because there is no way they can ensure that their users have access to this very basic input technology.  Our <a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration" title="Transliteration API">Transliteration API</a> can help, but requires that the user know multiple languages.<br /><br />Right on the heels of introducing support for <a title="translating Persian (Farsi)" href="http://googleblog.blogspot.com/2009/06/google-translates-persian.html">translating Persian (Farsi)</a>,   we've added a new <a href="http://code.google.com/apis/ajaxlanguage/documentation/#Keyboard" title="Virtual Keyboard API">Virtual Keyboard API</a> into the <a href="http://code.google.com/apis/ajaxlanguage/" title="Google AJAX Language API">Google AJAX Language API</a> to further assist with text input.  With this, developers can help their users input text without relying on the right software being installed on the computer they happen to be using.<br /><br />It couldn't be easier to get this on your page.  Simply load the right package:</p><pre>google.load("elements", "1", {<br /> packages: "keyboard"<br />});</pre><br />Then create a keyboard, specifying the keyboard layout and text field to bind to:<pre>var kbd = new google.elements.keyboard.Keyboard(<br /> [google.elements.keyboard.LayoutCode.Arabic],<br /> ['myTextArea']);</pre><br />And here's what it looks like:<div>   <img src="https://docs.google.com/a/google.com/File?id=chj3qbn7_3ccmdkrkf_b"></div><p>This gives you the control to provide a better user experience, even for multilingual websites.  By creating multiple keyboards with different layouts, each text field can be bound to the appropriate keyboard - and the user will see only the keyboard attached to whichever text field has the focus.<br /><br />But don't take my word for it - check out a <a href="http://code.google.com/apis/ajax/playground/#virtual_keyboard" title="sample">sample</a> for yourself.  Notice that in addition to allowing users to click on the virtual keyboard, it also temporarily transforms the key assignments on their physical keyboard, allowing rapid typing for those users accustomed to a given layout.<br /><br />With this initial release, we are launching 5 language layouts.  They are: </p> <div> </div> <div>   <div>     <ul><li>         Arabic (<span><span>&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;)</span></span>       </li><li>         Hindi (<span><span>&#2361;&#2367;&#2344;&#2381;&#2342;&#2368;)</span></span>       </li><li>         Polish (<span><span>Polski)</span></span>       </li><li>         Russian (<span><span>&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;)</span></span>       </li><li>         Thai (<span><span>&#3652;&#3607;&#3618;)</span></span>       </li></ul></div> </div> <p><br />We plan to roll out support for more keyboard layouts in the future.  But in the meantime, read through the <a href="http://code.google.com/apis/ajaxlanguage/documentation/referenceKeyboard.html" title="class reference">class reference</a> and see the rest of the <a href="http://code.google.com/apis/ajax/playground/#virtual_keyboard" title="Code Playground samples">Code Playground samples</a>.<br /><br />After you've had time to experiment, let us know what you think and which other layouts you'd like to see.  Feedback is always welcome in our <a href="http://groups.google.com/group/Google-AJAX-Search-API" title="support forum">support forum</a> and <a href="http://www.mibbit.com/?server=irc.freenode.net&#38;channel=%23googleajaxapis" title="IRC channel">IRC channel</a>. </p>    <p> </p>]]></description>
				<content:encoded><![CDATA[<p> It is often difficult for Internet users to input text in many non-Latin script-based languages for a variety of reasons.  The correct keyboard layout may not be installed on the computer they're using - sometimes such a layout may not be well developed or widely available.  This poses a challenging problem for web developers because there is no way they can ensure that their users have access to this very basic input technology.  Our <a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration" id="fp3y" title="Transliteration API">Transliteration API</a> can help, but requires that the user know multiple languages.<br /><br />Right on the heels of introducing support for <a title="translating Persian (Farsi)" href="http://googleblog.blogspot.com/2009/06/google-translates-persian.html" id="rpfm">translating Persian (Farsi)</a>,   we've added a new <a href="http://code.google.com/apis/ajaxlanguage/documentation/#Keyboard" id="h8oa" title="Virtual Keyboard API">Virtual Keyboard API</a> into the <a href="http://code.google.com/apis/ajaxlanguage/" id="okla" title="Google AJAX Language API">Google AJAX Language API</a> to further assist with text input.  With this, developers can help their users input text without relying on the right software being installed on the computer they happen to be using.<br /><br />It couldn't be easier to get this on your page.  Simply load the right package:<pre class="code">google.load("elements", "1", {<br /> packages: "keyboard"<br />});</pre><br />Then create a keyboard, specifying the keyboard layout and text field to bind to:<pre class="code">var kbd = new google.elements.keyboard.Keyboard(<br /> [google.elements.keyboard.LayoutCode.Arabic],<br /> ['myTextArea']);</pre><br />And here's what it looks like:</p><div id="mb4b" style="text-align: left;">   <img src="https://docs.google.com/a/google.com/File?id=chj3qbn7_3ccmdkrkf_b" style="width: 402px; height: 182px;" /> </div><p>This gives you the control to provide a better user experience, even for multilingual websites.  By creating multiple keyboards with different layouts, each text field can be bound to the appropriate keyboard - and the user will see only the keyboard attached to whichever text field has the focus.<br /><br />But don't take my word for it - check out a <a href="http://code.google.com/apis/ajax/playground/#virtual_keyboard" id="pydr" title="sample">sample</a> for yourself.  Notice that in addition to allowing users to click on the virtual keyboard, it also temporarily transforms the key assignments on their physical keyboard, allowing rapid typing for those users accustomed to a given layout.<br /><br />With this initial release, we are launching 5 language layouts.  They are: </p> <div> </div> <div>   <div>     <ul><li>         Arabic (<span style="font-family:-webkit-monospace;"><span style="font-size:100%;">العربية)</span></span>       </li><li>         Hindi (<span style="font-family:Arial;"><span style="font-size:100%;">हिन्दी)</span></span>       </li><li>         Polish (<span style="font-family:-webkit-monospace;"><span style="font-size:100%;">Polski)</span></span>       </li><li>         Russian (<span style="font-family:-webkit-monospace;"><span style="font-size:100%;">Русский)</span></span>       </li><li>         Thai (<span style="font-family:-webkit-monospace;"><span style="font-size:100%;">ไทย)</span></span>       </li></ul>   </div> </div> <p><br />We plan to roll out support for more keyboard layouts in the future.  But in the meantime, read through the <a href="http://code.google.com/apis/ajaxlanguage/documentation/referenceKeyboard.html" id="j4cg" title="class reference">class reference</a> and see the rest of the <a href="http://code.google.com/apis/ajax/playground/#virtual_keyboard" id="gj1i" title="Code Playground samples">Code Playground samples</a>.<br /><br />After you've had time to experiment, let us know what you think and which other layouts you'd like to see.  Feedback is always welcome in our <a href="http://groups.google.com/group/Google-AJAX-Search-API" id="d8z9" title="support forum">support forum</a> and <a href="http://www.mibbit.com/?server=irc.freenode.net&amp;channel=%23googleajaxapis" id="m0_:" title="IRC channel">IRC channel</a>. </p>    <p> </p>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/introducing-the-virtual-keyboard-api-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Ext-core ready to go</title>
		<link>https://googledata.org/google-ajax-api/ext-core-ready-to-go-2/</link>
		<comments>https://googledata.org/google-ajax-api/ext-core-ready-to-go-2/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 16:35:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=36f3c32987ec24a5314093407d177fd6</guid>
		<description><![CDATA[Recently, the guys over at Ext JS released ext-core under an MIT license, which was a big win for open source!  Today, they released a stable (non-beta) version of this library and we are proud to be part of that announcement by hosting the new version...]]></description>
				<content:encoded><![CDATA[Recently, the guys over at Ext JS released ext-core under an MIT license, which was a big win for open source!  Today, they released a stable (non-beta) version of this library and we are proud to be part of that announcement by hosting the new version.  You can now pull ext-core from Google servers:<pre class="code">// directly access it<br />http://ajax.googleapis.com/ajax/libs/ext-core/3.0.0/ext-core.js<br />// alias the newest 3.0.x version<br />http://ajax.googleapis.com/ajax/libs/ext-core/3.0/ext-core.js<br />// alias the newest 3.x.x version<br />http://ajax.googleapis.com/ajax/libs/ext-core/3/ext-core.js<br />// directly access the uncompressed code<br />http://ajax.googleapis.com/ajax/libs/ext-core/3.0.0/ext-core-debug.js<br /></pre>You can also use it from the loader:<pre class="code">google.load('ext-core', '3.0');<br />google.load('ext-core', '3', {uncompressed : true});<br /></pre>Thanks to all for the requests to add ext-core to our Libraries API, and big thanks to Ext JS for providing their library so openly!  For more information, head over to their <a href="http://extjs.com/blog/2009/06/10/building-a-rating-widget-with-ext-core-30-final-and-google-cdn/">blog post</a>.]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/ext-core-ready-to-go-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Ext-core ready to go</title>
		<link>https://googledata.org/google-ajax-api/ext-core-ready-to-go/</link>
		<comments>https://googledata.org/google-ajax-api/ext-core-ready-to-go/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 16:35:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Recently, the guys over at Ext JS released ext-core under an MIT license, which was a big win for open source!  Today, they released a stable (non-beta) version of this library and we are proud to be part of that announcement by hosting the new version...]]></description>
				<content:encoded><![CDATA[Recently, the guys over at Ext JS released ext-core under an MIT license, which was a big win for open source!  Today, they released a stable (non-beta) version of this library and we are proud to be part of that announcement by hosting the new version.  You can now pull ext-core from Google servers:<pre class="code">// directly access it<br />http://ajax.googleapis.com/ajax/libs/ext-core/3.0.0/ext-core.js<br />// alias the newest 3.0.x version<br />http://ajax.googleapis.com/ajax/libs/ext-core/3.0/ext-core.js<br />// alias the newest 3.x.x version<br />http://ajax.googleapis.com/ajax/libs/ext-core/3/ext-core.js<br />// directly access the uncompressed code<br />http://ajax.googleapis.com/ajax/libs/ext-core/3.0.0/ext-core-debug.js<br /></pre>You can also use it from the loader:<pre class="code">google.load('ext-core', '3.0');<br />google.load('ext-core', '3', {uncompressed : true});<br /></pre>Thanks to all for the requests to add ext-core to our Libraries API, and big thanks to Ext JS for providing their library so openly!  For more information, head over to their <a href="http://extjs.com/blog/2009/06/10/building-a-rating-widget-with-ext-core-30-final-and-google-cdn/">blog post</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-5044731694533724177?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/ext-core-ready-to-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arabic Transliteration added to the AJAX Language API</title>
		<link>https://googledata.org/google-ajax-api/arabic-transliteration-added-to-the-ajax-language-api/</link>
		<comments>https://googledata.org/google-ajax-api/arabic-transliteration-added-to-the-ajax-language-api/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 07:23:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Last year we launched the Transliteration API as an addition to the AJAX Language API.  This gave users the ability to transliterate (the process of phonetically converting words from one script into another) text into several Indic languages using a n...]]></description>
				<content:encoded><![CDATA[Last year we launched the Transliteration API as an addition to the AJAX Language API.  This gave users the ability to transliterate (the process of phonetically converting words from one script into another) text into several Indic languages using a normal English keyboard.<br /><br />We're happy to announce that we've now added Arabic to the list of supported languages.  Now, you can allow your users to easily input Arabic-language text into any text field or text area on your web page without switching to a non-Latin alphabet keyboard - just like on the <a href="http://www.google.com/ta3reeb/" id="xfpj" title="our Labs page">Labs page</a>.  For example, if the user types '<i>mar7aban bekom'</i>, the API will transliterate each word, with the result '<span style="font-size:100%;"><span style="font-family:Tahoma;">مرحبا بكم</span></span>' (Arabic for <i>welcome</i>). The API will even automatically adjust the direction of the text area to support this right-to-left language.<br /><br />Take a look at the <a title="documentation" href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration" id="lua-">documentation</a> and then head over to the <a title="Code Playground" href="http://code.google.com/apis/ajax/playground/#transliterate_arabic" id="h0gs">Code Playground</a> to give it a try for yourself.  If you have any questions, stop by the <a title="Google AJAX API developer forum" href="http://groups.google.com/group/Google-AJAX-Search-API" id="a-.w">Google AJAX API developer forum</a> or <a title="IRC channel" href="http://www.mibbit.com/?server=irc.freenode.net&amp;channel=%23googleajaxapis" id="npsz">IRC channel</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-474641750922618239?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/arabic-transliteration-added-to-the-ajax-language-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arabic Transliteration added to the AJAX Language API</title>
		<link>https://googledata.org/google-ajax-api/arabic-transliteration-added-to-the-ajax-language-api-2/</link>
		<comments>https://googledata.org/google-ajax-api/arabic-transliteration-added-to-the-ajax-language-api-2/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 07:23:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">https://googledata.org/?guid=9907e53f964f804a6add5d7387a68325</guid>
		<description><![CDATA[Last year we launched the Transliteration API as an addition to the AJAX Language API.  This gave users the ability to transliterate (the process of phonetically converting words from one script into another) text into several Indic languages using a normal English keyboard.<br /><br />We're happy to announce that we've now added Arabic to the list of supported languages.  Now, you can allow your users to easily input Arabic-language text into any text field or text area on your web page without switching to a non-Latin alphabet keyboard - just like on the <a href="http://www.google.com/ta3reeb/" title="our Labs page">Labs page</a>.  For example, if the user types '<i>mar7aban bekom'</i>, the API will transliterate each word, with the result '<span><span>&#1605;&#1585;&#1581;&#1576;&#1575; &#1576;&#1603;&#1605;</span></span>' (Arabic for <i>welcome</i>). The API will even automatically adjust the direction of the text area to support this right-to-left language.<br /><br />Take a look at the <a title="documentation" href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration">documentation</a> and then head over to the <a title="Code Playground" href="http://code.google.com/apis/ajax/playground/#transliterate_arabic">Code Playground</a> to give it a try for yourself.  If you have any questions, stop by the <a title="Google AJAX API developer forum" href="http://groups.google.com/group/Google-AJAX-Search-API">Google AJAX API developer forum</a> or <a title="IRC channel" href="http://www.mibbit.com/?server=irc.freenode.net&#38;channel=%23googleajaxapis">IRC channel</a>.]]></description>
				<content:encoded><![CDATA[Last year we launched the Transliteration API as an addition to the AJAX Language API.  This gave users the ability to transliterate (the process of phonetically converting words from one script into another) text into several Indic languages using a normal English keyboard.<br /><br />We're happy to announce that we've now added Arabic to the list of supported languages.  Now, you can allow your users to easily input Arabic-language text into any text field or text area on your web page without switching to a non-Latin alphabet keyboard - just like on the <a href="http://www.google.com/ta3reeb/" id="xfpj" title="our Labs page">Labs page</a>.  For example, if the user types '<i>mar7aban bekom'</i>, the API will transliterate each word, with the result '<span style="font-size:100%;"><span style="font-family:Tahoma;">مرحبا بكم</span></span>' (Arabic for <i>welcome</i>). The API will even automatically adjust the direction of the text area to support this right-to-left language.<br /><br />Take a look at the <a title="documentation" href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration" id="lua-">documentation</a> and then head over to the <a title="Code Playground" href="http://code.google.com/apis/ajax/playground/#transliterate_arabic" id="h0gs">Code Playground</a> to give it a try for yourself.  If you have any questions, stop by the <a title="Google AJAX API developer forum" href="http://groups.google.com/group/Google-AJAX-Search-API" id="a-.w">Google AJAX API developer forum</a> or <a title="IRC channel" href="http://www.mibbit.com/?server=irc.freenode.net&amp;channel=%23googleajaxapis" id="npsz">IRC channel</a>.]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/arabic-transliteration-added-to-the-ajax-language-api-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>AJAX Custom Search Gadget on Blogger</title>
		<link>https://googledata.org/google-ajax-api/ajax-custom-search-gadget-on-blogger/</link>
		<comments>https://googledata.org/google-ajax-api/ajax-custom-search-gadget-on-blogger/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 17:06:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The AJAX Search gadget for Blogger is now available to all users on Blogger.com. This gadget accesses a Custom Search Engine (CSE) that is created automatically for your blog and provides search results inline, with the look and feel of your blog. You ...]]></description>
				<content:encoded><![CDATA[The AJAX Search gadget for Blogger is now available to all users on Blogger.com. This gadget accesses a <a href="http://www.google.com/cse">Custom Search Engine</a> (CSE) that is created automatically for your blog and provides search results inline, with the look and feel of your blog. You can get all this with just a few clicks from the Blogger control panel.<br /><br />One cool feature of the gadget is the 'Linked From Here' feature that searches the pages you've linked to from your blog posts. As you create new posts, we automatically update your search engine to include all the linked pages, as well as all the pages linked from your link lists and blog lists.  Check out the <a href="http://buzz.blogger.com/2009/06/search-box-gadget-available-to-all.html">gadget</a> — the search results match the look and feel of your blog and show up inline, as shown in the screenshot below. You can click a button to dismiss the results when you are done, and go back to reading the current post.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_qU0w4wiK3GA/ShWMhtBLTxI/AAAAAAAAABc/kX6vTXaXyHo/s1600-h/blogger.gif"><img style="cursor:pointer; cursor:hand;width: 400px; height: 298px;" src="http://1.bp.blogspot.com/_qU0w4wiK3GA/ShWMhtBLTxI/AAAAAAAAABc/kX6vTXaXyHo/s400/blogger.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5338327443965693714" /></a><br /><br />If you are not using Blogger, you can still create something similar for your website using the <a href="http://www.google.com/webelements/customsearch/">Custom Search element</a> (read more about this new element at the <a href="http://googlecustomsearch.blogspot.com/2009/05/introducing-custom-search-web-element.html">Custom Search blog</a>).<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-3082419461139249241?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/ajax-custom-search-gadget-on-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Easy as 1-2-3 &#8211; introducing Google Web Elements</title>
		<link>https://googledata.org/google-ajax-api/easy-as-1-2-3-introducing-google-web-elements/</link>
		<comments>https://googledata.org/google-ajax-api/easy-as-1-2-3-introducing-google-web-elements/#comments</comments>
		<pubDate>Wed, 27 May 2009 18:54:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Today at Google I/O, we launched Google Web Elements with one goal in mind - making life easier for developers. Google Web Elements make it incredibly simple to add Google products to your site, app or blog. It's so easy, you'll feel like you're cheati...]]></description>
				<content:encoded><![CDATA[<span class="Apple-style-span" style="font-family: Verdana; font-size: 13px;"></span><br /><div style="margin-bottom: 0px; margin-top: 0px;">Today at Google I/O, we launched <a href="http://www.google.com/webelements/" id="u7wm" style="color: #551a8b;" title="Google Web Elements">Google Web Elements</a> with one goal in mind - making life easier for developers. Google Web Elements make it incredibly simple to add Google products to your site, app or blog. It's so easy, you'll feel like you're cheating.  Inspired by the convenience of embeddable YouTube videos, Google Web Elements allow you to add products like Google Custom Search, Google Docs, and Google Maps to your website with the simplicity of copy and paste.  For instance, here's the new Google News element:<br /><br /><center><iframe allowtransparency="true" border="0" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://www.google.com/uds/modules/elements/newsshow/iframe.html?rsz=large&amp;format=300x250&amp;element=true" style="border: 0pt none; height: 250px; margin: 0pt; width: 300px;"></iframe></center><br /><br />Each element is designed to help you get started quickly without spending time on the deep technical details.  Yet behind it all, Google Web Elements are powered by Google's scalable and flexible <a href="http://code.google.com/" id="cph1" style="color: #551a8b;" title="developer APIs">developer APIs</a>, offering a world of customization just beneath the surface, keeping up with your site as it grows.<br /></div><div style="margin-bottom: 0px; margin-top: 0px;"><br /></div><div style="margin-bottom: 0px; margin-top: 0px;">For more details, check out the <a href="http://google-code-updates.blogspot.com/2009/05/introduce-google-web-elements.html">Google Code</a> and <a href="http://googlecustomsearch.blogspot.com/2009/05/introducing-custom-search-web-element.html">Custom Search</a> blogs.  Google Web Elements are already available for eight of our most popular products, with more soon to follow.  To get started, visit the <a href="http://www.google.com/webelements/" id="tvpk" style="color: #551a8b;" title="Google Web Elements">Google Web Elements</a> homepage and please be sure to <a href="http://www.google.com/support/forum/p/webelements" id="x6_3" title="let us know">let us know</a> what you'd like to see us work on next.</insert></div><div style="margin-bottom: 0px; margin-top: 0px;"><br /></div><div style="margin-bottom: 0px; margin-top: 0px;">Want to know what else is going on at Google I/O?  Follow us on twitter <a href="http://twitter.com/googleio" id="jv3j" title="@googleio">@googleio</a> and <a href="http://googleio.twazzup.com/" title="twazzup">twazzup</a>.</div><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-2472555723556331421?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/easy-as-1-2-3-introducing-google-web-elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making content creation easy with the Google AJAX APIs &#8211; Guest post</title>
		<link>https://googledata.org/google-ajax-api/making-content-creation-easy-with-the-google-ajax-apis-guest-post/</link>
		<comments>https://googledata.org/google-ajax-api/making-content-creation-easy-with-the-google-ajax-apis-guest-post/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 16:06:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[We started nextstop.com with the idea that we could make it significantly easier and more fun to discover new and interesting things to do anywhere in the world, based on recommendations from people who know a place well.  Whether it was a neat museum,...]]></description>
				<content:encoded><![CDATA[We started <a href="http://www.nextstop.com/">nextstop.com</a> with the idea that we could make it significantly easier and more fun to discover new and interesting things to do anywhere in the world, based on recommendations from people who know a place well.  Whether it was a neat museum, a hidden local restaurant, or a great place to go shopping we wanted to make it super easy and fun for people to share recommendations for their favorite places, wherever they might live.<br /><br />The trick of course was in how to do this.  It was important for us to combine ease of making a recommendation -- our goal was that it should be as simple as entering the name of a place, and a few sentences about why you liked it -- with rich information about a place so it was really useful to others -- photos, contact information, maps, etc.  The solution, not surprisingly since I'm writing here, was to use a number of Google's APIs to gather related information about the recommendation and make it easy for our members to include it in their recommendation.<br /><br />You can best see how this works by going through our <a href="http://www.nextstop.com/card/new/">recommendation flow</a>, or watching the video below.<br /><br /><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/7kGRUIh8Ek8&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7kGRUIh8Ek8&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><br /><br />Let me walk you through how this is working under the hood:  <br /><br />1) When the page loads, the first thing we do is use the <a href="http://code.google.com/apis/ajax/documentation/#GoogleLoad">Google loader</a> to load the JQuery and JQuery UI libraries, as well as Google Maps.  As part of this, we also grab the user's current location using google.loader.ClientLocation and store the lat/lng if available to use later.<br /><br />2) In step 1, we ask the user for what's being recommended.  We use this string to do a Google local search for business listings and KML results that match, using the user's current location to bound the local search by setting the sll and sspn parameters.  Between local business listings and KML results, we can offer incredible global coverage of everything from restaurants to tourist attractions to hole-in-the-wall bars and clubs.  We're using the JSON version of the local search API, which we call from our servers using Python's urlopen() so that we can supplement the results with our own database of results.<br /><br />3) In step 2 we do an image search for related images using Google's image search API.  While we let users change the search terms to find just the right picture, often our default image search (which combines the name of the place and a city name) returns great results.  There are photos of almost everything, so you can even recommend a particular dish at a <a href="http://www.nextstop.com/guide/Ka2iYVinO4w/noodles-in-taipei/">restaurant in Taipei</a> and have the photos to go along with it.<br /><br />4) In step 3, we ask for a few sentences about why that place or activity really stands out to them.  After the recommendation has been submitted, we use the <a href="http://code.google.com/apis/ajaxlanguage/">Google Language APIs</a> to detect the language of the recommendation, which we can later use to filter content by your language, and we hope to someday integrate the ability to translate recommendations into your language of choice.<br /><br />Its a very simple and fast process for the user making the recommendation, but the result is a recommendation with address, phone number, map, and photo that is really useful to another user looking to discover something new.<br /><br />We've built our whole product around the Google APIs, and feel like we're just scratching the surface of what's possible.  We're planning to let users add other information (like related websites, searches, news, etc.) using Google's APIs as well.<br /><br />We'll be at <a href="http://code.google.com/io">Google I/O</a> on May 27-28 talking about what we've done so far, and will hopefully have a few new uses of the Google APIs to show off at that time.  Please come say hello -- we'd love to hear your feedback on <a href="http://www.nextstop.com/">nextstop</a>, or share tips on using the Google APIs.  You can also check out some of the places recommended near the <a href="http://www.nextstop.com/location/map/1EpIxzRL9Ck/san-francisco/?q=&tag=&lat=37.78436757145777&lng=-122.4026083946228&z=16">Moscone center</a>, or add a few of your own!<br /><br />Carl Sjogreen (co-founder, nextstop.com)<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-970043522600103385?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/making-content-creation-easy-with-the-google-ajax-apis-guest-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated Local Search Control used in brand new GoogleBar</title>
		<link>https://googledata.org/google-ajax-api/updated-local-search-control-used-in-brand-new-googlebar/</link>
		<comments>https://googledata.org/google-ajax-api/updated-local-search-control-used-in-brand-new-googlebar/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 00:50:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[A much requested feature, the Local Search Control now includes ads when a search is performed.  Users will benefit from seeing targeted and relevant sponsored results, and you can benefit by sharing in the revenue of including these results on your si...]]></description>
				<content:encoded><![CDATA[A much requested feature, the Local Search Control now includes ads when a search is performed.  Users will benefit from seeing targeted and relevant sponsored results, and you can benefit by sharing in the revenue of including these results on your site.  Ads aren't the only thing that's new - there's also a new (and, we hope you agree, better) UI:<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_qU0w4wiK3GA/ScAxWrXbwoI/AAAAAAAAABU/HMKZ-0DBahU/s1600-h/LSC-example.gif"><img style="cursor:pointer; cursor:hand;width: 400px; height: 203px;" src="http://4.bp.blogspot.com/_qU0w4wiK3GA/ScAxWrXbwoI/AAAAAAAAABU/HMKZ-0DBahU/s400/LSC-example.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5314301825965081218" /></a><br /><br />This new Local Search Control has been used in a brand new version of the <a href="http://code.google.com/apis/maps/documentation/services.html#UsingGoogleBar">GoogleBar</a> (part of the Maps API).  In almost all cases, the GoogleBar provides the ideal way to add searches to Google Maps.  The GoogleBar, too, includes advertisements with the results.  In order to share in the revenue, you need to supply your AdSense publisher ID.  You can use your existing ID or <a href="https://www.google.com/adsense/support/bin/answer.py?answer=9880">sign up for a new AdSense account</a>.  Once you have an account, <a href="https://www.google.com/adsense/support/bin/answer.py?answer=45465">get your AdSense publisher ID</a> and include it as an option when you set up the GoogleBar:<br /><br /><pre class="code" style="overflow:scroll;"><br />&lt;script src=&quot;/jsapi?key=YOUR_KEY_HERE&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br /> google.load(&quot;maps&quot;, &quot;2&quot;);<br /> var opts = {<br /><br />    googleBarOptions : {<br />      style : 'new',   // This tag is necessary for the first few weeks until the new UI becomes default<br />      adsOptions : {<br />        client : ####  // Your Google AdSense publisher ID<br />      }<br />    }<br />  }<br />  map = new GMap2(document.getElementById(&quot;map&quot;), opts);<br />  map.setCenter(new GLatLng(33.956461,-118.396225), 13);<br />  map.enableGoogleBar();<br />&lt;/script&gt;</pre><br /><br />Optionally, you may also specify an AdSense for Search channel (<a href="https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=32614">more info on channels</a>), the Ad Safety Level to associate with your advertising, and the language in which to display results. For a full list of options and details on including them, see the <a href="http://code.google.com/apis/maps/documentation/services.html#UsingGoogleBar">GoogleBar documentation</a>. Note: currently ads only appear for results that are inline - this limitation should be removed within a few weeks.<br /><br /><br />If you'd like to learn more about the new underlying, low-level Local Search Control, the <a href="http://code.google.com/apis/ajaxsearch/documentation/localsearch/index.html">reference documentation</a> and <a href="http://code.google.com/apis/ajax/playground/#local_search_control">Code Playground examples </a>contain everything you need to know.<br /><br />For more information, see this recent post on the <a href="http://googlegeodevelopers.blogspot.com/2009/03/changes-to-googlebar.html">Maps API blog</a>.  Questions or comments?  Please visit the <a href="http://groups.google.com/group/Google-AJAX-Search-API">AJAX API</a> and <a href="http://groups.google.com/group/Google-Maps-API">Maps API</a> discussion groups.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-6968261194225642610?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/updated-local-search-control-used-in-brand-new-googlebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>Experimental Features</title>
		<link>https://googledata.org/google-ajax-api/experimental-features/</link>
		<comments>https://googledata.org/google-ajax-api/experimental-features/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 01:20:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[As part of Tuesday's Google Code Labs announcement, the AJAX Search API became part of the graduating class.  We're still working with our lawyerly team members to update our Terms of Use to include a 3-year deprecation policy.  If you're curious what ...]]></description>
				<content:encoded><![CDATA[As part of Tuesday's <a href="http://google-code-updates.blogspot.com/2009/03/introducing-labs-for-google-code.html">Google Code Labs announcement</a>, the AJAX Search API became part of the graduating class.  We're still working with our lawyerly team members to update our Terms of Use to include a 3-year deprecation policy.  If you're curious what that policy will look like, take a look at Section 4.5 of the <a href="http://code.google.com/apis/visualization/terms.html">Visualization API terms</a> -- it will be similar to that.<br /><br />You'll see that an exception to the deprecation policy will be features marked "<a href="http://code.google.com/labs/faq.html#experimental">experimental</a>."  This label is for experimental features that the deprecation policy does not apply to and therefore they can be changed or removed in the future, even if the deprecation policy applies to the rest of the API.  You may have seen in the <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html">AJAX Search API reference</a> that we have a few such features already, so we wanted to make sure you knew which ones those were.<br /><br />The current experimental features include all of Book Search and the "image type" restriction of Image Search.  We've done our best to clearly mark all of these as experimental in the <a href="http://code.google.com/apis/ajaxsearch/documentation/reference.html">docs</a>.<br /><br />As always, please let us know if you have any questions or comments.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-1874035892041830596?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/experimental-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Code Labs and the SOAP Search API</title>
		<link>https://googledata.org/google-ajax-api/google-code-labs-and-the-soap-search-api/</link>
		<comments>https://googledata.org/google-ajax-api/google-code-labs-and-the-soap-search-api/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 18:59:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[As recently announced, a new program was introduced today for Google Code Labs.  We're proud that the AJAX Search API has already graduated from Labs, which demonstrates our long-term commitment to it.Also part of that announcement was that the SOAP Se...]]></description>
				<content:encoded><![CDATA[As <a href="http://google-code-updates.blogspot.com/2009/03/introducing-labs-for-google-code.html">recently announced</a>, a new program was introduced today for <a href="http://code.google.com/labs/">Google Code Labs</a>.  We're proud that the AJAX Search API has already graduated from Labs, which demonstrates our long-term commitment to it.<br /><br />Also part of that announcement was that the SOAP Search API will be retired on August 31st, 2009.  It was deprecated in 2006, when we stopped accepting new developers for the API.  Since then, it's been steadily declining in usage and we believe the majority of use cases are sufficiently handled by the more comprehensive AJAX Search API.<br /><br />In many ways, this AJAX API is a superset of the SOAP API, providing access to local, news, image, and video search results, among others, in addition to web search.  Therefore, we encourage SOAP developers to explore our <a href="http://code.google.com/apis/ajaxsearch/documentation/">documentation</a> and consider migrating their applications.  <br /><br />Please keep in mind that the AJAX APIs exist for the benefit of end-users; several of their features and usage guidelines are designed with them in mind.  For instance, each search performed with the API must be the direct result of a user action.  Automated searching is strictly prohibited, as is permanently storing any search results.  Please refer to the <a href="http://code.google.com/apis/ajaxsearch/terms.html">Terms of Use</a> for more detail.<br /><br />And for developers new to the AJAX Search API, don't forget to check out our <a href="http://groups.google.com/group/Google-AJAX-Search-API">discussion group</a>, a good resource if you have questions or need more help.  Welcome aboard!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-3851641607209509762?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/google-code-labs-and-the-soap-search-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery, YUI updates</title>
		<link>https://googledata.org/google-ajax-api/jquery-yui-updates/</link>
		<comments>https://googledata.org/google-ajax-api/jquery-yui-updates/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 19:14:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[We have updated versions of jQuery and YUI on our CDN.  jQuery is now at version 1.3.2 which will be what version 1 and 1.3 aliases point to.YUI's new version, 2.7.0, includes a new stylesheet utility to do dynamic CSS without looping through DOM nodes...]]></description>
				<content:encoded><![CDATA[We have updated versions of jQuery and YUI on our CDN.  jQuery is now at version 1.3.2 which will be what version 1 and 1.3 <a href="http://code.google.com/apis/ajax/documentation/#Versioning">aliases</a> point to.<br /><br />YUI's new version, 2.7.0, includes a new stylesheet utility to do dynamic CSS without looping through DOM nodes as well as some enhancements to existing functionality such as charts, DOM collection, and tree view.  Furthermore, YUI is maintaining their image as a library for professionals by beginning to add IE8 support in preparation for Microsoft's upcoming launch.<br /><br />I'd also like to remind you that all public updates to our APIs can be followed on our <a href="http://ajax-api-alerts.blogspot.com/">Google AJAX API Alerts blog</a>.  That blog is meant for minor API additions/updates/fixes, and in the future these alerts will only be posted there.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-5533132372290011666?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/jquery-yui-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Google News to Your Website</title>
		<link>https://googledata.org/google-ajax-api/adding-google-news-to-your-website/</link>
		<comments>https://googledata.org/google-ajax-api/adding-google-news-to-your-website/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 17:47:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Today we are launching a new extension to the AJAX Search API, a Google News-based element.  This element embeds a news slideshow on your site, letting your users see headlines and previews from Google News based on queries that you've selected. Here i...]]></description>
				<content:encoded><![CDATA[Today we are launching a new extension to the <a href="http://code.google.com/apis/ajaxsearch/">AJAX Search API</a>, a Google News-based element.  This element embeds a news slideshow on your site, letting your users see headlines and previews from Google News based on queries that you've selected. Here is an example of the NewsShow in action:<br /><br /><center><iframe src="http://www.google.com/uds/modules/elements/newsshow/iframe.html?format=300x250" frameborder="0" width="300" height="250" marginwidth="0" marginheight="0"></iframe></center><br /><br />It couldn't be easier to add this to your site.  Simply include this iframe:<br /><br /><pre class="code" style="overflow:scroll;"><br />&lt;iframe src="http://www.google.com/uds/modules/elements/newsshow/iframe.html?format=300x250"<br />        frameborder="0" width="300" height="250"<br />        marginwidth="0" marginheight="0"&gt;<br />&lt;/iframe&gt;</pre><br /><br />The element comes in two standard sizes: <a href="http://www.google.com/uds/modules/elements/newsshow/iframe.html?format=728x90">728x90</a> and <a href="http://www.google.com/uds/modules/elements/newsshow/iframe.html?format=300x250">300x250</a>.<br /><br />Adding a NewsShow to your site in this way allows you to customize its shape and content with URL arguments.  Simply input your parameters into our <a href="http://code.google.com/apis/ajaxsearch/documentation/newsshow/wizard.html">wizard</a> and we'll build the code for you.  Or, for greater control over the NewsShow's look and feel, you can call the classes directly.  Check out the <a href="http://code.google.com/apis/ajaxsearch/documentation/newsshow/">documentation</a> for details and the <a href="http://code.google.com/apis/ajax/playground/#news_show">Code Playground</a> to try your hand at customizing.<br /><br />As always, let us know what you think in the <a href="http://groups.google.com/group/Google-AJAX-Search-API">Google AJAX API developer forum</a>.<br /><br />Note:  Earlier this evening a reader pointed out a typo in the iframe snippet which has since been corrected.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-6456343174651899629?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/adding-google-news-to-your-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playgrounds and alerts</title>
		<link>https://googledata.org/google-ajax-api/playgrounds-and-alerts/</link>
		<comments>https://googledata.org/google-ajax-api/playgrounds-and-alerts/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 18:01:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I recently launched a new product to help developers learn our APIs.  It's an open source framework for showing Javascript code samples.  The tool allows users to click through samples so that they can edit code and see their changes live.  In order to...]]></description>
				<content:encoded><![CDATA[I recently launched a new product to help developers learn our APIs.  It's an open source framework for showing Javascript code samples.  The tool allows users to click through samples so that they can edit code and see their changes live.  In order to be a more practical tool for code editing, I put "save" and "export" features in there.  You can read more about it on <a href="http://google-code-updates.blogspot.com/2009/01/playing-around-with-googles-ajax-apis.html">the official blog post</a>.<br /><br />I would also like to point you at a new blog the AJAX APIs team will be maintaining: the <a href="http://ajax-api-alerts.blogspot.com/">AJAX APIs Alert Blog</a>.  Whether you know it or not (or believe it or not!) we are constantly making changes to the APIs.  New features, bug fixes, tweaks, etc.  In the past we haven't had a way of communicating these changes to you since they can be small changes and not worth a whole blog post here.  Furthermore, there are those of you that want to know when we update the <a href="http://code.google.com/apis/ajaxlibs/">Javascript libraries</a> that we host.  So from here on out, <a href="http://ajax-api-alerts.blogspot.com/">that blog</a> will be the new home for these "alerts".  Posts will be short, to the point and we will try to update it with all public changes, so <a  href="http://ajax-api-alerts.blogspot.com/feeds/posts/default">subscribe now</a>!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-5179298436567072039?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/playgrounds-and-alerts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome YUI!, script.aculo.us gets fresh</title>
		<link>https://googledata.org/google-ajax-api/welcome-yui-script-aculo-us-gets-fresh/</link>
		<comments>https://googledata.org/google-ajax-api/welcome-yui-script-aculo-us-gets-fresh/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 17:32:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[We've been hosting most of the big powerhouse Javascript libraries and so far it's been a huge success.  However, without YUI!, our collection has been incomplete.  Well, I'm not saying that now we're complete and won't add more libraries, just that we...]]></description>
				<content:encoded><![CDATA[We've been hosting most of the big powerhouse Javascript libraries and so far it's been a huge success.  However, without YUI!, our collection has been incomplete.  Well, I'm not saying that now we're complete and won't add more libraries, just that we're less incomplete than we were... you know what I mean.<br /><br />Anyways, after getting legal approval (people actually read those licenses), we <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#yui">pushed it live</a>.  We are equally as excited about this as <a href="http://yuiblog.com/blog/2008/11/19/yui-google/">Yahoo!</a> and the <a href="http://ajaxian.com/archives/cdns-gaining-broader-use-with-javascript-libraries">Javascript community</a>.<br />So let's take a look at how you use it:<br /><pre class="code">&lt;head&gt;<br />  &lt;script src="http://www.google.com/jsapi" type="text/javascript"<br />          charset="utf-8"&gt;&lt;/script&gt;<br />  &lt;script type="text/javascript" charset="utf-8"&gt;<br />  google.load('yui', '2.6.0');<br />  function init() {<br />    var loader = new YAHOO.util.YUILoader({<br />      require: ["button", "calendar"],<br />      base: "http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/",<br />      onSuccess: function() {<br />        // start playing with buttons and calendars!<br />      }<br />    });<br />    loader.insert();<br />  }<br />  google.setOnLoadCallback(init);<br />  &lt;/script&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />  &lt;div id="calContainer"&gt;&lt;/div&gt;<br />&lt;/body&gt;</pre>That code will load the YUI loader which then loads the button and calendar widgets (combined as one script) and calls onSuccess when they are loaded.  If lazy loading scripts isn't your thing, then you can use the <a href="http://developer.yahoo.com/yui/articles/hosting/?button&calendar&MIN&nocombine&basepath&http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/&google">dependency configurator</a> to configure the perfect script URL.  In my case, to achieve the same results as above, I would use:<br /><pre class="code" style="overflow:scroll;">&lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/button/assets/skins/sam/button.css"&gt; <br />&lt;link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/calendar/assets/skins/sam/calendar.css"&gt;<br />&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"&gt;&lt;/script&gt; <br />&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/element/element-beta-min.js"&gt;&lt;/script&gt; <br />&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/button/button-min.js"&gt;&lt;/script&gt; <br />&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.6.0/build/calendar/calendar-min.js"&gt;&lt;/script&gt;</pre>Also, we've updated <a href="http://code.google.com/apis/ajaxlibs/documentation/#script_aculo_us">script.aculo.us</a> to  the new minor release version 1.8.2.  For those of you who are using our aliases, you've already been updated!<br /><br />As always, stop by in our <a href="http://groups.google.com/group/Google-AJAX-Search-API">group</a> or <a href="http://www.mibbit.com/?server=irc.freenode.net&channel=%23googleajaxapis">IRC channel</a> to give us a piece of your mind.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-1618242440408531425?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/welcome-yui-script-aculo-us-gets-fresh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Local Search results now include China</title>
		<link>https://googledata.org/google-ajax-api/local-search-results-now-include-china/</link>
		<comments>https://googledata.org/google-ajax-api/local-search-results-now-include-china/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 22:58:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[We're pleased to announce the addition of local search for China.  For users already using the AJAX Search API for local search, you should now be able to search for businesses in China without having to make any changes.  Try typing "hotels in Beijing...]]></description>
				<content:encoded><![CDATA[We're pleased to announce the addition of local search for China.  For users already using the AJAX Search API for local search, you should now be able to search for businesses in China without having to make any changes.  Try typing "hotels in Beijing" in your site or app which uses the Google AJAX Search API.  You should see some results:<br /><br /><center><img src="http://3.bp.blogspot.com/_qU0w4wiK3GA/SRy9DWL_0gI/AAAAAAAAAA8/YcmXo36XAIs/s320/China+Local+Search+result.jpg"></center><br /><br />To take advantage of local search functionality, take a look at the <a href="http://code.google.com/apis/ajaxsearch/">AJAX Search API</a>.  The samples <a href="http://code.google.com/apis/ajaxsearch/local.html">here</a> are also particularly useful.<br /><br />If you have any feedback or comments, please drop by our <a href="http://groups.google.com/group/Google-AJAX-Search-API">Google Group</a> or new IRC channel (irc details can be found at the bottom of <a href="http://googleajaxsearchapi.blogspot.com/2008/11/swfobject-library-added-to-libraries.html">this post</a>).<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-7515998404774281616?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/local-search-results-now-include-china/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="" type="" />
		</item>
		<item>
		<title>SWFObject Library Added to Libraries API</title>
		<link>https://googledata.org/google-ajax-api/swfobject-library-added-to-libraries-api/</link>
		<comments>https://googledata.org/google-ajax-api/swfobject-library-added-to-libraries-api/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 03:02:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[If you're a Flash nut then you probably know about the SWFObject Javascript library.  I'm not, so I didn't.  However, since I promised myself I would play with Flex soon I am very happy that a &#34;Flasher&#34; suggested that we add it to our AJAX Li...]]></description>
				<content:encoded><![CDATA[If you're a Flash nut then you probably know about the <a href="http://code.google.com/p/swfobject/">SWFObject</a> Javascript library.  I'm not, so I didn't.  However, since I promised myself I would play with Flex soon I am very happy that a &quot;Flasher&quot; <a href="http://code.google.com/p/google-ajax-apis/issues/detail?id=126">suggested</a> that we add it to our AJAX Libraries API.  I took a look at it and found out that it's a great little must-have library!<br /><br />See, embedding a Flash video on a page is actually more complicated than it should be.  You can't just throw a tag on the page with some attributes and expect it to work.  In fact, to embed a Flash file there are different methods for different browsers such as using an &lt;embed&gt; vs. &lt;object&gt; as well as setting the parameters for the file.<br /><br />The SWFObject library simplifies the process so that all you need to worry about is including their Javascript library and using a single method to embed your Flash on the page in a safe, cross-browser manner.  It also has a few extra utility functions, such as setting a load event for the Flash object and detecting the user's Flash version.<br /><br />Because this library is open source, extremely popular, and so handy, we have <a href="http://code.google.com/apis/ajaxlibs/documentation/index.html#swfobject">added it to our AJAX Libraries API</a> so that our caching benefits can be reaped.  If you want to express your extreme happiness then you can do so in our new IRC channel:<br />server: irc.freenode.net<br />channel: #googleajaxapis<br /><a href="http://www.mibbit.com/?server=irc.freenode.net&channel=%23googleajaxapis">http://www.mibbit.com/?server=irc.freenode.net&channel=%23googleajaxapis</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-5321462776708354928?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/swfobject-library-added-to-libraries-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling the SearchControl Guest Post</title>
		<link>https://googledata.org/google-ajax-api/styling-the-searchcontrol-guest-post/</link>
		<comments>https://googledata.org/google-ajax-api/styling-the-searchcontrol-guest-post/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 18:36:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[So, the other day, I was asked by the AJAX APIs dev team if I'd like to write a guest blog post, but they didn't tell me what to write about. I thought about telling you how the AJAX APIs revolutionized how I think about life, design websites, and slic...]]></description>
				<content:encoded><![CDATA[So, the other day, I was asked by the AJAX APIs dev team if I'd like to write a guest blog post, but they didn't tell me what to write about. I thought about telling you how the AJAX APIs revolutionized how I think about life, design websites, and slice bread, but then I realized that I buy my bread pre-sliced. So I started going back through the group looking for common questions or themes to threads, and I realized that a huge portion of the questions asked can be summed up like this:  "How do I style the <code>google.search.SearchControl</code>?" For instance, how would one make it so that only a result's title and URL appear (i.e., the description is not visible), or even just the URL? What if you want to change some of the default colors? What if you, being the stylish computer geek that you are, want to make your SearchControl into a 24th century Starfleet console to fit in with that first-season spandex Star Trek: The Next Generation uniform you're wearing right now?<br /><br />Well, you're in luck! Using Mozilla Firefox with the Firebug add-on installed (an absolute must-have for any web developer, by the way), you can do all this and more simply by inspecting the structure of the default search control and taking advantage of the fact that almost every one of its individual elements is given at least one className that can be used with Cascading Style Sheets to apply different style rules.  We've put together a spectacular video to provide a very brief overview of using Firefox and Firebug to inspect the structure (and tinker with) the structure of the control. <br /><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/2YIAX3OSaNE&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/2YIAX3OSaNE&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object><br /><br />For even more information on how you can do more with Firefox and Firebug, you'll want to check out <a href="http://code.google.com/apis/ajaxsearch/articles/firebug.html">Ben Lisbakken's excellent tutorial</a>, which includes even more video! And for good measure, we've included the control's structure (complete with a few of my own comments) below:<br /><br /><pre class="code" style="height: 500px;overflow: auto;">&lt;div class="gsc-control"&gt;<br />    &lt;!-- FYI: This form is the same as the google.search.SearchForm --&gt;<br />    &lt;form class="gsc-search-box"&gt;<br />        &lt;table class="gsc-search-box"&gt;<br />            &lt;tbody&gt;<br />                &lt;tr&gt;<br />                    &lt;td class="gsc-input"&gt;<br />                        &lt;!-- This next input is the search box itself --&gt;<br />                        &lt;input class="gsc-input/&gt;<br />                    &lt;/td&gt;<br />                    &lt;td class="gsc-search-button"&gt;<br />                        &lt;!-- This next input is the search button itself --&gt;<br />                        &lt;input class="gsc-search-button"/&gt;<br />                    &lt;/td&gt;<br />                    &lt;td class="gsc-clear-button"&gt;<br />                        &lt;!-- This next div is the clear button (i.e., the little x) --&gt;<br />                        &lt;div class="gsc-clear-button"/&gt;<br />                    &lt;/td&gt;<br />                &lt;/tr&gt;<br />            &lt;/tbody&gt;<br />        &lt;/table&gt;<br />        &lt;table class="gsc-branding"&gt;<br />            &lt;tbody&gt;<br />                &lt;tr&gt;<br />                    &lt;td class="gsc-branding-user-defined"/&gt;<br />                    &lt;td class="gsc-branding-text"&gt;<br />                        &lt;div class="gsc-branding-text"&gt;powered by&lt;/div&gt;<br />                    &lt;/td&gt;<br />                    &lt;td class="gsc-branding-img"&gt;<br />                        &lt;img class="gsc-branding-img"/&gt;<br />                    &lt;/td&gt;<br />                &lt;/tr&gt;<br />            &lt;/tbody&gt;<br />        &lt;/table&gt;<br />    &lt;/form&gt;<br />    &lt;!-- In tabbed mode, this is where the tabs will appear; in stacked mode, this will be absent! --&gt;<br />    &lt;div class="gsc-tabsArea"&gt;<br />        &lt;!-- The following div would be the active tab --&gt;<br />        &lt;div class="gsc-tabHeader gsc-tabhActive"/&gt;<br />        &lt;!-- These spacer divs will appear AFTER every tab to do exactly what their className would imply --&gt;<br />        &lt;div class="gs-spacer"/&gt;<br />        &lt;!-- And this one would be an inactive tab --&gt;<br />        &lt;div class="gsc-tabHeader gsc-tabhInactive"/&gt;<br />        &lt;div class="gs-spacer"/&gt;<br />    &lt;/div&gt;<br />    &lt;div class="gsc-resultsBox-visible"&gt;<br />        &lt;!-- The next divs contain the actual results. The classes in square brackets are ONLY present in TABBED mode --&gt;<br />        &lt;!-- This would be the active tab --&gt;<br />        &lt;div class="gsc-resultsRoot [gsc-tabData gsc-tabdActive]"&gt;<br />            &lt;table class="gsc-resultsHeader"&gt;<br />                &lt;tbody&gt;<br />                    &lt;tr&gt;<br />                        &lt;td class="gsc-twiddleRegionCell gsc-twiddleRegion-opened"&gt;<br />                            &lt;div class="gsc-twiddle"&gt;<br />                                &lt;!-- This next div will contain your searcher's title or label (e.g., Local), but it won't be visible in tabbed mode --&gt;<br />                                &lt;div class="gsc-title"/&gt;<br />                            &lt;/div&gt;<br />                            &lt;!-- This next div will contain your search's estimated result count, but it's invisible in tabbed mode, too! --&gt;<br />                            &lt;div class="gsc-stats"&gt;<br />                            &lt;!-- This is the selector that chooses 1, 4, or 8 visible results. Please note that only ONE of the options in square brackets will be visible --&gt;<br />                            &lt;div class="gsc-results-selector [gsc-one-result-active OR gsc-more-results-active OR gsc-all-results-active]"&gt;<br />                                &lt;div class="gsc-result-selector gsc-one-result"/&gt;<br />                                &lt;div class="gsc-result-selector gsc-more-results"/&gt;<br />                                &lt;div class="gsc-result-selector gsc-all-results"/&gt;<br />                            &lt;/div&gt;<br />                        &lt;/td&gt;<br />                        &lt;td class="gsc-configLabelCell"&gt;<br />                            &lt;!-- This next span will only be present if the searcher has configuration options --&gt;<br />                            &lt;!-- Also, it will only have ONE of the options in square brackets, depending on whether or not the configuration form is visible or not --&gt;<br />                            &lt;span class="gsc-configLabel [gsc-twiddle-closed OR gsc-twiddle-opened]"/&gt;<br />                        &lt;/td&gt;<br />                    &lt;/tr&gt;<br />                &lt;/tbody&gt;<br />            &lt;/table&gt;<br />            &lt;!-- This next div is the configuration form for a searcher. It is only present if the searcher has configuration options --&gt;<br />            &lt;!-- The exact className of the config form will depend on the type of searcher. So you'll only have ONE of the options below.  You can probably figure out which one your searcher will have --&gt;<br />            &lt;!-- By the way, I have no idea why it's gsc-locationConfig instead of gsc-localConfig :) --&gt;<br />            &lt;div class="gsc-config [gsc-locationConfig OR gsc-videoConfig OR gsc-blogConfig OR gsc-newsConfig OR gsc-patentConfig]"&gt;<br />                &lt;!-- The exact content of the config div will vary depending on your searcher's options --&gt;<br />                &lt;!-- Use Firefox with Firebug to explore the possibilities here! --&gt;<br />            &lt;/div&gt;<br />            &lt;div class="gsc-results [gsc-localResult OR gsc-webResult OR gsc-blogResult OR gsc-newsResult OR gsc-imageResult OR gsc-bookResult OR gsc-patentResult OR gsc-videoResult]"&gt;<br />                &lt;!-- This is your FIRST actual search result. All results will follow this pattern --&gt;<br />                &lt;!-- Please note, again, that only ONE of the classNames in the square brackets will apply, depending on the searcher --&gt;<br />                &lt;div class="gsc-result [gsc-localResult OR gsc-webResult OR gsc-blogResult OR gsc-newsResult OR gsc-imageResult OR gsc-bookResult OR gsc-patentResult OR gsc-videoResult]"&gt;<br />                    &lt;!-- The contents of this div will be the same as outlined in the documentation for your searcher's results --&gt;<br />                &lt;/div&gt;<br />                &lt;div class="gsc-expansionArea"&gt;<br />                    &lt;!-- This is where the REST of your search results show up, again following the same pattern as above --&gt;<br />                &lt;/div&gt;<br />            &lt;/div&gt;<br />        &lt;/div&gt;<br />        &lt;!-- And the inactive one --&gt;<br />        &lt;div class="gsc-resultsRoot [gsc-tabData gsc-tabdInactive]"&gt;<br />            &lt;!-- All the rest of the structure of this is the same as above --&gt;<br />    &lt;/div&gt;<br />&lt;/div&gt;</pre><br /><br />So, thanks to Firefox and Firebug, we have access to the SearchControl's structure.  Now we can get to work making our control look like one of those 24th-century consoles that we see every day on the starship Enterprise! To get this done, we're going to start with the stock "Hello, world" example for the AJAX Search API. Then we're going to remove the style element that comes with it and plug in a new external stylesheet below the inline script that initializes the whole thing. <br /><br />Once that's done, we need to (a) change a bunch of colors; (b) rework a number of background images; and (c) open a small hole in the space-time continuum to get ourselves a starship console to put it all on. Okay, so that last one isn't exactly possible, but we can do all the rest with a <a href="http://jgeerdes.home.mchsi.com/google/googleAjaxApiSearchControlStyled.css">little CSS</a>. And the whole thing, put together, looks <a href="http://jgeerdes.home.mchsi.com/google/googleAjaxApiSearchControlStyled.html">like this</a>.<br /><br />Now, you will notice that a number of those rules have complex selectors (e.g., .gsc-resultsHeader td.gsc-twiddle-opened...).  This is because Google's default CSS is rather specific in places.  And it's also why Firefox with Firebug is so very important.  It really makes the whole process almost painless.<br /><br />So there you have it: style. Well, for your SearchControl, at least. Next time, we'll talk about why the Starfleet quartermaster abandoned spandex.<br /><br />Until then, happy styling!<br /><br />Jeremy R. Geerdes<br />Generally Cool Guy<br />jrgeerdes@gmail.com<br /><br /><span style="font-weight:bold;">p.s. What cool custom designs have you come up with?  Share them in the <a href="http://groups.google.com/group/Google-AJAX-Search-API">Google Group</a>!  Ben Lisbakken has promised some Google schwag for interesting designs...</span><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-3752868313464393581?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/styling-the-searchcontrol-guest-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MooTools 1.2.1</title>
		<link>https://googledata.org/google-ajax-api/mootools-1-2-1/</link>
		<comments>https://googledata.org/google-ajax-api/mootools-1-2-1/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 02:09:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[MooTools v1.2.1 recently got released and we have received the thumbs up from the maintainers to host it, so the bits have been flipped and the pipes are ready to MOOve it over to you guys.But wait!!  Before you get started with 1.2.1, please note that...]]></description>
				<content:encoded><![CDATA[MooTools v1.2.1 recently got released and we have received the thumbs up from the maintainers to host it, so the bits have been flipped and the pipes are ready to MOOve it over to you guys.<br /><br />But wait!!  Before you get started with 1.2.1, please note that the previous version we are hosting (1.11) and the new version (1.2.1) are incompatible.  So as not to break anyone out of the blue (and put them in a bad MOOd) we have frozen the version "1" alias to 1.11.  Here's what the aliases look like for MooTools:<br /><code>google.load('mootools', '1')  // gives you version 1.11</code><br /><code>google.load('mootools', '1.11')  // gives you version 1.11</code><br /><code>google.load('mootools', '1.2.1') // gives you version 1.2.1</code><br />... you get the picture.<br /><br />If you have some extra time, stop by the <a href="http://groups.google.com/group/Google-AJAX-Search-API/">group</a> and show us what you've been up to with MooTools.  Happy grazing!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-2436643562402809429?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/mootools-1-2-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Languages for Translate and POST Interface</title>
		<link>https://googledata.org/google-ajax-api/new-languages-for-translate-and-post-interface/</link>
		<comments>https://googledata.org/google-ajax-api/new-languages-for-translate-and-post-interface/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 17:37:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[We are pleased to announce two enhancements to our AJAX Language API.Thanks to the great efforts of the Google Translate team, the API is now able to support 11 additional languages for translation:Catalan (ca)Filipino (tl)Hebrew (iw)Indonesian (id)Lat...]]></description>
				<content:encoded><![CDATA[We are pleased to announce two enhancements to our AJAX Language API.<br /><br />Thanks to the great efforts of the Google Translate team, the API is now able to support 11 additional languages for translation:<br /><ul><li>Catalan (ca)<br /></li><li>Filipino (tl)<br /></li><li>Hebrew (iw)<br /></li><li>Indonesian (id)<br /></li><li>Latvian (lv)<br /></li><li>Lithuanian (lt)<br /></li><li>Serbian (sr)<br /></li><li>Slovak (sk)<br /></li><li>Slovenian (sl)<br /></li><li>Ukrainian (uk)<br /></li><li>Vietnamese (vi)</li></ul>Also, we'd like to introduce the new POST interface.  Among other things, this can be used to send longer URLs by implementing a JavaScript bridge to, for example, Flash or Java using the <a href="http://code.google.com/apis/ajaxlanguage/documentation/reference.html#_intro_fonje">RESTful interface</a>.  For additional information, take a look around our <a href="https://groups.google.com/group/Google-AJAX-Search-API">Google Group</a>.<br /><br />If you have not already done so, please take a moment to familiarize yourself with the <a href="http://code.google.com/apis/ajaxlanguage/terms.html">AJAX Language API terms</a><a>.</a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-7637043501735339234?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/new-languages-for-translate-and-post-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clarifying our TOS to allow additional uses</title>
		<link>https://googledata.org/google-ajax-api/clarifying-our-tos-to-allow-additional-uses/</link>
		<comments>https://googledata.org/google-ajax-api/clarifying-our-tos-to-allow-additional-uses/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 23:58:00 +0000</pubDate>
		<dc:creator><![CDATA[Adam Feldman]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[As the AJAX APIs have undergone tremendous growth and adoption, developers have used these APIs in many new and exciting ways. When things move fast, sometimes details get left behind, and our Terms of Service has not been keeping up with the rapid rat...]]></description>
				<content:encoded><![CDATA[As the AJAX APIs have undergone tremendous growth and adoption, developers have used these APIs in many new and exciting ways. When things move fast, sometimes details get left behind, and our Terms of Service has not been keeping up with the rapid rate of change. We want to make it clear that you can use these APIs in the context of websites, gadgets, mobile apps, desktop client apps, etc.  In response to your feedback, we've dusted off and updated the <a href="http://code.google.com/apis/ajaxsearch/terms.html">AJAX Search API terms</a> and the <a href="http://code.google.com/apis/ajaxlanguage/terms.html">AJAX Language API terms</a>. The primary change was replacing "website" with "Property" that's defined as a "website, application, or other product".<br /><br />As always, thank you for the feedback.  Keep your <a href="http://groups.google.com/group/Google-AJAX-Search-API">comments and suggestions</a> coming! We look forward to all of your amazing creations using the Google AJAX APIs.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-6129388203011319716?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/clarifying-our-tos-to-allow-additional-uses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing the Transliteration API</title>
		<link>https://googledata.org/google-ajax-api/introducing-the-transliteration-api/</link>
		<comments>https://googledata.org/google-ajax-api/introducing-the-transliteration-api/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 14:07:00 +0000</pubDate>
		<dc:creator><![CDATA[Brandon Badger]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[by Gokul Nath Babu and Anupama Dutta, Software EngineersWe're excited to announce a new addition to the AJAX Language API - the Transliteration API.   Transliteration is the process of phonetically converting a word written in one script into another. ...]]></description>
				<content:encoded><![CDATA[<i>by Gokul Nath Babu and Anupama Dutta, Software Engineers</i><br /><br />We're excited to announce a new addition to the AJAX Language API - the <a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration">Transliteration API</a>.   Transliteration is the process of phonetically converting a word written in one script into another.   We launched transliteration on <a href="http://www.google.com/transliterate/indic/">India Labs</a> a year ago to make it easier to type in Indian languages using an English keyboard.   Since then, we've integrated this into a number of Google properties, such as <a href="http://www.orkut.com/Scrapbook.aspx">orkut scraps</a>, <a href="http://www.blogger.com/indic/hi">Blogger</a> and <a href="http://www.google.co.in/intl/hi/">search</a>.<br /><br />Now we'd like to make this functionality available to all websites through <a href="http://code.google.com/apis/ajaxlanguage/documentation/#Transliteration">our API</a>, which will make it easier for you to add transliteration capabilities to textfields on your webpages. Using this customizable API, you can enable users of your website to type in Hindi, Tamil, Telugu, Kannada and Malayalam.  If you're looking for a finer level of control on your web pages, also check out the <a href="http://code.google.com/apis/ajaxlanguage/documentation/#LowLevelTransliteration">low-level interface</a> to transliteration, and the <a href="http://code.google.com/apis/ajaxlanguage/documentation/#FontRendering">font rendering support APIs</a> that we have released.<br /><br />Please try these out and <a href="http://groups.google.com/group/Google-AJAX-Search-API">let us know</a> what you think and how you're using it.  We'll also be discussing this API in detail during the Google Developer Day in Bangalore on October 18th.  Please <a href="http://code.google.com/intl/en_in/events/developerday/2008/home.html">register</a> to learn more.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-2788203607324529151?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/introducing-the-transliteration-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How&#8217;d they do that?</title>
		<link>https://googledata.org/google-ajax-api/howd-they-do-that/</link>
		<comments>https://googledata.org/google-ajax-api/howd-they-do-that/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 15:22:00 +0000</pubDate>
		<dc:creator><![CDATA[Mark Lucovsky, Software Engineer]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Have you ever gone to a site, looked at the page and wondered, "how did they do that?" Since we launched our 2008 U.S. Election site I am getting lots of questions about that nifty little "page element" sitting in the center of the page. Everyone wants...]]></description>
				<content:encoded><![CDATA[Have you ever gone to a site, looked at the page and wondered, "how did they do that?" Since we launched our <a href="http://www.google.com/2008election/">2008 U.S. Election</a> site I am getting lots of questions about that nifty little "page element" sitting in the center of the page. Everyone wants to know, "how did you guys do that? how did you pack so much valuable and tightly scoped information in such a small amount of space?" Take a look at the page element below, play around with it a little bit and when you are ready, continue reading.<br /><br /><iframe title="In the News" style="border: 0px none ; margin-left: 1em; width: 540px; height: 530px;" src="http://www.google.com/uds/gadgets/inthenews/iframe.html" frameborder="0"></iframe><br /><br />If you know how to use <a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a>, then you can see that behind each tab (Election News, YouTube, etc.), there is a simple <a href="http://code.google.com/apis/ajaxsearch/">AJAX APIs</a> JSON-P request. For some tabs the base operation is a Google Web Search or <a href="http://www.google.com/coop/cse/">Custom Search</a>, for others a Google News Search, and for others, a simple YouTube Search. The AJAX APIs work really well in this mode where the page author determines both the query and search options, as well controlling the end-to-end UI and resulting user experience.<br /><br />But back to the tabs, and to answer the questions, "How'd they do that?", I will walk through each tab and show you the AJAX API requests that are used to generate the results for this page element:<br /><br />First, the <b>Election News</b> tab. For this tab, we simply target News Search with the name of the candidate and a query addition of <em>unitedstates_uselections</em>. Something like this:<br /><br /><a href="http://ajax.googleapis.com/ajax/services/search/news?v=1.0&amp;q=Barack%20Obama%20unitedstates_uselections">http://ajax.googleapis.com/ajax/services/search/news?v=1.0&amp;q=Barack%20Obama%20unitedstates_uselections</a><br /><br />Next, the <span style="font-weight: bold;">YouTube</span> tab. For this tab, we use the Video Search system to directly target each candidate's YouTube Channel (<em>e.g.,</em> <code>ytchannel:barackobamadotcom</code>), render the results with a simple fade in effect, and then bind each result click to a dynamically created player. Very simple stuff. Check out the url we use to grab the results:<br /><br /><a href="http://ajax.googleapis.com/ajax/services/search/video?v=1.0&amp;q=ytchannel:barackobamadotcom">http://ajax.googleapis.com/ajax/services/search/video?v=1.0&amp;q=ytchannel:barackobamadotcom</a><br /><br />Next, the <b>Blog Posts</b> tab. For this tab, we built a little <a href="http://www.google.com/coop/cse?cx=010222979794876194725:pqldevwuapa">Custom Search Engine</a>, populating it with several of the top political blogs. The search then becomes the name of the candidate plus a <code>&amp;cx=</code> argument to indicate the Custom Search Engine to use for the search:<br /><br /><a href="http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=Barack%20Obama&amp;cx=010222979794876194725:pqldevwuapa">http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=Barack%20Obama&amp;cx=010222979794876194725:pqldevwuapa</a><br /><br />See what I mean? Take the queries above, slap on a little UI, and any application can take Google News, Custom Search, Web Search, YouTube, etc. and create a very tight little customized search experience...<br /><br />The <b>Quotes</b> tab is very cool. Instead of just searching for News articles, this tab searches for news articles that contain quotes spoken by one of the candidates. Again, a simple News search with a <code>&amp;qsid=</code> argument to scope to quotes for a particular candidate and we have what we need:<br /><br /><a href="http://ajax.googleapis.com/ajax/services/search/news?v=1.0&amp;qsid=tPjE5CDNzMicmMa">http://ajax.googleapis.com/ajax/services/search/news?v=1.0&amp;qsid=tPjE5CDNzMicmMa</a><br /><br />Finally, the <b>News by State</b> tab. This one has two things going on. First there is the state selector control. We use the just launched <a href="http://code.google.com/apis/ajax/documentation/#ClientLocation">google.loader.ClientLocation</a> property to determine the user's current location. Then, we simply use this location to form a geo scoped query for the candidate's name in the politics category, scoped with a geo restrict using <code>&amp;geo=</code>. Something like this:<br /><br /><a href="http://ajax.googleapis.com/ajax/services/search/news?v=1.0&amp;q=Barack%20Obama%20any_politics&amp;geo=CA,US">http://ajax.googleapis.com/ajax/services/search/news?v=1.0&amp;q=Barack%20Obama%20any_politics&amp;geo=CA,US</a><br /><br />So there you have it. Take the above collection of page author defined queries, mix in a few hours of coding, throw in some product managers, a handful of lawyers, a few PR folks, and you have a clever little page element that delivers tons of very focused information.<br /><br />To learn more about the APIs used in this page element, visit the <a href="http://code.google.com/apis/ajaxsearch/">AJAX Search API</a> and <a href="http://code.google.com/apis/ajaxfeeds/">AJAX Feed API</a> documentation. To learn more about Custom Search Engines, check out the recently updated <a href="http://code.google.com/apis/customsearch/">developer guide</a>.  To discuss the APIs with us and the community, visit us on our <a href="http://groups.google.com/group/Google-AJAX-Search-API">developer forum</a>.<br /><br />p.s. - If you really like that page element and have to have it on your site, you can iframe it in, or just include our JavaScript directly:<br /><br /><pre class="code"><br />&lt;iframe <br />  title="In the News" <br />  style="border: 0px none ; margin-left: 1em; width: 540px; height: 530px;" <br />  src="http://www.google.com/uds/gadgets/inthenews/iframe.html" <br />  frameborder="0"&gt;<br />&lt;/iframe&gt;<br /></pre><br /><br />Or if you prefer including the raw JavaScript controls where you can make mild UI modifications with simple CSS rules, try this approach:<br /><br /><pre class="code"><br />&lt;style&gt;<br />  @import url("http://www.google.com/uds/gadgets/inthenews/inthenews.css");<br />  body {<br />    font-family: "arial", sans-serif;<br />    font-size: 11px;<br />  }<br />&lt;/style&gt;<br /><br />&lt;script src="http://www.google.com/uds/gadgets/inthenews/inthenews.js"&gt;&lt;/script&gt;<br />&lt;script src="http://www.google.com/jsapi/" type="text/javascript"&gt;&lt;/script&gt;<br /><br />&lt;!--[if IE]&gt;<br />  &lt;script type="text/javascript" <br />    src="http://www.google.com/uds/gadgets/inthenews/excanvas.js"&gt;&lt;/script&gt;<br />&lt;![endif]--&gt;<br /><br />&lt;script type="text/javascript"&gt;<br />  google.load("search", "1");<br />  google.setOnLoadCallback(initialize, true);<br /><br />  function initialize() {<br />    var options = {<br />      format : "513x500",<br />      useNav : true<br />    };<br />    new InTheNews("itnId-513x500", options);<br />  }<br />&lt;/script&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />  &lt;div id="itnId-513x500"&gt;&lt;/div&gt;<br />&lt;/body&gt;<br /></pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-6173598438713529561?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/howd-they-do-that/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where is my current user?</title>
		<link>https://googledata.org/google-ajax-api/where-is-my-current-user/</link>
		<comments>https://googledata.org/google-ajax-api/where-is-my-current-user/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 19:13:00 +0000</pubDate>
		<dc:creator><![CDATA[Mark Lucovsky, Software Engineer]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Have you ever written an app and wanted to do something simple like center a map on your user's location? Consider a simple little map gadget. Wouldn't it be nice to be able to center that map on your user's home country, state, or city, instead of jus...]]></description>
				<content:encoded><![CDATA[Have you ever written an app and wanted to do something simple like center a map on your user's location? Consider a simple little map gadget. Wouldn't it be nice to be able to center that map on your user's home country, state, or city, instead of just arbitrarily centering on San Francisco or Australia?<br /><br />Take a look at our new "API". Actually, it's not really an API, more like a simple object property called <a title="google.loader.ClientLocation" href="http://code.google.com/apis/ajax/documentation/#ClientLocation" id="li7c">google.loader.ClientLocation</a>. <br /><br />After loading any one of our <a title="AJAX APIs" href="http://code.google.com/apis/ajax/" id="ostm">AJAX APIs</a>, the system will attempt to geo-locate the client based on the client's IP address. If we have a valid mapping for the IP address, the google.loader.ClientLocation property is populated with coarse grained coordinates, the user's country, region, and city. The mapping isn't perfect, but it's pretty good, and is definitely usable as a way of setting smart defaults or adding a small amount of location awareness to your app.<br /><br />Here is a little code sample that demonstrates the use of google.loader.ClientLocation:<br /><br /><pre class="code"><br />/**<br /> * Set the currentState_ and currentCountry_ properties based on the client's<br /> * current location (when available and in the US), or to the defaults.<br /> */<br />InTheNews.prototype.setDefaultLocation_ = function() {<br />  this.currentState_ = this.options_.startingState;<br />  if (google.loader.ClientLocation &amp;&amp;<br />      google.loader.ClientLocation.address.country_code == "US" &amp;&amp;<br />      google.loader.ClientLocation.address.region) {<br /><br />    // geo locate was successful and user is in the states. range check<br />    // the region so that we can safely use it when selecting a state<br />    // level polygon overlay<br />    var state = google.loader.ClientLocation.address.region.toUpperCase();<br />    if (InTheNews.stateNames[[]state]) {<br />      this.currentState_ = state;<br />    }<br />  }<br />  this.currentCountry_ = "US";<br />}<br /></pre><br /><br />To witness this code in action, check out our <a title="2008 U.S. Election" href="http://www.google.com/2008election/" id="m..3">2008 U.S. Election</a> page. If you click on the "News by State" tab, you will either see political news, for the current candidate, scoped to your state, OR if we don't have a mapping for your IP address, you will see the same thing only scoped to the state of California.<br /><br />Now for the good stuff... If you like this simple IP to location mechanism, wait until you see what the <a title="Gears Team announced" href="http://code.google.com/apis/gears/api_geolocation.html" id="uq94">Gears Team announced</a>. They have a killer version of this functionality that is able to pinpoint a user's location using IP, cell-ID, GPS, and coming soon, WiFi. This is definitely a step up in terms of both functionality and accuracy.<br /><br />As always, feel free to leave us feedback, ask questions, or vote for some new features by visiting our <a title="developer forum" href="http://groups.google.com/group/Google-AJAX-Search-API" id="wt_y">developer forum</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-3365486810773186368?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/where-is-my-current-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the AJAX Language API while Travelling</title>
		<link>https://googledata.org/google-ajax-api/using-the-ajax-language-api-while-travelling/</link>
		<comments>https://googledata.org/google-ajax-api/using-the-ajax-language-api-while-travelling/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 01:47:00 +0000</pubDate>
		<dc:creator><![CDATA[Derek Collison, Software Engineer]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Back in March we introduced the Google AJAX Language API, which you can use to incorporate translations from Google Translate into your projects. Lots of people have been excited about this API, including some engineers here at Google. Last Friday we r...]]></description>
				<content:encoded><![CDATA[Back in March we introduced the <a href="http://googleajaxsearchapi.blogspot.com/2008/03/introducing-ajax-language-api-tools-for.html">Google AJAX Language API</a>, which you can use to incorporate translations from <a href="http://translate.google.com/">Google Translate</a> into your projects. Lots of people have been excited about this API, including some engineers here at Google. Last Friday we released an iPhone interface for Google Translate built on top of the <a href="http://code.google.com/apis/ajaxlanguage/">AJAX Language API</a>. This interface exposes much of the functionality for languages translation in a simple UI for people to use on the go. To learn more, take look at <a href="http://googlemobile.blogspot.com/2008/08/google-translate-now-for-iphone.html">this post</a> on the Google Mobile blog.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-6565060085775957579?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/using-the-ajax-language-api-while-travelling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AJAX Libraries API Update</title>
		<link>https://googledata.org/google-ajax-api/ajax-libraries-api-update/</link>
		<comments>https://googledata.org/google-ajax-api/ajax-libraries-api-update/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 23:38:00 +0000</pubDate>
		<dc:creator><![CDATA[Ben Lisbakken]]></dc:creator>
				<category><![CDATA[Google Ajax API]]></category>
		<category><![CDATA[google ajax]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[What's better than making a drag/drop effect in Javascript that's compatible in all browsers?  Not making a drag/drop  effect in Javascript that's compatible in all browsers.  Save your ninja-code for another day and use the JQuery UI plugin that is no...]]></description>
				<content:encoded><![CDATA[What's better than making a drag/drop effect in Javascript that's compatible in all browsers?  Not making a drag/drop  effect in Javascript that's compatible in all browsers.  Save your ninja-code for another day and use the JQuery UI plugin that is now hosted on our <a href="http://code.google.com/apis/ajaxlibs/">AJAX Libraries API</a>!  As usual, your users will get a performance boost when you use JQuery UI through our API, so get started by checking out the <a href="http://code.google.com/apis/ajaxlibs/documentation/#jqueryUI">docs</a>.<br /><br />For those of you still waiting for a MooTools 1.2 update, we apologize for the delay.  In fact, we had been waiting to release JQuery UI so we could push it with MooTools 1.2.  What happened was that when MooTools released the 1.2 update, it had 1.2dev in the version string.  We contacted MooTools and they immediately fixed this.  However, Valerio Proietti over on their side has asked us to wait until 1.2.1 is out the door to flip the switch.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/29072373-4305366464133702755?l=googleajaxsearchapi.blogspot.com' alt='' /></div>]]></content:encoded>
			<wfw:commentRss>https://googledata.org/google-ajax-api/ajax-libraries-api-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
