<?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>Redaware Limited - Computer Services &#38; Business IT Solutions in Tenbury Wells, Worcestershire &#187; HTML5</title>
	<atom:link href="http://www.redaware.net/tag/html5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redaware.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 10:49:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>iPhone Web App Development</title>
		<link>http://www.redaware.net/2010/09/iphone-web-app-development/</link>
		<comments>http://www.redaware.net/2010/09/iphone-web-app-development/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 10:47:40 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Web Developement]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[JavaScript Framework]]></category>
		<category><![CDATA[JQTouch]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[web app]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=186</guid>
		<description><![CDATA[The Apple iPhone is currently the best selling mobile in the world, it is estimated that the UK has 2 million iPhone users alone. There are a growing number of people who are using their iPhone or mobile to browse the web.  Should you make provisions for your website to be mobile friendly? This post [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The  Apple iPhone is currently the best selling mobile in the world, it is  estimated that the UK has 2 million iPhone users alone. There are a  growing number of people who are using their iPhone or mobile to browse  the web.  Should you make provisions for your website to be mobile  friendly? This post outlines some ideas to create an iPhone friendly  website or “web app”.</p>
<p><img class="size-full wp-image-206" src="http://www.redaware.net/wp-content/uploads/2010/09/iphone.jpg" alt="" width="500" height="333" /><br /><a href="http://www.flickr.com/photos/ivyfield/">Image credit</a></p>
<p>There  are two methods of developing web apps for the iPhone, the first way is  by creating dedicated web pages for use by the iPhone.  The other way  is to utilise a JavaScript framework plugin like JQTouch (<a href="http://www.jqtouch.com/">http://www.jqtouch.com/</a>).  JQTouch is a plugin for the popular JQuery JavaScript framework.</p>
<p>Which  method that you use depends on your overall goal, if you are looking to  create a website that mimics a native app, for example, that emulates  the iOS user interface or even supports gesturing then I would be  recommended  using the JQTouch project, doing this cut down on the  required development time.</p>
<p>If  your requirement is for just an iPhone friendly website then developing  a mobile version of website using HTML5 and CSS3 maybe the best  solution. This solution may also mean that you can allow for  cross-browser compatible and make you website “work” with other mobile  device like Android or Black Berry.</p>
<p>Why not take a look at <a href="http://www.mobileawesomeness.com/">http://www.mobileawesomeness.com/</a> this website  good source of inspiration when designing site for mobile visitors. Also  example of iPhone web apps can be found on <a href="http://www.apple.com/webapps/index2.html"></a><a href="http://www.apple.com/webapps/index2.html">Apple’s website </a>.</p>
<p>Safari the iPhone’s default web browser uses the Webkit as it’s rendering  engine, this displays most web page and website very well, even those  sites that have not been design with the iPhone in mind look good. As  you may have heard there is an on-going disagreement between Apple and  Adobe over Flash, the iPhone does not support Adobe Flash.  Normally  webmasters would use Flash when integrating video into their site, as  the iPhone does not support flash then HTML5 need to be used to embed  videos. In fact HTML5 and CSS3 provide a powerful duo, Apple have create  this mini-site: <a href="www.apple.com/html5">www.apple.com/html5</a> to demonstrate the features of  Safari (Webkit), HTML5 and CSS3 – please note that it is blocked to  non-Safari browsers. The  battle between Apple and Adobe over Flash has meant that Silverlight  support has been overlooked, like Flash, Silverlight is not support by the iPhone.</p>
<p>Developing  a iPhone friendly website using the JQTouch project are the outside  scope of this post, however if this something that appeals to you but  you do not have the in-house expertise then please feel free to get in  touch to discuss your individual requirements. As discussed, we will  however demonstrate some simple ideas and provide some sample code on how to make your website more interesting and friendly for your iPhone visitors.</p>
<p>For  your iPhone visitors, you may decide to use smaller images &#8211; so they  loaded quicker if they are using a mobile connection, larger fonts &#8211; so  that the content is easier to read with needing to zoom in, or even make  allowances for device orientation. In order to this you first need to  detect if your visitor is using a iPhone, this can achieved by using the  code below:</p>
<p><strong>PHP</strong></p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
$browser = strpos($_SERVER['HTTP_USER_AGENT'],&quot;iPhone&quot;);
if ($browser == true)
{
echo 'You are using an iPhone';
}

?&gt;
</pre>
<p><strong>JavaScript</strong></p>
<pre class="brush: jscript; title: ; notranslate">
if ( (navigator.userAgent.indexOf('iPhone') != -1) ) {
document.location = &quot;iphone.html&quot;;
}
</pre>
<p>Most  webmasters and developer choose to re-direct iPhone visitors to a  different page or area of their site. Some people set up a dedicated  sub-domain for mobile visitors (www.m.domain.co.uk) others create a sub  folder for all mobile content (www.domain.co.uk/mobile). It all depends  on personal preference or the facilities offered by your hosting  provider.</p>
<p>Frequent  website visitors may decide to bookmark your site or even add a  shortcut to their home screen. The code below is used to create a custom  home screen icon:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/apple-touch-icon.png&quot;/&gt;
</pre>
<p>As  discussed earlier the iPhone uses a Webkit browser this allows you to  easy style web forms to look like native iPhone apps. Below is an  example image of what can be achieved. Take a look at <a href="http://lipidity.com/apple/iphone-webkit-css-3">http://lipidity.com/apple/iphone-webkit-css-3</a> for some more examples.</p>
<p>The  iPhone screen is 320 x 480 pixels. If you do not want people to have to  use the zoom function in order to read text or view an entire picture,  consider restricting your pages to the limitations of the iPhone’s  screen size. The code below prevents the visitor from being able to zoom  in and out.</p>
<pre class="brush: xml; title: ; notranslate">
&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;&quot; /&amp;gt;
</pre>
<p>Use  of separate style sheets for different orientation can also benefit  user experience. Below is an example of how to use different style  sheet:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:portrait)&quot; href=&quot;portrait.css&quot;&gt;
&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:landscape)&quot; href=&quot;landscape.css&quot;&gt;
</pre>
<p>Native  apps often take longer to load but are much more responsive once  loaded. To emulate this behaviour, you could use anchors in a single  HTML or PHP file. A JavaScript framework like JQuery and jQuery UI will allow  you hide or unhide content as required. A good example of this would to be  use Accordion which can be found <a href="http://jqueryui.com/demos/accordion/">here</a>.</p>
<p>I  hope this post has given you a flavour of whats required when  developing web apps for the iPhone or other mobile devices. In a  upcoming post we intend to expanded on the techniques outlined here.</p>
<div class="shr-publisher-186"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/09/iphone-web-app-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross-browser support for different rendering engines</title>
		<link>http://www.redaware.net/2010/05/cross-browser-support-for-different-rending-engines/</link>
		<comments>http://www.redaware.net/2010/05/cross-browser-support-for-different-rending-engines/#comments</comments>
		<pubDate>Mon, 17 May 2010 13:26:02 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Web Developement]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[Gecko]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=171</guid>
		<description><![CDATA[Web developers are often faced with the problems associated with developing a cross-browser website or application, those developers planning to use new HTML5 and CSS3 mark-up will also have to ensure that they cater for different rending/layout engines like Webkit (Safari, Chrome) or Gecko (Firefox). Here are a few CCS examples:]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Web developers are often faced with the problems associated with developing a cross-browser website or application, those developers planning to use new HTML5 and CSS3 mark-up will also have to ensure that they cater for different rending/layout engines like Webkit (Safari, Chrome) or Gecko (Firefox).</p>
<p>Here are a few CCS examples:</p>
<pre class="brush: css; title: ; notranslate">
/*gradients*/

/*Firefox*/
-moz-linear-gradient (left, red, silver); 

/*Safari/Chrome*/
webkit-gradient (linear, left center, right center, from(red), to(silver));

/*shadow*/

/*Firefox*/
-moz-box-shadow: 5px 5px #818181;

/*Safari/Chrome*/
-webkit-box-shadow: 5px 5px #818181;

/*Border corners*/

/*Firefox*/
-moz-border-radius: 9px 3px 9px 3px;

/*Safari/Chrome*/
-webkit-border-radius: 3px;
-webkit-border-top-left-radius: 9px;
-webkit-border-bottom-right-radius: 9px;
</pre>
<div class="shr-publisher-171"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/05/cross-browser-support-for-different-rending-engines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

