<?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 Tutorial &#187; Tutorials</title>
	<atom:link href="http://html5tutorial.net/category/tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://html5tutorial.net</link>
	<description>Tutorials, Tips &#38; News for the Designer</description>
	<lastBuildDate>Sat, 05 May 2012 10:21:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How HTML5 Aids Mobile Financial App Development</title>
		<link>http://html5tutorial.net/news/how-html5-aids-mobile-financial-app-development.html</link>
		<comments>http://html5tutorial.net/news/how-html5-aids-mobile-financial-app-development.html#comments</comments>
		<pubDate>Wed, 28 Mar 2012 18:59:59 +0000</pubDate>
		<dc:creator>the Editor</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[financial apps]]></category>
		<category><![CDATA[HTML 5]]></category>

		<guid isPermaLink="false">http://html5tutorial.net/?p=483</guid>
		<description><![CDATA[HTML5 Series- Part 2: How HTML5 Aids Mobile Financial App Development This is our second post in the HTML5 series. There are number of new tags in HTML5 that aid in the development of mobile financial apps. In this post, I aim to explain these new HTML5 tags and how they facilitate the building of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.xignite.com/market-data/html5-series-part-2-how-html5-aids-mobile-financial-app-development/" target="_blank">HTML5 Series- Part 2: How HTML5 Aids Mobile Financial App Development</a></p>
<p><img class="alignnone  wp-image-486" title="HTML5-based Financial App" src="http://html5tutorial.net/wp-content/uploads/2012/03/image00.png" alt="image00 How HTML5 Aids Mobile Financial App Development" width="491" height="369" /></p>
<p>This is our second post in the HTML5 series. There are number of new tags in HTML5 that aid in the development of mobile financial apps. In this post, I aim to explain these new HTML5 tags and how they facilitate the building of fully functional financial apps with native user experience.</p>
<p>We partnered with our friends at <a href="http://openf.in/" target="_blank">OpenFin</a>, to develop a HTML5-based mobile app. They developed a HTML5-based financial app (PNL tool) for the iPad. The app gets updated every five minutes and provides quotes for securities across multiple asset classes (stock, bonds, options and futures). The app was developed in 2 weeks flat.  As they say, seeing is believing. To get a feel of how powerful HTML5 apps can be, download the app for free on your iPad.</p>
<p>The installation instructions and the download link for the HTML5 app are given below:</p>
<ol>
<li>On your iPad, visit: <a href="https://pnlhd.openf.in/app/pnlhd.html" target="_blank">https://pnlhd.openf.in/app/pnlhd.html</a>.</li>
<li>Tap on the install button.</li>
<li>Follow the 3-step instructions to install the mobile app.</li>
</ol>
<p>In my <a href="http://html5tutorial.net/news/developing-cross-platform-html5-based-financial-apps.html-cross-platform-html5-based-financial-apps-part-1/" target="_blank">last post</a>, I outlined why HTML5 is a good platform for developing mobile financial apps. The key advantages that HTML5 provides are summarized below:</p>
<ol>
<li>HTML5-based financial apps work cross-platform and a single mobile app lets you support clients across all mobile platforms (you might need to optimize the mobile app to counter differences like screen sizes on different devices).</li>
<li>HTML5-based financial apps let you take control of mobile app support, enhancing reliability, as you don’t have to depend on the platform provider (Apple store) for support.</li>
<li>HTML5 mobile apps provide a very strong visualization interface that supports native user experience, making financial data far more intuitive.</li>
<li>HTML5 mobile apps can be instantly deployed and updated in real-time, allowing you to constantly add new features and differentiate from competitors.</li>
<li>HTML5 mobile apps are just as powerful as native apps, providing optimal performance required for financial apps.</li>
<li>HTML5-based financial apps are secure, if HTML5 specifications are used in conjunction with security best practices.</li>
</ol>
<h1><strong>HTML5 Tags &amp; How They Aid Financial App Development</strong></h1>
<p>This section explains the HTML5 features we used, how they were used and the advantages they provide.<img src="https://lh5.googleusercontent.com/zb5f9aI2Aq_Y2mhW4IZFrXDwzvL3X3i6sL0tRwhSIysNf8Qyx2CcvEJli_OxUK2Dx4adE7Nd3BUttFliz6ezGQhDBK6ntDAD0CIRPJReBwJqd64UrE0" alt=" How HTML5 Aids Mobile Financial App Development" width="1" height="1" title="How HTML5 Aids Mobile Financial App Development" /></p>
<h1><strong>HTML5, not HTML:</strong></h1>
<p>The first step is to inform the mobile browser that the financial app is HTML5-based, and not HTML-based. The way to do this is to include the HTML5 doctype.</p>
<p>The valid doctype for HTML5 is &lt;!doctype HTML&gt;</p>
<p>&lt;!DOCTYPE html&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta charset=”UTF-8”/&gt;<br />
&lt;title&gt;PNL HD Financial-App&lt;/title&gt;<br />
&lt;head&gt;<br />
&lt;/html&gt;</p>
<h1><strong>Unlocking storage</strong></h1>
<p>One of the biggest hurdles developers of financial apps face, is the limited storage space available for mobile apps. Financial apps need to store data for a multitude of reasons such as updating security quotes and news. It is often inefficient to store such data on a server.  Fortunately, the HTML5 specifications contain a standard for local storage which is supported by browsers on all mobile platforms.</p>
<p>There are two types of storage available for the client code in HTML5, local storage and the SQL database:</p>
<ol>
<li><strong>Local Storage:</strong></li>
</ol>
<p dir="ltr">Local storage is a simple key-value store that supports only strings as both keys and values. Local storage can be manipulated using two basic operations, set and get, as shown below:</p>
<p dir="ltr">//To save an item into local storage<br />
localStorage.setItem(key, value);</p>
<p dir="ltr">//To get an item from local storage<br />
value = localStorage.getItem(key);</p>
<p dir="ltr">In our financial app, we used this to store application installation keys, session information and user preferences. It is limited in size to 5mb on iOS.</p>
<ol start="2">
<li><strong>SQL Storage:</strong></li>
</ol>
<p dir="ltr">SQL storage is a light SQL database. It generally occupies 5Mb, but subject to user permissions, it can occupy up to 50Mb. We used this database to cache app data, dynamic image assets, and user preferences. It supports all of the CRUD operations.</p>
<h1><strong>Making the application work offline</strong></h1>
<p>For financial apps, functionality gets reduced if the user does not have a constant connection to the Internet. However, applications should not fail completely because the user is not connected to the Internet. Imagine financial apps not displaying your portfolio, just because the mobile app is offline.</p>
<p>The manifest enables financial apps to work in offline mode. It is very easy to use but you must make sure all static assets are listed in your app.manifest file and that the manifest is referenced in your .html file before the tag:</p>
<p>&lt;html manifest=&#8221;pnlhd/pnlhd.manifest&#8221;&gt;<br />
The assets listed in the manifest file must not exceed 5Mb in total.</p>
<p>There’s another advantage to this, and that is speed. As financial apps have to be functional even offline, the HTML, JavaScript and CSS are all cached. This ensures that the mobile app is as fast and powerful as a native app.</p>
<h1>Using the canvas tag</h1>
<p>Canvas is a very simple pixel-based drawing API, but if used the right way it provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs or other visual images on the fly.</p>
<p>To use the canvas tag, you’ll need two things:</p>
<ol>
<li>A Canvas tag in the HTML to place the drawing canvas<br />
&lt;canvas id=&#8221;IntradayChart&#8221; width=&#8221;200&#8243; height=&#8221;200&#8243;&gt;<br />
&lt;/canvas&gt;JavaScript to do the drawing</li>
<li>&lt;var drawingCanvas = document.getElementById(‘IntradayChart’);<br />
// Checking that element is in the DOM and that the browser supports canvas<br />
if(drawingCanvas.getContext) {<br />
// Initialize a 2-dimensional drawing context<br />
var context = drawingCanvas.getContext(&#8217;2d&#8217;);<br />
//Canvas commands go here<br />
};</li>
</ol>
<p>In the mobile app we developed, we needed to manipulate existing images (which were returned as a result of the web service calls). External images can be loaded using the drawImage method.</p>
<p>context.drawImage(imgObj, XPos, YPos, Width, Height);</p>
<p>After the image has been loaded, you can make manipulations like pixel manipulation and drawing text to the canvas, all of which make rendering of financial data more intuitive.</p>
<h1>Making Financial Apps secure</h1>
<p>Security is one of the top concerns that crops up when people think of HTML5 mobile apps. Below are the major security threats that HTML5-based financial apps face and best practices to counter these threats.</p>
<ol>
<li><strong>General Considerations:</strong></li>
</ol>
<p>Financial apps that are HTML5 standards compliant benefit from full browser security and sandbox.Therefore, they have limited and controlled access to local resources including other apps that are running on the same device. These limitations are valuable because it gives users the comfort that developers don’t have access to any of the proprietary information that resides on their device.</p>
<ol>
<li><strong>Malicious Code:</strong></li>
</ol>
<p>JSON (JavaScript Object Notation) is the preferred data transport in HTML5-based mobile apps because it is fast and very easy to use. Unfortunately, JSON also exposes you to running malicious code if the code somehow makes it into the data you are handling. It is critical to scrub all data that passes through an application and remove any code.</p>
<ol>
<li><strong>Cross Site Scripting (XSS):</strong></li>
</ol>
<p>Cross-Site Scripting is a danger for all mobile apps. XSS allows attackers to inject malicious code into client-side scripts. To eliminate this threat, you should limit the locations from which the financial app downloads content, and treat all incoming data as potentially malicious code.</p>
<ol>
<li><strong>Local Storage:</strong></li>
</ol>
<p>Threats related to use of the HTML5 local storage and database can be mitigated by encrypting the local database. In financial apps, all the data stored in the Local Storage and Database should be encrypted using an encryption library. Also, threats related to exploitation of the manifest file should be eliminated by using HTTPS.</p>
<p><em>I hope that the HTML5 blog series was able to convince you that HTML5 is a viable platform for quickly and efficiently developing financial apps. Please feel free to comment, I would love to hear you views on the same.</em></p>
<p><a href="https://www4.gotomeeting.com/register/863866751?mkt_tok=3RkMMJWWfF9wsRonvqvBZKXonjHpfsXw6uUsX6Gg38431UFwdcjKPmjr1YYJSNQhcOuuEwcWGog82AVfFOmBeQ%3D%3D" title="How to Build Financial Mobile Apps in Record Time.">How to Build Financial Mobile Apps in Record Time</a><br />
<br />
Please join Xignite and our panel of experts for a discussion on how financial services firms can quickly develop mobile apps to enhance customer engagement and marketing efforts. In this informative online seminar, our panel will offer unique insight into the business side of mobile app development, click the link above to register&#8230;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fhtml5tutorial.net%2Fnews%2Fhow-html5-aids-mobile-financial-app-development.html&amp;title=How%20HTML5%20Aids%20Mobile%20Financial%20App%20Development" id="wpa2a_2"><img src="http://html5tutorial.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="share save 171 16 How HTML5 Aids Mobile Financial App Development"  title="How HTML5 Aids Mobile Financial App Development" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://html5tutorial.net/news/how-html5-aids-mobile-financial-app-development.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing Cross-Platform HTML5-based Financial Apps</title>
		<link>http://html5tutorial.net/news/developing-cross-platform-html5-based-financial-apps.html</link>
		<comments>http://html5tutorial.net/news/developing-cross-platform-html5-based-financial-apps.html#comments</comments>
		<pubDate>Thu, 08 Mar 2012 11:00:08 +0000</pubDate>
		<dc:creator>the Editor</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[financial apps]]></category>
		<category><![CDATA[HTML 5]]></category>

		<guid isPermaLink="false">http://html5tutorial.net/?p=478</guid>
		<description><![CDATA[Six Advantages of Developing Cross-Platform HTML5-based Financial Apps: Part 1 With the advent of smartphones and tablets, there has been a marked change in how people connect to the Internet. Consumers can now connect to the Internet, anytime, anywhere. As a consequence, many new mobile apps are being developed, while a number of traditional desktop/laptop-based [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.xignite.com/market-data/financial-websites-apps-blog/" target="_blank">Six Advantages of Developing Cross-Platform HTML5-based Financial Apps: Part 1</a></p>
<p><img class="alignright size-full wp-image-475" style="margin: 10px;" title="HTML5" src="http://html5tutorial.net/wp-content/uploads/2011/11/HTML5.jpg" alt="HTML5 Developing Cross Platform HTML5 based Financial Apps" width="200" height="200" />With the advent of smartphones and tablets, there has been a marked change in how people connect to the Internet. Consumers can now connect to the Internet, anytime, anywhere. As a consequence, many new mobile apps are being developed, while a number of traditional desktop/laptop-based apps are gradually getting ported to mobile. Financial service organizations have been measured in their transition to mobile apps. (To learn more about the evolution of mobile financial apps read our recent post “<a href="http://www.xignite.com/market-data/the-3-phase-evolution-of-buy-side-mobile-apps/" target="_blank">The 3 Phase Evolution of Buy-side Mobile Apps</a>). There are multiple advantages, which HTML5-based financial apps offer. In this blog post, I explore the top 6 advantages that HTML5 offers.</p>
<p><strong>Advantage #1: One version of the financial app caters to clients across multiple platforms (iOS, Android, Blackberry, Windows etc).</strong></p>
<p>HTML5 is a web-based, cross-platform specification. A de facto requirement for any modern mobile operating system is the inclusion of a HTML5-compliant web browser. All the leading mobile platforms use HTML5 as their base. This offers two distinct advantages:</p>
<ol>
<li>If financial apps are developed on HTML5, there’s no need to develop individual versions for the various platforms. This saves resources, both in terms of time and money.</li>
<li>As HTML5 apps are web-based, they can be accessed via a mobile device, laptop or desktop. This ensures that clients are offered the same interface across all devices.</li>
</ol>
<p><strong>Advantage #2: HTML5-based financial apps provide 24-7 reliability.<br />
Financial apps need 24-7 reliability.</strong></p>
<p>There should never be a point in time, when a user can’t access the app.</p>
<p>The advantage HTML5-based financial apps provide in this regard is two-fold.</p>
<ol>
<li>There is one centralized database, and if a problem arises, it can be tracked and resolved.</li>
<li>Also from a reliability point of view, HTML5-based financial apps lets you take care of the support yourself and not rely on the platform provider.</li>
</ol>
<p><strong>Advantage #3: HTML5-based financial apps provide a strong visual interface.</strong></p>
<p>The new HTML5 specifications have a very strong charting interface. The best way to describe data in financial apps is by means of charts. HTML5 facilitates this need. The primary reason Internet usage has grown exponentially on smart phones and tablets, is the user experience these devices offer.</p>
<p>Charts and graphs are far more intuitive when viewed on mobile devices. HTML5-based financial apps offers features such as the ability to zoom in and out of charts or select particular data points by touching the screen, which is unique to mobile devices.</p>
<p><strong>Advantage #4: HTML5 specifications let you employ an agile development process.</strong></p>
<p>One of the primary problems with native apps is the approval process that platform providers have in place. The process can be tedious and time-consuming. The same issue arises when new features need to be added to financial apps. This kills any differentiation advantage you might get from being first-to-market.</p>
<p>HTML5 apps let you subvert both issues, as HTML5 apps are web-based and therefore require no approval.</p>
<p><strong>Advantage #5: HTML5 specifications provide the functionality a financial app requires.</strong></p>
<p>Native apps offer much more control over the device, but the difference is access to additional device features such as camera and additional memory. These features are nice to have, but enterprise apps, especially financial ones, generally don’t require access to these features.<br />
Primary financial app use cases are requirements like updating price quotes, charting and pulling research and news. These can be handled efficiently in HTML5-based financial apps.</p>
<p><strong>Advantage #6: HTML5-based financial apps are secure.</strong></p>
<p>HTML5 is just a specification for rendering pages on the web. Thus it offers the same level of security, as any internet based application would. Apps that are standards compliant HTML5 applications benefit from the full browser security.</p>
<p>The major causes of concern in HTML5-based financial apps arise from using features such as cross-document messaging and clickjacking. Such features don’t add to the usability or power of financial apps and thus security is not a concern in using HTML5 for financial apps.</p>
<p>Now that I have outlined why HTML5 is an excellent platform for developing financial apps, in my <a href="http://html5tutorial.net/news/how-html5-aids-mobile-financial-app-development.html">next post</a> I will provide step-by-step instructions on how we developed a HTML5-based financial app (P&amp;L Tool) with our friends at <a href="http://openf.in/" target="_blank">OpenFin</a>. This app will demonstrate the ease and speed with which a powerful HTML5-based financial app can be developed.</p>
<p><a href="https://www4.gotomeeting.com/register/863866751?mkt_tok=3RkMMJWWfF9wsRonvqvBZKXonjHpfsXw6uUsX6Gg38431UFwdcjKPmjr1YYJSNQhcOuuEwcWGog82AVfFOmBeQ%3D%3D" title="How to Build Financial Mobile Apps in Record Time.">How to Build Financial Mobile Apps in Record Time</a><br />
<br />
Please join Xignite and our panel of experts for a discussion on how financial services firms can quickly develop mobile apps to enhance customer engagement and marketing efforts. In this informative online seminar, our panel will offer unique insight into the business side of mobile app development, click the link above to register&#8230;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fhtml5tutorial.net%2Fnews%2Fdeveloping-cross-platform-html5-based-financial-apps.html&amp;title=Developing%20Cross-Platform%20HTML5-based%20Financial%20Apps" id="wpa2a_4"><img src="http://html5tutorial.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="share save 171 16 Developing Cross Platform HTML5 based Financial Apps"  title="Developing Cross Platform HTML5 based Financial Apps" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://html5tutorial.net/news/developing-cross-platform-html5-based-financial-apps.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Working with HTML5 localStorage()</title>
		<link>http://html5tutorial.net/tutorials/working-with-html5-localstorage.html</link>
		<comments>http://html5tutorial.net/tutorials/working-with-html5-localstorage.html#comments</comments>
		<pubDate>Tue, 11 May 2010 09:41:40 +0000</pubDate>
		<dc:creator>the Editor</dc:creator>
				<category><![CDATA[Examples]]></category>
		<category><![CDATA[HTML 5 Attributes]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[html5 localstorage()]]></category>
		<category><![CDATA[localStorage()]]></category>

		<guid isPermaLink="false">http://html5tutorial.net/?p=397</guid>
		<description><![CDATA[HTML5 is fast approaching and getting wide spread usage. Most are familiar with the new tags like header, section and footer and everybody is aware of the new video tags thanks to Apple vs Adobe. However, there is a lot more to HTML5 those just those two aspects. I want to focus on localStorage() this [...]]]></description>
			<content:encoded><![CDATA[<p>HTML5 is fast approaching and getting wide spread usage. Most are familiar with the new tags like header, section and footer and everybody is aware of the new video tags thanks to Apple vs Adobe. However, there is a lot more to HTML5 those just those two aspects.</p>
<p>I want to focus on <a href="http://dev.w3.org/html5/webstorage/#the-localstorage-attribute" target="_blank">localStorage()</a> this time. localStorage is a client-side key-value database, meaning it is stored in the users browser. This means the users data is saved on their machine inside their browser. This also means that their data is only available to them when on that machine and in that browser. Remember that localStorage is per browser not per computer.</p>
<p>Browser support is always a huge topic when discussing new html5 or even css3 aspects. This is due to such a wide spread of support from the big browsers right now. In the case of localStorage, it is supported by Safari 4+, Mobile Safari (iPhone/iPad), Firefox 3.5+, Internet Explorer 8+ and Chrome 4+. This only leaves out Opera who currently does not support this storage. Depending on your target audience browser support may be an issue for you.</p>
<p><a href="http://paperkilledrock.com/2010/05/html5-localstorage-part-one/" target="_blank">HTML5 localStorage()</a> is a four part series of articles where I will show you how to create a simple html5 time tracking web app using localStorage as the sole database. The series will walk you through the basics of localStorage to advanced techniques to leverage the power of this new html5 database. We won&#8217;t stop at just the functionality of the app but in part four we will cover styling the app with html5 and css3 to create an iPhone(ish) web app.</p>
<p>Here is a quick example of what the javascript looks like to access localStorage();</p>
<div id='stb-box-5264' class='stb-alert_box' ><br />
if (typeof(localStorage) == &#8216;undefined&#8217; ) {<br />
alert(&#8216;Your browser does not support HTML5 localStorage. Try upgrading.&#8217;);<br />
} else {<br />
try {<br />
localStorage.setItem(&#8220;name&#8221;, &#8220;Hello World!&#8221;); //saves to the database, &#8220;key&#8221;, &#8220;value&#8221;<br />
} catch (e) {<br />
if (e == QUOTA_EXCEEDED_ERR) {<br />
alert(&#8216;Quota exceeded!&#8217;); //data wasn&#8217;t successfully saved due to quota exceed so throw an error<br />
}<br />
}</p>
<p>document.write(localStorage.getItem(&#8220;name&#8221;)); //Hello World!<br />
localStorage.removeItem(&#8220;name&#8221;); //deletes the matching item from the database<br />
}<br />
</div>
<p>In the code snippet above we are doing several things including checking if your browser supports localStorage, saving a new item to the database, retrieving that item and displaying it and then removing the item. The above is your typical Hello World example but shows you just how easy it is to use. The time tracking app we will create will be storing a unique id as the key and joining multiple values into one string, as localStorage only supports storing of strings. I will be making the source code available at the end of each article along with the full source and the working app at the end of the series, <a href="http://paperkilledrock.com/2010/05/html5-localstorage-part-one/" target="_blank">which you can follow here</a>.</p>
<p>&#8221; Written for HTML5Tutorial.net by <a href="http://jamesfleeting.com" target="_blank">James Fleeting</a>, a web designer and developer obsessed with the future of the web working at Crane | West Advertising Agency in Wichita Falls, Texas. &#8220;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fhtml5tutorial.net%2Ftutorials%2Fworking-with-html5-localstorage.html&amp;title=Working%20with%20HTML5%20localStorage%28%29" id="wpa2a_6"><img src="http://html5tutorial.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="share save 171 16 Working with HTML5 localStorage()"  title="Working with HTML5 localStorage()" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://html5tutorial.net/tutorials/working-with-html5-localstorage.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>html5 monitoring</title>
		<link>http://html5tutorial.net/tutorials/html5-monitoring.html</link>
		<comments>http://html5tutorial.net/tutorials/html5-monitoring.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 17:44:04 +0000</pubDate>
		<dc:creator>the Editor</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[html5 monitoring]]></category>
		<category><![CDATA[Network monitoring]]></category>

		<guid isPermaLink="false">http://html5tutorial.net/?p=81</guid>
		<description><![CDATA[Here is another impressive HTML5 example, while its not exactly advanced it does show demonstrate the raw power of HTML 5. This could also be used as a Windows Vista desktop widget or even for Windows 7 once it is released. This code could be changed to check the status of your domains. (Please test [...]]]></description>
			<content:encoded><![CDATA[<p>Here is another impressive HTML5 example, while its not exactly advanced it does show demonstrate the raw power of HTML 5. This could also be used as a Windows Vista desktop widget or even for Windows 7 once it is released. This code could be changed to check the status of your domains. (Please test this out by disabling your internet connect either unplug your network cable, or go into &#8220;Work Offline&#8221; with your browser)</p>
<p> </p>
<p><strong>Please click &#8220;Read More&#8221; to see the full HTML5 code</strong><span id="more-81"></span>.</p>
<p>To render what you see above you will need the following code:<br />
<code>[stextbox id=&quot;alert&quot; caption=&quot;Status monitoring&quot; color=&quot;ffffff&quot; ccolor=&quot;ffffff&quot;]</code>Network monitoring:</p>
<p>&lt;code&lt;&lt;!DOCTYPE html&gt;&lt;/code&gt;<br />
&lt;html lang=&#8221;en&#8221; xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html;charset=utf-8&#8243; /&gt;<br />
&lt;title&gt;HTML5 Demo: online connectivity monitoring&lt;/title&gt;<br />
&lt;style&gt;<br />
body {<br />
font: normal 16px/20px Helvetica, sans-serif;<br />
background: #F4F4F4;<br />
margin: 0;<br />
margin-top: 40px;<br />
padding: 0;<br />
}</p>
<p>section, header, footer {<br />
display: block;<br />
}</p>
<p>#wrapper {<br />
width: 550px;<br />
margin: 0 auto;<br />
background: #fff;<br />
-moz-border-radius: 10px;<br />
-webkit-border-radius: 10px;<br />
border-top: 1px solid #fff;<br />
padding-bottom: 76px;<br />
}</p>
<p>h1 {<br />
padding-top: 10px;<br />
}</p>
<p>h2 {<br />
font-size: 100%;<br />
font-style: italic;<br />
}</p>
<p>header,<br />
article &gt; p,<br />
article &gt; h3,<br />
article &gt; code,<br />
footer a,<br />
footer p {<br />
margin: 20px;<br />
}</p>
<p>footer &gt; * {<br />
margin: 20px;<br />
color: #999;<br />
}</p>
<p>#status {<br />
padding: 5px;<br />
color: #fff;<br />
background: #ccc;<br />
}</p>
<p>#status.offline {<br />
background: #c00;<br />
}</p>
<p>#status.online {<br />
background: #0c0;<br />
}</p>
<p>&lt;/style&gt;<br />
&lt;script&gt;<br />
// For discussion and comments, see: http://remysharp.com/2009/01/07/html5-enabling-script/<br />
(function(){if(!/*@cc_on!@*/0)return;var e = &#8220;abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,mark,menu,meter,nav,output,progress,section,time,video&#8221;.split(&#8216;,&#8217;),i=e.length;while (i&#8211;){document.createElement(e[i])}})()<br />
&lt;/script&gt;<br />
&lt;script&gt;<br />
function online() {<br />
var status = document.querySelector(&#8216;#status&#8217;);<br />
if (status) {<br />
status.className = navigator.onLine ? &#8216;online&#8217; : &#8216;offline&#8217;;<br />
status.innerHTML = navigator.onLine ? &#8216;online&#8217; : &#8216;offline&#8217;;<br />
}<br />
}</p>
<p>document.addEventListener(&#8216;DOMContentLoaded&#8217;, online, true);<br />
window.addEventListener(&#8216;online&#8217;, online, true);<br />
window.addEventListener(&#8216;offline&#8217;, online, true);</p>
<p>&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;section id=&#8221;wrapper&#8221;&gt;<br />
&lt;header&gt;</p>
<p>&lt;h1&gt;Status Monitoring&lt;/h1&gt;<br />
&lt;/header&gt;<br />
&lt;article&gt;<br />
&lt;p&gt;Current network status: &lt;span id=&#8221;status&#8221;&gt;checking&#8230;&lt;/span&gt;&lt;/p&gt;<br />
&lt;/article&gt;<br />
&lt;footer&gt;&lt;a href=&#8221;http:html5tutorials.net/&#8221;&gt;HTML5 Tutorial&lt;/a&gt;&lt;/footer&gt;<br />
&lt;/section&gt;</p>
<p>&lt;script&gt;<br />
var gaJsHost = ((&#8220;https:&#8221; == document.location.protocol) ? &#8220;https://ssl.&#8221; : &#8220;http://www.&#8221;);<br />
document.write(unescape(&#8220;%3Cscript src=&#8217;&#8221; + gaJsHost + &#8220;google-analytics.com/ga.js&#8217; type=&#8217;text/javascript&#8217;%3E%3C/script%3E&#8221;));<br />
&lt;/script&gt;<br />
&lt;script&gt;<br />
try {<br />
var pageTracker = _gat._getTracker(&#8220;UA-1656750-18&#8243;);<br />
pageTracker._trackPageview();<br />
} catch(err) {}&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<code>[/stextbox]</code></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fhtml5tutorial.net%2Ftutorials%2Fhtml5-monitoring.html&amp;title=html5%20monitoring" id="wpa2a_8"><img src="http://html5tutorial.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="share save 171 16 html5 monitoring"  title="html5 monitoring" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://html5tutorial.net/tutorials/html5-monitoring.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drag and drop</title>
		<link>http://html5tutorial.net/tutorials/drag-and-drop.html</link>
		<comments>http://html5tutorial.net/tutorials/drag-and-drop.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 17:03:35 +0000</pubDate>
		<dc:creator>the Editor</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://html5tutorial.net/?p=58</guid>
		<description><![CDATA[As we have mentioned in some of our previous articles &#38; tutorials HTML 5 offers designers, developers and people in general a much richer experience, we are still just scraping the surface of the new markup, so today we are going to have a look at how to create a HTML 5 page that uses [...]]]></description>
			<content:encoded><![CDATA[<p>As we have mentioned in some of our previous articles &amp; tutorials HTML 5 offers designers, developers and people in general a much richer experience, we are still just scraping the surface of the new markup, so today we are going to have a look at how to create a <a href="http://html5tutorial.net/examples/html5-drag-and-drop.html" target="_blank">HTML 5 page that uses the new drag and drop feature</a>. Note we are displaying this via an iframe so if your having any trouble viewing the demo please let us know, another reason it may not show will be due to your browser, this is working in the latest Firefox browser only at the moment..</p>
<p><span id="more-58"></span><br />
<strong>Basic HTML 5 layout code:</strong></p>
<p>&lt;!DOCTYPE HTML&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta content=&#8221;text/html; charset=UTF-8&#8243; http-equiv=&#8221;content-type&#8221;/&gt;<br />
&lt;center&gt;&lt;title&gt;HTML5 Drag and drop demonstration&lt;/title&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
#boxA, #boxB, #boxC {<br />
float:left; width:165px; height:165px; padding:10px; margin:10px;<br />
}</p>
<p>#boxA { background-color: #474747; }<br />
#boxB { background-color: #474747; }<br />
#boxC { background-color: #474747; }</p>
<p>#drag, #drag2, #drag3 {<br />
width:30px; height:30px; padding:5px; margin:5px;<br />
-moz-user-select:none;<br />
}<br />
#drag { background-color: #e8e8e8;}<br />
#drag2 { background-color: orange;}<br />
#drag3 { background-color: purple; border:3px brown solid;}</p>
<p>&lt;/style&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
function dragStart(ev) {<br />
ev.dataTransfer.effectAllowed=&#8217;move&#8217;;<br />
//ev.dataTransfer.dropEffect=&#8217;move&#8217;;<br />
ev.dataTransfer.setData(&#8220;Text&#8221;, ev.target.getAttribute(&#8216;id&#8217;));<br />
ev.dataTransfer.setDragImage(ev.target,0,0);<br />
return true;<br />
}</p>
<p>function dragEnter(ev) {<br />
var idelt = ev.dataTransfer.getData(&#8220;Text&#8221;);<br />
return true;<br />
}</p>
<p>function dragOver(ev) {<br />
var idelt = ev.dataTransfer.getData(&#8220;Text&#8221;);<br />
var id = ev.target.getAttribute(&#8216;id&#8217;);<br />
if( (id ==&#8217;boxB&#8217; || id ==&#8217;boxA&#8217;) &amp;&amp; (idelt == &#8216;drag&#8217; || idelt==&#8217;drag2&#8242;))<br />
return false;<br />
else if( id ==&#8217;boxC&#8217; &amp;&amp; idelt == &#8216;drag3&#8242;)<br />
return false;<br />
else<br />
return true;<br />
}</p>
<p>function dragEnd(ev) {<br />
ev.dataTransfer.clearData(&#8220;Text&#8221;);<br />
return true<br />
}</p>
<p>function dragDrop(ev) {<br />
var idelt = ev.dataTransfer.getData(&#8220;Text&#8221;);<br />
ev.target.appendChild(document.getElementById(idelt));<br />
ev.stopPropagation();<br />
return false; // return false so the event will not be propagated to the browser<br />
}</p>
<p>&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;Drag and drop HTML5 demo&lt;/h1&gt;<br />
&lt;div&gt;there are many other variables that can be used also, we will coer this another day.<br />
&lt;/div&gt;</p>
<p>&lt;div id=&#8221;boxA&#8221;<br />
ondragenter=&#8221;return dragEnter(event)&#8221;<br />
ondrop=&#8221;return dragDrop(event)&#8221;<br />
ondragover=&#8221;return dragOver(event)&#8221;&gt;</p>
<p>&lt;div id=&#8221;drag&#8221; draggable=&#8221;true&#8221;<br />
ondragstart=&#8221;return dragStart(event)&#8221;<br />
ondragend=&#8221;return dragEnd(event)&#8221;&gt;drag me&lt;/div&gt;</p>
<p>&lt;div id=&#8221;drag2&#8243; draggable=&#8221;true&#8221;<br />
ondragstart=&#8221;return dragStart(event)&#8221;<br />
ondragend=&#8221;return dragEnd(event)&#8221;&gt;drag me&lt;/div&gt;</p>
<p>&lt;div id=&#8221;drag3&#8243; draggable=&#8221;true&#8221;<br />
ondragstart=&#8221;return dragStart(event)&#8221;<br />
ondragend=&#8221;return dragEnd(event)&#8221;&gt;drag me&lt;/div&gt;</p>
<p>&lt;/div&gt;</p>
<p>&lt;div id=&#8221;boxB&#8221;<br />
ondragenter=&#8221;return dragEnter(event)&#8221;<br />
ondrop=&#8221;return dragDrop(event)&#8221;<br />
ondragover=&#8221;return dragOver(event)&#8221;&gt;<br />
&lt;/div&gt;</p>
<p>&lt;div id=&#8221;boxC&#8221;<br />
ondragenter=&#8221;return dragEnter(event)&#8221;<br />
ondrop=&#8221;return dragDrop(event)&#8221;<br />
ondragover=&#8221;return dragOver(event)&#8221;&gt;<br />
&lt;/div&gt;<br />
&lt;div style=&#8221;clear:both&#8221;&gt;Example created by &lt;a href=&#8221;http://html5tutorial.net/&#8221;&gt;HTML Tutorials&lt;/a&gt;.&lt;/div&gt;<br />
&lt;/body&gt;&lt;/center&gt;<br />
&lt;/html&gt;</p>
<p>We will cover JavaScript in depth at a later date, for now copy and paste the code above and have a play around with it and see what you can come up with, this was more or less an example to demonstrate HTML5&#8242;s tremendous power.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fhtml5tutorial.net%2Ftutorials%2Fdrag-and-drop.html&amp;title=Drag%20and%20drop" id="wpa2a_10"><img src="http://html5tutorial.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="share save 171 16 Drag and drop"  title="Drag and drop" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://html5tutorial.net/tutorials/drag-and-drop.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Basic HTML 5 layout</title>
		<link>http://html5tutorial.net/tutorials/basic-html-5-layout.html</link>
		<comments>http://html5tutorial.net/tutorials/basic-html-5-layout.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 07:27:25 +0000</pubDate>
		<dc:creator>the Editor</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Basic HTML 5 layout]]></category>

		<guid isPermaLink="false">http://html5tutorial.net/?p=11</guid>
		<description><![CDATA[Today we are going to have a quick look into the layout of HTML 5, we have put together a very basic HTML 5 page so that you can get a rough idea of what to expect from the upcoming code. (Example currently undergoing an update, sign up to our rss feed to be notified [...]]]></description>
			<content:encoded><![CDATA[<p>Today we are going to have a quick look into the layout of HTML 5, we have put together a <strong>very basic</strong> HTML 5 page so that you can get a rough idea of what to expect from the upcoming code.</p>
<p><span style="color: #800000;"><strong>(Example currently undergoing an update, sign up to our <a href="http://feeds2.feedburner.com/Html5Tutorial" target="_blank">rss feed</a> to be notified of it&#8217;s completion, it will be fantastic!)</strong></span></p>
<p>As you can see it is a very basic page, however you will need to start from the bottom with HTML 5 as it varies quite a lot from the old HTML 4 code reference.</p>
<p><span id="more-11"></span></p>
<p>Currently the only browser to fully support HTML 5 reference code is Safari you can download it <a title="Safari download" href="http://www.apple.com/safari/" target="_blank">HERE</a>.</p>
<p>Make sure you bookmark our website, we are in the process of putting together more HTML 5 tutorials.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fhtml5tutorial.net%2Ftutorials%2Fbasic-html-5-layout.html&amp;title=Basic%20HTML%205%20layout" id="wpa2a_12"><img src="http://html5tutorial.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="share save 171 16 Basic HTML 5 layout"  title="Basic HTML 5 layout" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://html5tutorial.net/tutorials/basic-html-5-layout.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

