<?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>Codrops &#187; google API</title>
	<atom:link href="http://tympanus.net/codrops/tag/google-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://tympanus.net/codrops</link>
	<description>Useful resources and inspiration for creative minds</description>
	<lastBuildDate>Wed, 23 May 2012 09:46:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Collective: jMapping: jQuery plugin for creating Google Maps from semantic markup</title>
		<link>http://tympanus.net/codrops/2010/07/03/collective-jmapping-jquery-plugin-for-creating-google-maps-from-semantic-markup/</link>
		<comments>http://tympanus.net/codrops/2010/07/03/collective-jmapping-jquery-plugin-for-creating-google-maps-from-semantic-markup/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 08:25:06 +0000</pubDate>
		<dc:creator>Community</dc:creator>
				<category><![CDATA[Collective]]></category>
		<category><![CDATA[google API]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=2510</guid>
		<description><![CDATA[This plugin is designed for quick development of a page that implements a Google Map with a list of the locations that are specified within the HTML. The plugin tries to allow as much graceful degradation as possible by having the HTML be as semantic as possible. The plugin expect the HTML for the locations [...]]]></description>
			<content:encoded><![CDATA[<p><!-- Digg Digg Disabled --></p>
<p><a href="http://vigetlabs.github.com/jmapping/"><img src="http://tympanus.net/codrops/wp-content/uploads/2010/07/jmapping.gif" alt="" title="jmapping" width="580" height="407" class="aligncenter size-full wp-image-2511" /></a></p>
<p>This plugin is designed for quick development of a page that implements a Google Map with a list of the locations that are specified within the HTML.<br />
The plugin tries to allow as much graceful degradation as possible by having the HTML be as semantic as possible. The plugin expect the HTML for the locations to be grouped under a common element. Additionally, it expects the links and Map Info Window content to be grouped under the location elements. It also expects the necessary metadata to be on the location element. This way the HTML semantically reflects that all of those parts and information are associated with the specific location or place.</p>
<h3>Source</h3>
<p><a href="http://vigetlabs.github.com/jmapping/" target="_blank">http://vigetlabs.github.com/jmapping/</a></p>
<h3>Demo</h3>
<p><a href="http://vigetlabs.github.com/jmapping/examples/" target="_blank">http://vigetlabs.github.com/jmapping/examples/</a></p>
<div style="margin-bottom:100px;"></div>
<p><!-- wp_ad_camp_1 --></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2010/07/03/collective-jmapping-jquery-plugin-for-creating-google-maps-from-semantic-markup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jTextTranslate: A jQuery Translation Plugin</title>
		<link>http://tympanus.net/codrops/2009/11/30/jtexttranslate-a-jquery-translation-plugin/</link>
		<comments>http://tympanus.net/codrops/2009/11/30/jtexttranslate-a-jquery-translation-plugin/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 12:59:25 +0000</pubDate>
		<dc:creator>cody</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[google API]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=906</guid>
		<description><![CDATA[The double-click functionality in the New York Times was somehow fascinating but also highly discussed because it boldly used the browser functionality to get the definitions of words. Fortunately, the double click now causes not an immediate popout to appear but lets the user confirm by showing an interrogation mark. This inspired me to create [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-914" title="jTextTranslate copy" src="http://tympanus.net/codrops/wp-content/uploads/2009/11/jTextTranslate-copy.gif" alt="jTextTranslate copy" width="542" height="344" /></p>
<p>The double-click functionality in the <a href="http://www.nytimes.com/" target="_blank">New York Times</a> was somehow fascinating but also highly <a href="http://www.joshnichols.com/blog/entry/new-york-times-double-click-dictionary/" target="_blank">discussed</a> because it boldly used the browser functionality to get the definitions of words. Fortunately, the double click now causes not an immediate popout to appear but lets the user confirm by showing an interrogation mark.</p>
<p>This inspired me to create a new jQuery plugin for translating text. Imagine, how users that don&#8217;t have English as their first language could profit from an integrated functionality to translate e.g. an article.</p>
<p><span id="more-906"></span></p>
<p>The plugin works with the <a href="http://code.google.com/apis/ajaxlanguage/documentation/" target="_blank">Google Language API</a> and can be used to translate a text in all the languages provided by the API.</p>
<p>You can call the plugin like this:</p>
<p><code>$(element).translate()</code></p>
<p>And you can configure the plugin in the following way:</p>
<ol>
<li><strong>original</strong>: the language shortage of the initial language (default is &#8220;en&#8221;)</li>
<li><strong>notfound</strong>: the message shown when no translation was found</li>
<li><strong>title</strong>: The title of the translation overlay</li>
<li><strong>firstOptionText</strong>: the text shown as first option in the languages drop down</li>
</ol>
<p><a class="demo" href="http://tympanus.net/jTextTranslate/" target="_blank">Demo</a><a class="download" href="http://tympanus.net/jTextTranslate/jTextTranslate.zip">Download</a></p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/11/30/jtexttranslate-a-jquery-translation-plugin/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Google API Showcase: The Live Translator</title>
		<link>http://tympanus.net/codrops/2009/09/30/google-api-showcase-live-translator/</link>
		<comments>http://tympanus.net/codrops/2009/09/30/google-api-showcase-live-translator/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 09:32:01 +0000</pubDate>
		<dc:creator>Mary Lou</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[google API]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://tympanus.net/codrops/?p=636</guid>
		<description><![CDATA[The API of Google has a lot of useful usage examples. This showcase demonstrates how we can use the Google AJAX Language API to build a live translator that allows us to translate text from one language into the other &#8211; and that almost on the fly. Check out the demo here: DEMO Here is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tympanus.net/codrops/wp-content/uploads/2009/09/livetranslator/translate.html" target="_blank"><img class="aligncenter size-full wp-image-1000" title="Live translator" src="http://tympanus.net/codrops/wp-content/uploads/2009/09/livetranslator/livetranslator.jpg" alt="" width="538" height="361" /></a></p>
<p>The API of Google has a lot of useful usage examples. This showcase demonstrates how we can use the <a href="http://code.google.com/apis/ajaxlanguage/">Google AJAX Language API</a> to build a live translator that allows us to translate text from one language into the other &#8211; and that almost on the fly.</p>
<p><span id="more-636"></span></p>
<p>Check out the demo here: <a href="http://tympanus.net/codrops/wp-content/uploads/2009/09/livetranslator/translate.html" target="_blank">DEMO</a></p>
<p>Here is the jQuery part:</p>
<pre class="brush: js">(function($) {
  $.fn.translate = function(options) {
		 var opts = $.extend({}, $.fn.translate.defaults, options);
		 return this.each(function() {
			$this = $(this);
			$("select#_from option[selected]").removeAttr("selected");
			$("select#_from option[value='en']").attr("selected", "selected");
			$("select#_to option[selected]").removeAttr("selected");
			$("select#_to option[value='es']").attr("selected", "selected");
			$('#content',$this).val("");

			$(document).keypress(function(e){
				if(e.which == 13){
					$.fn.translate.initialize();
					$("#content").val("");
				}
			});
			$('#_from',$this).change(function(e){
				$.fn.translate.defaults._from_lang = $(this).val();
			});
			$('#_to',$this).change(function(e){
				$.fn.translate.defaults._to_lang = $(this).val();
			});
		 });
  };
  $.fn.translate.initialize = function() {
	  var content = $('#content');
	  var text = $("#content").val();
	  google.language.translate(text, $.fn.translate.defaults._from_lang, $.fn.translate.defaults._to_lang, function(result) {
	    var translated = $("#translation");
		var translated_original = $("#translation_original");
	    if (result.translation) {
	      (translated.html() != "")?translated.append("
"+result.translation):translated.append(result.translation);
		  (translated_original.html() != "")?translated_original.append("
"+text):translated_original.append(text);
	    }
		else{
		  (translated.html() != "")?translated.append("
"+text):translated.append(text);
		  (translated_original.html() != "")?translated_original.append("
"+text):translated_original.append(text);
		}
	  });
  }
  $.fn.translate.defaults = {
    _from_lang	: 'en',
    _to_lang	: 'es'
  };
})(jQuery);</pre>
<p>Note that this is just a demo. Not all the languages that are supported by the Google AJAX Language API are included here.</p>
<p>Enjoy!</p>
<p><div id="bsap_1266918" class="bsarocks bsap_af25dfd2f1908889af7a1aa5f4dcbd9e"></div><div style="clear:both;"></div><br />
<br/><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://tympanus.net/codrops/2009/09/30/google-api-showcase-live-translator/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  tympanus.net/codrops/tag/google-api/feed/ ) in 0.21470 seconds, on May 23rd, 2012 at 2:22 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 23rd, 2012 at 3:22 pm UTC -->
