<?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: Building a reusabe font size controller interface using jQuery</title>
	<atom:link href="http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/feed" rel="self" type="application/rss+xml" />
	<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html</link>
	<description>The best javascripts for your site</description>
	<lastBuildDate>Sun, 01 Aug 2010 17:30:55 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Yokhannan</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/comment-page-1#comment-6276</link>
		<dc:creator>Yokhannan</dc:creator>
		<pubDate>Thu, 08 Apr 2010 11:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comment-6276</guid>
		<description>Hello,

When I implement this, I would like the cookie to remember the setting for every page where I call this at. For me, that is not working. If it should be, I guess I messed up. If not, could somebody please explain to me the process to get it work, thanks!

Yokhannan</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>When I implement this, I would like the cookie to remember the setting for every page where I call this at. For me, that is not working. If it should be, I guess I messed up. If not, could somebody please explain to me the process to get it work, thanks!</p>
<p>Yokhannan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rtpHarry</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/comment-page-1#comment-1892</link>
		<dc:creator>rtpHarry</dc:creator>
		<pubDate>Sat, 29 Aug 2009 13:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comment-1892</guid>
		<description>You still haven&#039;t updated the article to include the fix we discussed... tut tut! :)</description>
		<content:encoded><![CDATA[<p>You still haven&#8217;t updated the article to include the fix we discussed&#8230; tut tut! <img src='http://cool-javascripts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rtpHarry</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/comment-page-1#comment-153</link>
		<dc:creator>rtpHarry</dc:creator>
		<pubDate>Fri, 06 Mar 2009 10:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comment-153</guid>
		<description>(also I just noticed that you havent updated the jQuery code in the article to reflect this fix)</description>
		<content:encoded><![CDATA[<p>(also I just noticed that you havent updated the jQuery code in the article to reflect this fix)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rtpHarry</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/comment-page-1#comment-152</link>
		<dc:creator>rtpHarry</dc:creator>
		<pubDate>Fri, 06 Mar 2009 10:24:22 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comment-152</guid>
		<description>Hey, I was just testing the site and I realised that this was preventing the cookie from working so I changed the code around and came back to post it. Looks like we created virtually the same code. Will use yours seeing as you are the one that knows the code inside out!

Mine was:
	//Read cookie &amp; sets the fontsize
	if ($.cookie != undefined) {
		var cookie = target.replace(/[#. ]/g,&#039;&#039;);
		var value = $.cookie(cookie);
		if (value !=null) {
			$(target).css(&#039;font-size&#039;, parseInt(value));
		}
		// call default click to fix IE6 bug
		else {
			$(container + &quot; .defaultFont&quot;).click();
		}
	}</description>
		<content:encoded><![CDATA[<p>Hey, I was just testing the site and I realised that this was preventing the cookie from working so I changed the code around and came back to post it. Looks like we created virtually the same code. Will use yours seeing as you are the one that knows the code inside out!</p>
<p>Mine was:<br />
	//Read cookie &amp; sets the fontsize<br />
	if ($.cookie != undefined) {<br />
		var cookie = target.replace(/[#. ]/g,&#8221;);<br />
		var value = $.cookie(cookie);<br />
		if (value !=null) {<br />
			$(target).css(&#8217;font-size&#8217;, parseInt(value));<br />
		}<br />
		// call default click to fix IE6 bug<br />
		else {<br />
			$(container + &#8221; .defaultFont&#8221;).click();<br />
		}<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/comment-page-1#comment-145</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 04 Mar 2009 12:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comment-145</guid>
		<description>Thanks for checking this in IE6 and suggesting this method to fix the issue. But this overrides the cookie settings and thus cookie becomes useless.

But can you please check again in IE6 after clearing all cache files? (http://demos.cool-javascripts.com/jquery-fontsize-controller.html) Because I couldn&#039;t find this problem in my test machine. I think the following lines of code handles the situation. ( I have added those lines some days earlier).

//Read cookie &amp; sets the fontsize
	if ($.cookie != undefined) {
		var cookie = target.replace(/[#. ]/g,&#039;&#039;);
		var value = $.cookie(cookie);
		if (value != null) {
			$(target).css(&#039;font-size&#039;, parseInt(value));
		} else {
			$(target).css(&#039;font-size&#039;, defSize);
		}
	}

//If cookie is not set, the default font size applied to make sure IE takes it as pixels rather than em or % 

Please check http://demos.cool-javascripts.com/jquery-fontsize-controller.html</description>
		<content:encoded><![CDATA[<p>Thanks for checking this in IE6 and suggesting this method to fix the issue. But this overrides the cookie settings and thus cookie becomes useless.</p>
<p>But can you please check again in IE6 after clearing all cache files? (<a href="http://demos.cool-javascripts.com/jquery-fontsize-controller.html" rel="nofollow">http://demos.cool-javascripts.com/jquery-fontsize-controller.html</a>) Because I couldn&#8217;t find this problem in my test machine. I think the following lines of code handles the situation. ( I have added those lines some days earlier).</p>
<p>//Read cookie &#038; sets the fontsize<br />
	if ($.cookie != undefined) {<br />
		var cookie = target.replace(/[#. ]/g,&#8221;);<br />
		var value = $.cookie(cookie);<br />
		if (value != null) {<br />
			$(target).css(&#8217;font-size&#8217;, parseInt(value));<br />
		} else {<br />
			$(target).css(&#8217;font-size&#8217;, defSize);<br />
		}<br />
	}</p>
<p>//If cookie is not set, the default font size applied to make sure IE takes it as pixels rather than em or % </p>
<p>Please check <a href="http://demos.cool-javascripts.com/jquery-fontsize-controller.html" rel="nofollow">http://demos.cool-javascripts.com/jquery-fontsize-controller.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rtpHarry</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/comment-page-1#comment-141</link>
		<dc:creator>rtpHarry</dc:creator>
		<pubDate>Tue, 03 Mar 2009 14:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comment-141</guid>
		<description>Yes this fixed it. Add this in at line 70 (right after you setup the click function for defaultFont:

// rtpHarry - call default click to fix IE6 resize bug
$(container + &quot; .defaultFont&quot;).click();</description>
		<content:encoded><![CDATA[<p>Yes this fixed it. Add this in at line 70 (right after you setup the click function for defaultFont:</p>
<p>// rtpHarry &#8211; call default click to fix IE6 resize bug<br />
$(container + &#8221; .defaultFont&#8221;).click();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rtpHarry</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/comment-page-1#comment-140</link>
		<dc:creator>rtpHarry</dc:creator>
		<pubDate>Tue, 03 Mar 2009 14:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comment-140</guid>
		<description>This has issues in IE6.

On first load if you click + it goes greyed out. If you then click minus it goes to massive text. If you click reset it works fine (either after the text has exploded or first thing)

I am intending on modifying the code to see if I can call reset when the set loads.</description>
		<content:encoded><![CDATA[<p>This has issues in IE6.</p>
<p>On first load if you click + it goes greyed out. If you then click minus it goes to massive text. If you click reset it works fine (either after the text has exploded or first thing)</p>
<p>I am intending on modifying the code to see if I can call reset when the set loads.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/comment-page-1#comment-53</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 15 Jan 2009 05:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comment-53</guid>
		<description>Oops! That was a copy paste problem :) . 

Thank you very much for pointing it out.

Fixed it now. Please download the new files and try (demo is also updated).</description>
		<content:encoded><![CDATA[<p>Oops! That was a copy paste problem <img src='http://cool-javascripts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . </p>
<p>Thank you very much for pointing it out.</p>
<p>Fixed it now. Please download the new files and try (demo is also updated).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Goran Juri?</title>
		<link>http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html/comment-page-1#comment-51</link>
		<dc:creator>Goran Juri?</dc:creator>
		<pubDate>Wed, 14 Jan 2009 22:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://cool-javascripts.com/jquery/building-a-reusabe-font-size-controller-interface-using-jquery.html#comment-51</guid>
		<description>Nice one. 

Just one small bug to fix. Clicking on the &quot;default size&quot; button does not reset the cookie value.</description>
		<content:encoded><![CDATA[<p>Nice one. </p>
<p>Just one small bug to fix. Clicking on the &#8220;default size&#8221; button does not reset the cookie value.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
