<?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: Showing and hiding elements with CSS and JavaScript</title>
	<atom:link href="http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/</link>
	<description>Rich Internet Application development</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:10:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Michael Sharman</title>
		<link>http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/comment-page-1/#comment-46364</link>
		<dc:creator>Michael Sharman</dc:creator>
		<pubDate>Sat, 19 Apr 2008 23:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/#comment-46364</guid>
		<description>@Zac - Yep, jQuery will show an element which has been hidden using a style in an external .css file (display:none;).

Not really sure why Prototype has problems with this, hence the workaround.

I assume you&#039;re not using &quot;window.onload&quot; if you have a JS framework in place? That would be much slower than using the &quot;DOM ready&quot; approach that either Prototype or jQuery provide.</description>
		<content:encoded><![CDATA[<p>@Zac &#8211; Yep, jQuery will show an element which has been hidden using a style in an external .css file (display:none;).</p>
<p>Not really sure why Prototype has problems with this, hence the workaround.</p>
<p>I assume you&#8217;re not using &#8220;window.onload&#8221; if you have a JS framework in place? That would be much slower than using the &#8220;DOM ready&#8221; approach that either Prototype or jQuery provide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zachary Crockett</title>
		<link>http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/comment-page-1/#comment-46362</link>
		<dc:creator>Zachary Crockett</dc:creator>
		<pubDate>Sat, 19 Apr 2008 23:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/#comment-46362</guid>
		<description>The way I&#039;ve been handling this case is similarly using the onload property of the DOM window object.  I&#039;m curious whether it&#039;s functionally exactly the same as your solution -- if so, this code is slightly shorter:

&lt;code&gt;
window.onload = init;
function init() {
  $(&#039;myEl&#039;).hide();
}
&lt;/code&gt;

Also, for the record, this will work with jQuery with one tiny modification.  Add the pound sign for selecting an ID:
&lt;code&gt;$(&#039;#myEl&#039;).hide();&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>The way I&#8217;ve been handling this case is similarly using the onload property of the DOM window object.  I&#8217;m curious whether it&#8217;s functionally exactly the same as your solution &#8212; if so, this code is slightly shorter:</p>
<p><code><br />
window.onload = init;<br />
function init() {<br />
  $('myEl').hide();<br />
}<br />
</code></p>
<p>Also, for the record, this will work with jQuery with one tiny modification.  Add the pound sign for selecting an ID:<br />
<code>$('#myEl').hide();</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Sharman</title>
		<link>http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/comment-page-1/#comment-41254</link>
		<dc:creator>Michael Sharman</dc:creator>
		<pubDate>Tue, 11 Mar 2008 12:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/#comment-41254</guid>
		<description>I must admit this particular scenario I&#039;ve only had to do when using Prototype. 

I have of course manipulated stylesheets with jQuery, just not with hiding/showing elements.

That is great news that it is possible with jQuery.

I&#039;ll have to give it a go when I get a chance.

Thanks</description>
		<content:encoded><![CDATA[<p>I must admit this particular scenario I&#8217;ve only had to do when using Prototype. </p>
<p>I have of course manipulated stylesheets with jQuery, just not with hiding/showing elements.</p>
<p>That is great news that it is possible with jQuery.</p>
<p>I&#8217;ll have to give it a go when I get a chance.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb Duggan</title>
		<link>http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/comment-page-1/#comment-41231</link>
		<dc:creator>Seb Duggan</dc:creator>
		<pubDate>Tue, 11 Mar 2008 08:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/#comment-41231</guid>
		<description>As far as I can see, this seems to be a problem with Prototype, rather than JS/CSS as a whole.

I have done exactly what you describe using jQuery, and it works perfectly, and as expected.

You mention having to use your workaround in jQuery too - have you actually tried it in jQuery, or did you assume it would behave the same way as Prototype (of which, for the record, I have no working experience...)?</description>
		<content:encoded><![CDATA[<p>As far as I can see, this seems to be a problem with Prototype, rather than JS/CSS as a whole.</p>
<p>I have done exactly what you describe using jQuery, and it works perfectly, and as expected.</p>
<p>You mention having to use your workaround in jQuery too &#8211; have you actually tried it in jQuery, or did you assume it would behave the same way as Prototype (of which, for the record, I have no working experience&#8230;)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: chapter31.nfshost.com @ 2012-02-10 13:35:33 -->
