<?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"
	>
<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>development in a land far far away...</description>
	<pubDate>Thu, 28 Aug 2008 16:34:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: Michael Sharman</title>
		<link>http://www.chapter31.com/2008/03/10/showing-and-hiding-elements-with-css-and-javascript/#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're not using "window.onload" if you have a JS framework in place? That would be much slower than using the "DOM ready" approach that either Prototype or jQuery provide.</description>
		<content:encoded><![CDATA[<p>@Zac - 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-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've been handling this case is similarly using the onload property of the DOM window object.  I'm curious whether it's functionally exactly the same as your solution -- if so, this code is slightly shorter:

&lt;code&gt;
window.onload = init;
function init() {
  $('myEl').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;$('#myEl').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-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'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'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-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 - 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>
