<?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>Adtools &#187; Javascript</title>
	<atom:link href="http://blog.adtools.co.uk/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adtools.co.uk</link>
	<description>Advertising Operations &#38; Technology</description>
	<lastBuildDate>Fri, 25 Nov 2011 13:21:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Dealing with Orientation in CSS &amp; Javascript on Safari on the iPad</title>
		<link>http://blog.adtools.co.uk/dealing-with-orientation-in-css-javascript-on-safari-on-the-ipad/919/</link>
		<comments>http://blog.adtools.co.uk/dealing-with-orientation-in-css-javascript-on-safari-on-the-ipad/919/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 10:52:04 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[AdOps]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[dfp]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[landscape]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[orientation]]></category>
		<category><![CDATA[portrait]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[webkit]]></category>

		<guid isPermaLink="false">http://blog.adtools.co.uk/?p=919</guid>
		<description><![CDATA[We&#8217;ve recently been working on some ads for an iPad app lately, I&#8217;ll deal with how we are delivering these ads into the iPad in another post, suffice to say it&#8217;s been an interesting if somewhat challenging learning curve. This post tries to bring together some resources I discovered whilst trying to get my head [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.adtools.co.uk/wp-content/uploads/2011/02/apple_ipad_2.jpg" alt="" title="apple_ipad_2" width="200" class="alignright size-full wp-image-922" />We&#8217;ve recently been working on some ads for an iPad app lately, I&#8217;ll deal with how we are delivering these ads into the iPad in another post, suffice to say it&#8217;s been an interesting if somewhat challenging learning curve. This post tries to bring together some resources I discovered whilst trying to get my head around things like dealing with orientation and checking for active/live internet connections.</p>
<p>Cloud Four has an article on iPad orientation detection through CSS here:<br />
<a href="http://www.cloudfour.com/ipad-orientation-css/">http://www.cloudfour.com/ipad-orientation-css/</a><br />
They supply an example of their techniques as well:<br />
<a href="http://www.cloudfour.com/ipad-css/">http://www.cloudfour.com/ipad-css/</a></p>
<p>NCZOnline &#8211; iPad web development tips:<br />
Amongst other topics covered this article deals with the all important: User-agent string, iPad detection through Javascript as well as ways to ascertain screen dimensions and orientation:<br />
<a href="http://www.nczonline.net/blog/2010/04/06/ipad-web-development-tips/">http://www.nczonline.net/blog/2010/04/06/ipad-web-development-tips/</a></p>
<p>Smashing Magazine has porovided some well thought out issues to consider when starting out developing web-pages for the iPad &#038; iPhone:<br />
<a href="http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/">http://www.smashingmagazine.com/2010/05/28/web-development-for-the-iphone-and-ipad-getting-started/</a></p>
<p>HTMLGoodies has an article detailing more in-depth approaches to orientation on the iPad &#038; iPhone:<br />
<a href="http://www.htmlgoodies.com/beyond/webmaster/toolbox/article.php/3889591/Detect-and-Set-the-iPhone--iPads-Viewport-Orientation-Using-JavaScript-CSS-and-Meta-Tags.htm">Detect and Set the iPhone/iPad&#8217;s Viewport/Orientation Using JavaScript, CSS &#038; MetaTags</a></p>
<p><strong>Using CSS to handle Orientation on the iPad:</strong><br />
So, the upside is that this is a lot easier than you might think. WebKit/Safari supports the CSS media query declarations based on orientation. You can simply specify two CSS files which contain the layouts for portrait and landscape and place the following two lines in your pages HEAD tag.</p>
<p><em>&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:portrait)&quot; href=&quot;portrait.css&quot;&gt;<br />
&lt;link rel=&quot;stylesheet&quot; media=&quot;all and (orientation:landscape)&quot; href=&quot;landscape.css&quot;&gt;</em></p>
<p>And then simply amend the layout for each orientation accordingly, in the example below they use it to hide/show a H1 tag accordingly. Here&#8217;s a working example:<br />
<a href="http://www.cloudfour.com/ipad-css/">http://www.cloudfour.com/ipad-css/</a>.</p>
<p>				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ --></p>
<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing_top"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fblog.adtools.co.uk%2Fdealing-with-orientation-in-css-javascript-on-safari-on-the-ipad%2F919%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing_top"><a href="http://twitter.com/share?url=http%3A%2F%2Fblog.adtools.co.uk%2Fdealing-with-orientation-in-css-javascript-on-safari-on-the-ipad%2F919%2F&amp;text=Dealing+with+Orientation+in+CSS+%26+Javascript+on+Safari+on+the+iPad&amp;via=adops" target="_blank" class="mr_social_sharing_popup_link"><img src="http://blog.adtools.co.uk/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing_top"><g:plusone size="medium" count="false" href="http://blog.adtools.co.uk/dealing-with-orientation-in-css-javascript-on-safari-on-the-ipad/919/"></g:plusone></span><span class="mr_social_sharing_top"><script type="IN/Share" data-url="http://blog.adtools.co.uk/dealing-with-orientation-in-css-javascript-on-safari-on-the-ipad/919/"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.adtools.co.uk/dealing-with-orientation-in-css-javascript-on-safari-on-the-ipad/919/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Douglas Crockford on JavaScript and HTML5</title>
		<link>http://blog.adtools.co.uk/douglas-crockford-on-javascript-and-html5/520/</link>
		<comments>http://blog.adtools.co.uk/douglas-crockford-on-javascript-and-html5/520/#comments</comments>
		<pubDate>Mon, 10 May 2010 11:01:55 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[standards]]></category>

		<guid isPermaLink="false">http://blog.adtools.co.uk/?p=520</guid>
		<description><![CDATA[Webmonkey have secured themselves some good video interviews last week at Web 2.0 Expo. Here Douglas Crockford talks about the future of Javascript &#038; HTML5.]]></description>
			<content:encoded><![CDATA[<p>Webmonkey have secured themselves some good video interviews last week at Web 2.0 Expo. Here Douglas Crockford talks about the future of Javascript &#038; HTML5.</p>
<div align="center"><object width="640" height="385">
<param name="movie" value="http://www.youtube.com/v/10fnZ2chEYg&#038;color1=0xb1b1b1&#038;color2=0xd0d0d0&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/10fnZ2chEYg&#038;color1=0xb1b1b1&#038;color2=0xd0d0d0&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385"></embed></object></div>
<p>				<!-- Social Sharing Toolkit v2.0.4 | http://www.marijnrongen.com/wordpress-plugins/social_sharing_toolkit/ --></p>
<div class="mr_social_sharing_wrapper"><span class="mr_social_sharing_top"><iframe src="https://www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A%2F%2Fblog.adtools.co.uk%2Fdouglas-crockford-on-javascript-and-html5%2F520%2F&amp;layout=standard&amp;show_faces=false&amp;width=51px&amp;height=24px" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:51px; height:24px;" allowTransparency="true"></iframe></span><span class="mr_social_sharing_top"><a href="http://twitter.com/share?url=http%3A%2F%2Fblog.adtools.co.uk%2Fdouglas-crockford-on-javascript-and-html5%2F520%2F&amp;text=Douglas+Crockford+on+JavaScript+and+HTML5&amp;via=adops" target="_blank" class="mr_social_sharing_popup_link"><img src="http://blog.adtools.co.uk/wp-content/plugins/social-sharing-toolkit/images/buttons/twitter.png" alt="Share on Twitter" title="Share on Twitter"/></a></span><span class="mr_social_sharing_top"><g:plusone size="medium" count="false" href="http://blog.adtools.co.uk/douglas-crockford-on-javascript-and-html5/520/"></g:plusone></span><span class="mr_social_sharing_top"><script type="IN/Share" data-url="http://blog.adtools.co.uk/douglas-crockford-on-javascript-and-html5/520/"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.adtools.co.uk/douglas-crockford-on-javascript-and-html5/520/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

