<?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>Amphee Web Tech Pvt. Ltd. &#187; html5</title>
	<atom:link href="http://blog.amphee.com/index.php/tag/html5/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.amphee.com</link>
	<description></description>
	<lastBuildDate>Wed, 04 May 2011 05:34:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
	
	<!-- google ad injected by adsense-optimizer http://www.adsenseoptimizer.de -->
	<div  style="padding:3px; display: block; margin-left: auto; margin-right: auto; text-align: center;"><!-- Ad number: 1 --><script type="text/javascript"><!--
    	 
    	google_ad_client = "pub-0687753067406098"; google_alternate_color = "FFFFFF";
		google_ad_width = 468; google_ad_height = 60;
		google_ad_format = "468x60_as"; google_ad_type = "text_image";
		google_ad_channel =""; google_color_border = "A6C9E2";
		google_color_link = "FF3019"; google_color_bg = "FFFFFF";
		google_color_text = "000000"; google_color_url = "7EB544";
		google_ui_features = "rc:0"; //--></script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>	<item>
		<title>HTML5 Samples</title>
		<link>http://blog.amphee.com/index.php/2010/07/16/html5-samples/</link>
		<comments>http://blog.amphee.com/index.php/2010/07/16/html5-samples/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 07:15:45 +0000</pubDate>
		<dc:creator>kiran vadariya</dc:creator>
				<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[amphee]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[symfony development india]]></category>
		<category><![CDATA[symfony web devleopment india]]></category>

		<guid isPermaLink="false">http://blog.amphee.com/?p=166</guid>
		<description><![CDATA[


Step one
You can use standard object  testing to determine if the browser supports GeoLocation.
&#60;script&#62;
    /**
    * This function is the callback which is passed the result from the .getCurrentPosition()
    * function. The pos argument can contain more information than just the latitude/longitude,
    [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><div id="content">
<div id="post-357">
<div id="content_div-357">
<h4>Step one</h4>
<p>You can use standard object  testing to determine if the browser supports GeoLocation.</p>
<pre>&lt;script&gt;
    /**
    * This function is the callback which is passed the result from the .getCurrentPosition()
    * function. The pos argument can contain more information than just the latitude/longitude,
    * such as altitude, accuracy and speed information.
    *
    * @param object pos The result from the getCurrentPosition() call
    */
    function myCallback(pos)
    {
        var myLatitude  = pos.latitude;
        var myLongitude = pos.longitude;
    }

    /**
    * Test for GeoLocation support and make the call
    */
    if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(myCallback);
    } else {
        alert("Sorry, your browser doesn't appear to support GeoLocation");
    }

&lt;/script&gt;
</pre>
<h4>Step two</h4>
<p>Once you have tested for it, we can then retrieve the position using  the getCurrentPosition() method. You pass this method     a callback  function which you define. This callback function is given an object (if  successful), with various properties:</p>
<ul>
<li>latitude</li>
<li>longitude</li>
<li>altitude (optional)</li>
<li>accuracy</li>
<li>altitudeAccuracy (optional)</li>
<li>heading (optional)</li>
<li>speed (optional)</li>
<li>timestamp</li>
</ul>
</div>
</div>
<div>more  detail go to</div>
<div><a title="click here" href="http://www.html5samples.com/2010/04/html5-geolocation-introduction/" target="_blank">http://www.html5samples.com/2010/04/html5-geolocation-introduction/</a></div>
</div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://blog.amphee.com/index.php/2010/07/16/html5-samples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

