<?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>HTML 5 &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/html-5/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>HTML5 geolocation &#8211; What If the User Doesn&#8217;t Share His Position?</title>
		<link>/2010/06/29/html5-geolocation-what-if-the-user-doesnt-share-his-position/</link>
		<comments>/2010/06/29/html5-geolocation-what-if-the-user-doesnt-share-his-position/#respond</comments>
		<pubDate>Tue, 29 Jun 2010 18:29:01 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Free software]]></category>
		<category><![CDATA[FTP clients]]></category>
		<category><![CDATA[Geo]]></category>
		<category><![CDATA[Geolocation]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[mobile phones]]></category>
		<category><![CDATA[Mozilla Firefox]]></category>
		<category><![CDATA[Technology/Internet]]></category>

		<guid isPermaLink="false">/?p=1720</guid>
		<description><![CDATA[HTML5 Geolocation So far we were used to expect something like this from our mobile phones with built-in GPS support. Every image or video clip then was automatically &#8220;tagged&#8221; with latitude &#38; longitude geo data. With HTML5 coming features we discover new cool things we can do with our browsers. Such cool thing is the &#8230; <a href="/2010/06/29/html5-geolocation-what-if-the-user-doesnt-share-his-position/" class="more-link">Continue reading <span class="screen-reader-text">HTML5 geolocation &#8211; What If the User Doesn&#8217;t Share His Position?</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/01/31/speed-up-the-javascript-it-can-change-dramatically-the-user-experience/" rel="bookmark" title="Speed up the JavaScript. It can change dramatically the user experience.">Speed up the JavaScript. It can change dramatically the user experience. </a></li>
<li><a href="/2011/02/04/reading-gps-latitude-and-longitude-from-image-and-video-files/" rel="bookmark" title="Reading GPS Latitude and Longitude from Image and Video Files">Reading GPS Latitude and Longitude from Image and Video Files </a></li>
<li><a href="/2010/02/24/storing-javascript-objects-in-html5-localstorage/" rel="bookmark" title="Storing JavaScript objects in html5 localStorage">Storing JavaScript objects in html5 localStorage </a></li>
<li><a href="/2010/03/04/does-firefox-play-mp4-h-264-within-the-html5-video-tag/" rel="bookmark" title="Does Firefox play mp4 h.264 within the HTML5 video tag?">Does Firefox play mp4 h.264 within the HTML5 video tag? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>HTML5 Geolocation</h2>
<p>So far we were used to expect something like this from our mobile phones with built-in GPS support. Every image or video clip then was automatically &#8220;tagged&#8221; with latitude &amp; longitude geo data. With HTML5 coming features we discover new cool things we can do with our browsers. Such cool thing is the geolocation.</p>
<p><a href="/wp-content/uploads/2010/06/geo-location.jpg"><img class="aligncenter size-full wp-image-1726" title="geo-location" src="/wp-content/uploads/2010/06/geo-location.jpg" alt="Geo Location" width="430" height="134" srcset="/wp-content/uploads/2010/06/geo-location.jpg 430w, /wp-content/uploads/2010/06/geo-location-300x93.jpg 300w" sizes="(max-width: 430px) 100vw, 430px" /></a></p>
<h2>Support</h2>
<p>As you may guess not every browser is supporting these HTML5 features, but out in the web there is quite good collection of tables comparing different browsers and their support level.</p>
<h2>Firefox</h2>
<p>This &#8211; as expected is a browser that supports this geo tagging. First of all you&#8217;ve to allow your browser to use your geo coordinates, as this can be private information.</p>
<p><a href="/wp-content/uploads/2010/06/browser-geo-location.png"><img class="aligncenter size-full wp-image-1728" title="browser-geo-location" src="/wp-content/uploads/2010/06/browser-geo-location.png" alt="Browser GEO Location" width="430" height="51" srcset="/wp-content/uploads/2010/06/browser-geo-location.png 430w, /wp-content/uploads/2010/06/browser-geo-location-300x35.png 300w" sizes="(max-width: 430px) 100vw, 430px" /></a></p>
<p>Once you do it you can access the geo coordinates, which by the way are quite accurate, with JavaScript.</p>
<h2>What if you don&#8217;t share your position?</h2>
<p>What happens if you don&#8217;t want to share your position? Actually I ran in this situation and as my application waited the coordinates &#8211; it was completely blocked.</p>
<p>The examples doesn&#8217;t show you something special. They simply describe how to get the coordinates, but doesn&#8217;t tell you what if the user doesn&#8217;t click on the &#8220;share&#8221; button.</p>
<pre lang="javascript">
if (!!navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(getPos);
}
...

function getPos(position) 
{
    position.coords.latitude;
    position.coords.longitude;
}
</pre>
<p>Of course getPos() can be simply an anonymous function:</p>
<pre lang="javascript">
if (!!navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(function(position) {
            position.coords.latitude;
            position.coords.longitude;
        });
}
</pre>
<p>Only the Firefox documentation tells you how to handle errors, simply add one more parameter &#8211; callback, for getCurrentPosition() method:</p>
<pre lang="javascript">
if (!!navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(getPos, onError);
}
...

function getPos(position) 
{
    position.coords.latitude;
    position.coords.longitude;
}

function onError()
{
   // handle error
}
</pre>
<p>Now you know where you don&#8217;t want to be.</p>
<p><a href="/wp-content/uploads/2010/06/map-marker.jpeg"><img src="/wp-content/uploads/2010/06/map-marker.jpeg" alt="Map Marker" title="map-marker" width="430" height="286" class="aligncenter size-full wp-image-1731" srcset="/wp-content/uploads/2010/06/map-marker.jpeg 430w, /wp-content/uploads/2010/06/map-marker-300x199.jpg 300w" sizes="(max-width: 430px) 100vw, 430px" /></a></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/01/31/speed-up-the-javascript-it-can-change-dramatically-the-user-experience/" rel="bookmark" title="Speed up the JavaScript. It can change dramatically the user experience.">Speed up the JavaScript. It can change dramatically the user experience. </a></li>
<li><a href="/2011/02/04/reading-gps-latitude-and-longitude-from-image-and-video-files/" rel="bookmark" title="Reading GPS Latitude and Longitude from Image and Video Files">Reading GPS Latitude and Longitude from Image and Video Files </a></li>
<li><a href="/2010/02/24/storing-javascript-objects-in-html5-localstorage/" rel="bookmark" title="Storing JavaScript objects in html5 localStorage">Storing JavaScript objects in html5 localStorage </a></li>
<li><a href="/2010/03/04/does-firefox-play-mp4-h-264-within-the-html5-video-tag/" rel="bookmark" title="Does Firefox play mp4 h.264 within the HTML5 video tag?">Does Firefox play mp4 h.264 within the HTML5 video tag? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/06/29/html5-geolocation-what-if-the-user-doesnt-share-his-position/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure localStorage? Now that&#8217;s a good question!</title>
		<link>/2010/04/13/secure-localstorage-now-thats-a-good-question/</link>
		<comments>/2010/04/13/secure-localstorage-now-thats-a-good-question/#respond</comments>
		<pubDate>Tue, 13 Apr 2010 15:18:49 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Nicholas Zakas]]></category>

		<guid isPermaLink="false">/?p=1438</guid>
		<description><![CDATA[Nicholas Zakas posted today a very very interesting post about one of the most interesting and useful features in HTML5 &#8211; localStorage. What&#8217;s really impressing is that everybody&#8217;s using it, including me, with no fear of security. But security is never strong enough, so it&#8217;s quite interesting to listen up the guru! I recently posted &#8230; <a href="/2010/04/13/secure-localstorage-now-thats-a-good-question/" class="more-link">Continue reading <span class="screen-reader-text">Secure localStorage? Now that&#8217;s a good question!</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/02/24/storing-javascript-objects-in-html5-localstorage/" rel="bookmark" title="Storing JavaScript objects in html5 localStorage">Storing JavaScript objects in html5 localStorage </a></li>
<li><a href="/2010/02/25/jquery-localstorage-plugin/" rel="bookmark" title="jQuery localStorage plugin">jQuery localStorage plugin </a></li>
<li><a href="/2010/02/26/jquery-localstorage-plugin-alpha/" rel="bookmark" title="jQuery localStorage plugin (alpha)">jQuery localStorage plugin (alpha) </a></li>
<li><a href="/2009/11/13/writing-a-jquery-plugin-part-1-good-practices/" rel="bookmark" title="Writing a jQuery plugin &#8211; (part 1). Good practices!">Writing a jQuery plugin &#8211; (part 1). Good practices! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Nicholas Zakas posted today a very very interesting <a href="http://www.nczonline.net/blog/2010/04/13/towards-more-secure-client-side-data-storage/" target="_blank">post</a> about one of the most interesting and useful features in HTML5 &#8211; localStorage. What&#8217;s really impressing is that everybody&#8217;s using it, including me, with no fear of security. But security is never strong enough, so it&#8217;s quite interesting to listen up the guru!</p>
<p>I recently <a href="/2010/02/26/jquery-localstorage-plugin-alpha/">posted</a> a localStorage wrapper for jQuery in form of a simple plugin. What I miss there is the security.</p>
<p>Definitely I&#8217;ve to change it a bit!</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/02/24/storing-javascript-objects-in-html5-localstorage/" rel="bookmark" title="Storing JavaScript objects in html5 localStorage">Storing JavaScript objects in html5 localStorage </a></li>
<li><a href="/2010/02/25/jquery-localstorage-plugin/" rel="bookmark" title="jQuery localStorage plugin">jQuery localStorage plugin </a></li>
<li><a href="/2010/02/26/jquery-localstorage-plugin-alpha/" rel="bookmark" title="jQuery localStorage plugin (alpha)">jQuery localStorage plugin (alpha) </a></li>
<li><a href="/2009/11/13/writing-a-jquery-plugin-part-1-good-practices/" rel="bookmark" title="Writing a jQuery plugin &#8211; (part 1). Good practices!">Writing a jQuery plugin &#8211; (part 1). Good practices! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/04/13/secure-localstorage-now-thats-a-good-question/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 video support. Detecting, playing and progressive enhancement!</title>
		<link>/2010/02/26/html5-video-support-detecting-playing-and-progressive-enhancement/</link>
		<comments>/2010/02/26/html5-video-support-detecting-playing-and-progressive-enhancement/#respond</comments>
		<pubDate>Fri, 26 Feb 2010 13:31:36 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[Adobe Flash Player]]></category>
		<category><![CDATA[Flash Video]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[HTML element]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[Web browser]]></category>

		<guid isPermaLink="false">/?p=1154</guid>
		<description><![CDATA[HTML5 video HTML5 is mentioned as entirely new &#8220;thing&#8221; out in the web, but what it actually means is rather a collection of new, unknown for the current HTML version, features. One of the most interesting and used things in HTML5 are the support of a video in a entirely new &#8220;video&#8221; tag. Until now &#8230; <a href="/2010/02/26/html5-video-support-detecting-playing-and-progressive-enhancement/" class="more-link">Continue reading <span class="screen-reader-text">HTML5 video support. Detecting, playing and progressive enhancement!</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/03/04/does-firefox-play-mp4-h-264-within-the-html5-video-tag/" rel="bookmark" title="Does Firefox play mp4 h.264 within the HTML5 video tag?">Does Firefox play mp4 h.264 within the HTML5 video tag? </a></li>
<li><a href="/2010/01/23/youtube-and-vimeo-goes-html5-with-video-tag-usage-catch-them-up/" rel="bookmark" title="YouTube and Vimeo goes HTML5 with video tag usage! Catch them up!">YouTube and Vimeo goes HTML5 with video tag usage! Catch them up! </a></li>
<li><a href="/2010/03/05/video-sites-must-use-mp4-and-only-mp4/" rel="bookmark" title="Video sites must use &#8230; mp4 and only mp4!">Video sites must use &#8230; mp4 and only mp4! </a></li>
<li><a href="/2011/01/27/few-thoughts-on-web-video/" rel="bookmark" title="Few Thoughts on Web Video">Few Thoughts on Web Video </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>HTML5 video</h2>
<p>HTML5 is mentioned as entirely new &#8220;thing&#8221; out in the web, but what it actually means is rather a collection of new, unknown for the current HTML version, features. One of the most interesting and used things in HTML5 are the support of a video in a entirely new &#8220;video&#8221; tag. Until now the playing of a video was either with Flash player or with Quick Time. But in both cases it relied on a third party plugins. Of course normally the question about performance was inevitable. Which is faster? But imagine we didn&#8217;t have the IMG tag? This give you the answer &#8211; using third party plugins always slows down the page, and today most of the web is based on video sharing and therefore the browsers become slower!</p>
<h2>Performance of HTML5 video tag against Flash video players</h2>
<p>As I mentioned above the performance of HTML5 video should be way better than the performance of any Flash video player. To be more precise I&#8217;ll reference an article from <a title="ajaxian" href="http://ajaxian.com/" target="_blank">ajaxian.com</a>, where the author points on his turn an interesting <a href="http://ajaxian.com/archives/i-cant-believe-its-not-flash" target="_blank">presentation</a>. Indeed the performance of HTML5 video was way, way better:</p>
<p><a href="/wp-content/uploads/2010/02/flashhtml5video.png"><img class="aligncenter size-medium wp-image-1155" title="flashhtml5video" src="/wp-content/uploads/2010/02/flashhtml5video-300x224.png" alt="" width="300" height="224" srcset="/wp-content/uploads/2010/02/flashhtml5video-300x224.png 300w, /wp-content/uploads/2010/02/flashhtml5video.png 504w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>But sometimes this doesn&#8217;t resolves all the problems. Normally with this &#8220;new&#8221; technique of putting a video into the page, come some additional issues.</p>
<p>First of all there are many codecs that the browser should support and almost always there is something &#8220;your&#8221; browser don&#8217;t support. That makes the task bigger. Now you should support more and more video file formats for the different browsers. And yet another problem is the detection of this codec support.</p>
<h2>Detection and integration</h2>
<p>Lucky enough, I found a great article and tutorial describing how to integrate HTML5 video with progressive enhancement. First of all you can check for it&#8217;s support than downgrade to Quick Time and Flash and if the client doesn&#8217;t support even that &#8211; render an image.</p>
<p>You can find the source <a href="http://camendesign.com/code/video_for_everybody" target="_blank">here.</a></p>
<p>Thanks to this technique you can fully integrate new video tag into your page. Remember that most of the clients for sure will be happy to watch video in a more user friendly manner.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/03/04/does-firefox-play-mp4-h-264-within-the-html5-video-tag/" rel="bookmark" title="Does Firefox play mp4 h.264 within the HTML5 video tag?">Does Firefox play mp4 h.264 within the HTML5 video tag? </a></li>
<li><a href="/2010/01/23/youtube-and-vimeo-goes-html5-with-video-tag-usage-catch-them-up/" rel="bookmark" title="YouTube and Vimeo goes HTML5 with video tag usage! Catch them up!">YouTube and Vimeo goes HTML5 with video tag usage! Catch them up! </a></li>
<li><a href="/2010/03/05/video-sites-must-use-mp4-and-only-mp4/" rel="bookmark" title="Video sites must use &#8230; mp4 and only mp4!">Video sites must use &#8230; mp4 and only mp4! </a></li>
<li><a href="/2011/01/27/few-thoughts-on-web-video/" rel="bookmark" title="Few Thoughts on Web Video">Few Thoughts on Web Video </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/02/26/html5-video-support-detecting-playing-and-progressive-enhancement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery localStorage plugin</title>
		<link>/2010/02/25/jquery-localstorage-plugin/</link>
		<comments>/2010/02/25/jquery-localstorage-plugin/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 09:44:21 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Markup languages]]></category>

		<guid isPermaLink="false">/?p=1145</guid>
		<description><![CDATA[I&#8217;ve decided to wrap the functionality of HTML5 localStorage in a jQuery plugin, with the simple functionality of a lifetime period for every cache. I&#8217;m going to post only the pre-release with the idea to clean up the code in the recent future. (function(jQuery) { var supported = true; if (typeof localStorage == 'undefined' &#124;&#124; &#8230; <a href="/2010/02/25/jquery-localstorage-plugin/" class="more-link">Continue reading <span class="screen-reader-text">jQuery localStorage plugin</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/02/26/jquery-localstorage-plugin-alpha/" rel="bookmark" title="jQuery localStorage plugin (alpha)">jQuery localStorage plugin (alpha) </a></li>
<li><a href="/2010/02/24/storing-javascript-objects-in-html5-localstorage/" rel="bookmark" title="Storing JavaScript objects in html5 localStorage">Storing JavaScript objects in html5 localStorage </a></li>
<li><a href="/2010/04/13/secure-localstorage-now-thats-a-good-question/" rel="bookmark" title="Secure localStorage? Now that&#8217;s a good question!">Secure localStorage? Now that&#8217;s a good question! </a></li>
<li><a href="/2010/02/17/clickoutside-jquery-plugin/" rel="bookmark" title="clickoutside jQuery plugin">clickoutside jQuery plugin </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve decided to wrap the functionality of HTML5 localStorage in a jQuery plugin, with the simple functionality of a lifetime period for every cache. I&#8217;m going to post only the pre-release with the idea to clean up the code in the recent future.</p>
<blockquote>
<pre>(function(jQuery) {

   var supported = true;
   if (typeof localStorage == 'undefined' || typeof JSON == 'undefined')
      supported = false;
   else
      var ls = localStorage;

   this.setItem = function(key, value, lifetime) {
      if (!supported)
         return false;

      ls.setItem(key, JSON.stringify(value));
      var time = new Date();
      ls.setItem('meta_ct_'+key, time.getTime());
      ls.setItem('meta_lt_'+key, lifetime);
   };

   this.getItem = function(key) {
      var time = new Date();
      if (!supported || time.getTime() - ls.getItem('meta_ct_'+key) &gt; ls.getItem('meta_lt_'+key))
         return false;
      return JSON.parse(ls.getItem(key));
   };

   this.removeItem = function(key) {
      return supported &amp;&amp; ls.removeItem(key);
   };

   jQuery.localStorage = this;

})(jQuery);

if (!$.localStorage.getItem('test')) {
   $.localStorage.setItem('test', ['stoimen'], 600000);
   alert('dynamic');
} else {
   alert('from cache');
}
</pre>
</blockquote>
<p><strong>Any feedback is welcome! Yet again the code isn&#8217;t tested at all.</strong></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/02/26/jquery-localstorage-plugin-alpha/" rel="bookmark" title="jQuery localStorage plugin (alpha)">jQuery localStorage plugin (alpha) </a></li>
<li><a href="/2010/02/24/storing-javascript-objects-in-html5-localstorage/" rel="bookmark" title="Storing JavaScript objects in html5 localStorage">Storing JavaScript objects in html5 localStorage </a></li>
<li><a href="/2010/04/13/secure-localstorage-now-thats-a-good-question/" rel="bookmark" title="Secure localStorage? Now that&#8217;s a good question!">Secure localStorage? Now that&#8217;s a good question! </a></li>
<li><a href="/2010/02/17/clickoutside-jquery-plugin/" rel="bookmark" title="clickoutside jQuery plugin">clickoutside jQuery plugin </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/02/25/jquery-localstorage-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Storing JavaScript objects in html5 localStorage</title>
		<link>/2010/02/24/storing-javascript-objects-in-html5-localstorage/</link>
		<comments>/2010/02/24/storing-javascript-objects-in-html5-localstorage/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 15:39:31 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Cloud standards]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[JavaScript programming language]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Markup languages]]></category>
		<category><![CDATA[Mozilla Firefox]]></category>
		<category><![CDATA[Mozilla Firefox 3.5]]></category>
		<category><![CDATA[Technology/Internet]]></category>

		<guid isPermaLink="false">/?p=1138</guid>
		<description><![CDATA[There is a rising new age of HTML5, which comes with very nice features as video tag and localStorage. What localStorage is? In fact we have been waiting for long time to have something that give us the power of storing more and more on the client side. That&#8217;s because the net is becoming larger &#8230; <a href="/2010/02/24/storing-javascript-objects-in-html5-localstorage/" class="more-link">Continue reading <span class="screen-reader-text">Storing JavaScript objects in html5 localStorage</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/02/25/jquery-localstorage-plugin/" rel="bookmark" title="jQuery localStorage plugin">jQuery localStorage plugin </a></li>
<li><a href="/2010/02/26/jquery-localstorage-plugin-alpha/" rel="bookmark" title="jQuery localStorage plugin (alpha)">jQuery localStorage plugin (alpha) </a></li>
<li><a href="/2010/08/11/quick-look-at-javascript-objects/" rel="bookmark" title="Quick Look at JavaScript Objects">Quick Look at JavaScript Objects </a></li>
<li><a href="/2010/04/13/secure-localstorage-now-thats-a-good-question/" rel="bookmark" title="Secure localStorage? Now that&#8217;s a good question!">Secure localStorage? Now that&#8217;s a good question! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>There is a rising new age of HTML5, which comes with very nice features as video tag and localStorage. What localStorage is? In fact we have been waiting for long time to have something that give us the power of storing more and more on the client side. That&#8217;s because the net is becoming larger and therefore heavy.</p>
<p>Imagine if you have the possibility to store large JSON returned from an AJAX call on the client. That&#8217;s now reality with the localStorage object in HTML5 and it can be accessed with something like this code:</p>
<pre lang="javascript">localStorage.setItem(key, value);
alert(localStorage.getItem(key));
</pre>
<h2>Can we store entire objects?</h2>
<p>Yes there is a way extending a bit the logic of the code above. The localStorage in fact stores only strings, but what about arrays and objects. You can additionally use JSON global objects and its two methods &#8211; stringify and parse:</p>
<pre lang="javascript">var a = JSON.stringify({name:'obj'});
alert(JSON.parse(a));
</pre>
<h2>Do browsers support all that?</h2>
<p>Of course &#8230; not! localStorage is supported by Firefox 3.5+, Chrome 2+, Safari 4+ and MSIE 8+. The solution is not to rely on browser version, but to check for object existence, and than to combine both techniques:</p>
<pre lang="javascript">localStorage.setItem('a', JSON.stringify({ name : 'obj' }));
alert(JSON.parse(localStorage.getItem('a')));
</pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/02/25/jquery-localstorage-plugin/" rel="bookmark" title="jQuery localStorage plugin">jQuery localStorage plugin </a></li>
<li><a href="/2010/02/26/jquery-localstorage-plugin-alpha/" rel="bookmark" title="jQuery localStorage plugin (alpha)">jQuery localStorage plugin (alpha) </a></li>
<li><a href="/2010/08/11/quick-look-at-javascript-objects/" rel="bookmark" title="Quick Look at JavaScript Objects">Quick Look at JavaScript Objects </a></li>
<li><a href="/2010/04/13/secure-localstorage-now-thats-a-good-question/" rel="bookmark" title="Secure localStorage? Now that&#8217;s a good question!">Secure localStorage? Now that&#8217;s a good question! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/02/24/storing-javascript-objects-in-html5-localstorage/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>YouTube and Vimeo goes HTML5 with video tag usage! Catch them up!</title>
		<link>/2010/01/23/youtube-and-vimeo-goes-html5-with-video-tag-usage-catch-them-up/</link>
		<comments>/2010/01/23/youtube-and-vimeo-goes-html5-with-video-tag-usage-catch-them-up/#respond</comments>
		<pubDate>Sat, 23 Jan 2010 07:00:33 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[Bart Allen]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Google Chrome]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTML 5]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[Technology/Internet]]></category>
		<category><![CDATA[Video hosting]]></category>
		<category><![CDATA[Vimeo]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[web developers]]></category>
		<category><![CDATA[World Wide Web]]></category>
		<category><![CDATA[YouTube]]></category>
		<category><![CDATA[YouTube Inc]]></category>

		<guid isPermaLink="false">/?p=936</guid>
		<description><![CDATA[What better example than that coming both from YouTube and Vimeo. Although video tag is not supported except under Safari and Chrome, that&#8217;s the future everyone&#8217;s going to embed sooner or later. And if these &#8220;big players&#8221; are going that way, don&#8217;t hesitate to follow them! HTML5 is really what we as web developers were &#8230; <a href="/2010/01/23/youtube-and-vimeo-goes-html5-with-video-tag-usage-catch-them-up/" class="more-link">Continue reading <span class="screen-reader-text">YouTube and Vimeo goes HTML5 with video tag usage! Catch them up!</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2010/05/21/check-youtube-video-existence-with-zend_gdata_youtube/" rel="bookmark" title="Check YouTube Video Existence with Zend_Gdata_YouTube">Check YouTube Video Existence with Zend_Gdata_YouTube </a></li>
<li><a href="/2010/03/04/does-firefox-play-mp4-h-264-within-the-html5-video-tag/" rel="bookmark" title="Does Firefox play mp4 h.264 within the HTML5 video tag?">Does Firefox play mp4 h.264 within the HTML5 video tag? </a></li>
<li><a href="/2010/02/26/html5-video-support-detecting-playing-and-progressive-enhancement/" rel="bookmark" title="HTML5 video support. Detecting, playing and progressive enhancement!">HTML5 video support. Detecting, playing and progressive enhancement! </a></li>
<li><a href="/2010/03/05/video-sites-must-use-mp4-and-only-mp4/" rel="bookmark" title="Video sites must use &#8230; mp4 and only mp4!">Video sites must use &#8230; mp4 and only mp4! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>What better example than that coming both from YouTube and Vimeo. Although video tag is not supported except under Safari and Chrome, that&#8217;s the future everyone&#8217;s going to embed sooner or later.</p>
<p>And if these &#8220;big players&#8221; are going that way, don&#8217;t hesitate to follow them! HTML5 is really what we as web developers were waiting for so long and even all of the problems during its standardization process it&#8217;s really cool there will be tags like video.</p>
<p>What YouTube is doing today, perhaps will seem normal to everyone tomorrow. However there are some questions still with no answer, as where the flash possibility to add ads into the player is going?! But we&#8217;re about to see great things from these two sites!</p>
<p>Just check out these two links:</p>
<p><a title="YouTube HTML5" href="http://www.youtube.com/html5" target="_blank">Youtube HTML5</a></p>
<p><a title="Vimeo HTML5" href="http://news.cnet.com/8301-27076_3-10439048-248.html" target="_blank">Vimeo</a></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2010/05/21/check-youtube-video-existence-with-zend_gdata_youtube/" rel="bookmark" title="Check YouTube Video Existence with Zend_Gdata_YouTube">Check YouTube Video Existence with Zend_Gdata_YouTube </a></li>
<li><a href="/2010/03/04/does-firefox-play-mp4-h-264-within-the-html5-video-tag/" rel="bookmark" title="Does Firefox play mp4 h.264 within the HTML5 video tag?">Does Firefox play mp4 h.264 within the HTML5 video tag? </a></li>
<li><a href="/2010/02/26/html5-video-support-detecting-playing-and-progressive-enhancement/" rel="bookmark" title="HTML5 video support. Detecting, playing and progressive enhancement!">HTML5 video support. Detecting, playing and progressive enhancement! </a></li>
<li><a href="/2010/03/05/video-sites-must-use-mp4-and-only-mp4/" rel="bookmark" title="Video sites must use &#8230; mp4 and only mp4!">Video sites must use &#8230; mp4 and only mp4! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2010/01/23/youtube-and-vimeo-goes-html5-with-video-tag-usage-catch-them-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
