<?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>artlayer.com &#187; iPad</title>
	<atom:link href="http://www.artlayer.com/category/ipad/feed" rel="self" type="application/rss+xml" />
	<link>http://www.artlayer.com</link>
	<description>A Blog about Design, Web, Front-End Development, Photography, Music and some rants about meaningless subjects.</description>
	<lastBuildDate>Tue, 31 Jan 2012 11:31:42 +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>Safari Mobile breaks jquery.live()</title>
		<link>http://www.artlayer.com/safari-mobile-breaks-jquery-live</link>
		<comments>http://www.artlayer.com/safari-mobile-breaks-jquery-live#comments</comments>
		<pubDate>Wed, 31 Aug 2011 00:16:30 +0000</pubDate>
		<dc:creator>Nelson Mendes</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.artlayer.com/?p=128</guid>
		<description><![CDATA[The live() method of jQuery is a blessing for dynamic interfaces. It allows you to attach events to dynamically created elements. Say you want to create a dynamic menu based on some live data read from a server. Maybe you want to create some HTML like this: With jQuery you can dynamically generate clickable elements [...]]]></description>
			<content:encoded><![CDATA[<p>The live() method of jQuery is a blessing for dynamic interfaces. It allows you to attach events to dynamically created elements.</p>
<p>Say you want to create a dynamic menu based on some live data read from a server. Maybe you want to create some HTML like this:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;nav&gt;
&lt;ul&gt;
	&lt;li id=&quot;nav1&quot; class=&quot;btn&quot;&gt;item1&lt;/li&gt;
	&lt;li id=&quot;nav2&quot; class=&quot;btn&quot;&gt;item1&lt;/li&gt;
	&lt;li id=&quot;nav3&quot; class=&quot;btn&quot;&gt;item1&lt;/li&gt;
	&lt;li id=&quot;nav4&quot; class=&quot;btn&quot;&gt;item1&lt;/li&gt;
&lt;/ul&gt;
&lt;/nav&gt;
</pre>
<p>With jQuery you can dynamically generate clickable elements like this:</p>
<pre class="brush: jscript; title: ; notranslate">
$(&quot;.btn&quot;).live(&quot;click&quot;, function(){
var elem = event.target.id;
alert(&quot;you clicked: &quot; + elem);
});
</pre>
<p>This works well in the desktop and in every browser but on Mobile Safari it fails.</p>
<p>A workaround is to deliberately add an &#8220;onclick&#8221; attribute to the element you want to attach the event:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;ul&gt;
	&lt;li id=&quot;nav1&quot; class=&quot;btn&quot; onclick=&quot;&quot;&gt;item1&lt;/li&gt;
&lt;/ul&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.artlayer.com/safari-mobile-breaks-jquery-live/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alice for the iPad App</title>
		<link>http://www.artlayer.com/113</link>
		<comments>http://www.artlayer.com/113#comments</comments>
		<pubDate>Tue, 13 Apr 2010 19:32:31 +0000</pubDate>
		<dc:creator>Nelson Mendes</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[Illustration]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Book]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.artlayer.com/?p=113</guid>
		<description><![CDATA[The iPad was announced just 2 months ago. The iPad went on sale 10 days ago in the US. This is an iPad book app just released by these guys. It&#8217;s the iPad version of the classic Lewis Carroll&#8217;s Alice in Wonderland. So, are you still skeptic about it?]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/gew68Qj5kxw&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;hd=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/gew68Qj5kxw&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The iPad was announced just 2 months ago. The iPad went on sale 10 days ago in the US. This is an iPad book app just released by these <a title="Atomic Antelope" href="http://www.atomicantelope.com">guys</a>. It&#8217;s the iPad version of the classic Lewis Carroll&#8217;s Alice in Wonderland. So, are you still skeptic about <a title="Apple iPad" href="http://www.apple.com/ipad/">it</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artlayer.com/113/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

