<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: jQuery Iphone Style Ajax Switch</title>
	<atom:link href="http://papermashup.com/jquery-iphone-style-ajax-switch/feed/" rel="self" type="application/rss+xml" />
	<link>http://papermashup.com/jquery-iphone-style-ajax-switch/</link>
	<description>Ashley Ford :: CSS &#124; PHP &#124; JavaScript</description>
	<lastBuildDate>Tue, 09 Mar 2010 18:53:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stephen</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-1981</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Tue, 05 Jan 2010 15:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-1981</guid>
		<description>Hi... nice little plugin here....

I&#039;d like to make one suggestion....

change the &quot;click handling&quot; section to pass the  through to the callback events, a la:

&lt;code&gt;
jQuery(this).click(function() {
           ...
                    switched_off_callback(this);
           ...
                    switched_on_callback(this);
           ...
});
&lt;/code&gt;

that way

&lt;code&gt;
$(&quot;.Boolean&quot;).iphoneSwitch(
      &quot;on&quot;, 
       function(obj) {
            //do something on change to &quot;on&quot;
       },
       function(obj) {
            //do something on change to &quot;off&quot;
       }
);
&lt;/code&gt;

that way if there are multiple objects wired to this plugin, there is some hook to be able to tell &quot;where&quot; we are inside those events...

thanks for reading....

- Stephen</description>
		<content:encoded><![CDATA[<p>Hi&#8230; nice little plugin here&#8230;.</p>
<p>I&#8217;d like to make one suggestion&#8230;.</p>
<p>change the &#8220;click handling&#8221; section to pass the  through to the callback events, a la:</p>
<p><code><br />
jQuery(this).click(function() {<br />
           ...<br />
                    switched_off_callback(this);<br />
           ...<br />
                    switched_on_callback(this);<br />
           ...<br />
});<br />
</code></p>
<p>that way</p>
<p><code><br />
$(".Boolean").iphoneSwitch(<br />
      "on",<br />
       function(obj) {<br />
            //do something on change to "on"<br />
       },<br />
       function(obj) {<br />
            //do something on change to "off"<br />
       }<br />
);<br />
</code></p>
<p>that way if there are multiple objects wired to this plugin, there is some hook to be able to tell &#8220;where&#8221; we are inside those events&#8230;</p>
<p>thanks for reading&#8230;.</p>
<p>- Stephen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leny</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-1868</link>
		<dc:creator>Leny</dc:creator>
		<pubDate>Wed, 16 Dec 2009 12:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-1868</guid>
		<description>Thank you Ashley for your post, cool demo :)
Does anybody know why on IE6 it doesn&#039;t work?</description>
		<content:encoded><![CDATA[<p>Thank you Ashley for your post, cool demo <img src='http://papermashup.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Does anybody know why on IE6 it doesn&#8217;t work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-1015</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Fri, 11 Sep 2009 12:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-1015</guid>
		<description>@igor thanks for pointing that out, i&#039;ve updated the code ;)</description>
		<content:encoded><![CDATA[<p>@igor thanks for pointing that out, i&#8217;ve updated the code <img src='http://papermashup.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-1012</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Fri, 11 Sep 2009 09:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-1012</guid>
		<description>ERROR!
text code inside file jquery.iphone-switch.js:

image = jQuery(&#039;&#039;);
Pay attention to the end - there is an extra div-tag! It must be removed, otherwise, you will not see the switch in IE-browsers.
Thanks.</description>
		<content:encoded><![CDATA[<p>ERROR!<br />
text code inside file jquery.iphone-switch.js:</p>
<p>image = jQuery(&#8221;);<br />
Pay attention to the end &#8211; there is an extra div-tag! It must be removed, otherwise, you will not see the switch in IE-browsers.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-842</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Mon, 10 Aug 2009 07:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-842</guid>
		<description>@Jason good to see you found a solution :)</description>
		<content:encoded><![CDATA[<p>@Jason good to see you found a solution <img src='http://papermashup.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-838</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 10 Aug 2009 01:35:45 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-838</guid>
		<description>I figured it out, I added the following code after the script tag:


$(document).ready(function(){
    $(&#039;#ajax&#039;).load(&#039;/alpha&#039;);


And you&#039;ll also need to add the following at the end:


});
</description>
		<content:encoded><![CDATA[<p>I figured it out, I added the following code after the script tag:</p>
<p>$(document).ready(function(){<br />
    $(&#8216;#ajax&#8217;).load(&#8216;/alpha&#8217;);</p>
<p>And you&#8217;ll also need to add the following at the end:</p>
<p>});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-837</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 10 Aug 2009 01:15:41 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-837</guid>
		<description>So is there a way to have it load the on.html at page load?</description>
		<content:encoded><![CDATA[<p>So is there a way to have it load the on.html at page load?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sufian Hassan</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-781</link>
		<dc:creator>Sufian Hassan</dc:creator>
		<pubDate>Sat, 01 Aug 2009 14:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-781</guid>
		<description>Hey why dont you make it so you can drag the button lest anf right that way it will be easer then just clicking it because im used to seeing it on my iphone to drag it but here i have to click it.</description>
		<content:encoded><![CDATA[<p>Hey why dont you make it so you can drag the button lest anf right that way it will be easer then just clicking it because im used to seeing it on my iphone to drag it but here i have to click it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-637</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Fri, 10 Jul 2009 07:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-637</guid>
		<description>@ben thanks for the feedback, I&#039;ve been having major problems with my feed and have had to hackit a bit but i&#039;ll take a look at doing that.</description>
		<content:encoded><![CDATA[<p>@ben thanks for the feedback, I&#8217;ve been having major problems with my feed and have had to hackit a bit but i&#8217;ll take a look at doing that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://papermashup.com/jquery-iphone-style-ajax-switch/comment-page-1/#comment-631</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 10 Jul 2009 04:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://papermashup.com/?p=806#comment-631</guid>
		<description>Cool, lots of people are copying the iPhone GUI these days. 

On a side note, could you make your RSS feed display full posts so I don&#039;t have to come out of Google Reader. It kind if makes the point of an RSS feed useless.</description>
		<content:encoded><![CDATA[<p>Cool, lots of people are copying the iPhone GUI these days. </p>
<p>On a side note, could you make your RSS feed display full posts so I don&#8217;t have to come out of Google Reader. It kind if makes the point of an RSS feed useless.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
