<?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: Using javascript to hide and unhide elements dynamically</title>
	<atom:link href="http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 11:37:22 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: eRIZ</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-609787</link>
		<dc:creator>eRIZ</dc:creator>
		<pubDate>Fri, 16 Jan 2009 20:57:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-609787</guid>
		<description>&lt;strong&gt;~Phao Loo&lt;/strong&gt;: 90 KiB? Huh, uncompressed version...

But compressed not as big as the biggest one.

What&#039;s a problem selecting a part of code which manages event binding? jQ is modular. ;)</description>
		<content:encoded><![CDATA[<p><strong>~Phao Loo</strong>: 90 KiB? Huh, uncompressed version&#8230;</p>
<p>But compressed not as big as the biggest one.</p>
<p>What&#8217;s a problem selecting a part of code which manages event binding? jQ is modular. ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Pataki</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-609622</link>
		<dc:creator>Daniel Pataki</dc:creator>
		<pubDate>Fri, 16 Jan 2009 18:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-609622</guid>
		<description>Hi jurkis!

Try something like this (use the same js as I have in the post):

&lt;a id=&quot;link1&quot; href=&quot;javascript:display(&#039;show&#039;, 1)&quot;&gt;Question goes here&lt;/a&gt;
&lt;div id=&quot;explanation1&quot; style=&quot;display:none&quot;&gt;Explanation goes here&lt;/div&gt;

For the secod question you would have: 

&lt;a id=&quot;link2&quot; href=&quot;javascript:display(&#039;show&#039;, 2)&quot;&gt;Question goes here&lt;/a&gt;
&lt;div id=&quot;explanation2&quot; style=&quot;display:none&quot;&gt;Explanation goes here&lt;/div&gt;</description>
		<content:encoded><![CDATA[<p>Hi jurkis!</p>
<p>Try something like this (use the same js as I have in the post):</p>
<p>&lt;a id=&#8221;link1&#8243; href=&#8221;javascript:display(&#8217;show&#8217;, 1)&#8221;&gt;Question goes here&lt;/a&gt;<br />
&lt;div id=&#8221;explanation1&#8243; style=&#8221;display:none&#8221;&gt;Explanation goes here&lt;/div&gt;</p>
<p>For the secod question you would have: </p>
<p>&lt;a id=&#8221;link2&#8243; href=&#8221;javascript:display(&#8217;show&#8217;, 2)&#8221;&gt;Question goes here&lt;/a&gt;<br />
&lt;div id=&#8221;explanation2&#8243; style=&#8221;display:none&#8221;&gt;Explanation goes here&lt;/div&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-609075</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 16 Jan 2009 10:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-609075</guid>
		<description>That&#039;s an interesting idea Jojo. I think about it.</description>
		<content:encoded><![CDATA[<p>That&#8217;s an interesting idea Jojo. I think about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jurkis</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-609046</link>
		<dc:creator>jurkis</dc:creator>
		<pubDate>Fri, 16 Jan 2009 09:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-609046</guid>
		<description>Let&#039;s say i have a FAQ page.
How to make this script to open/close Answer by clicking on Question? 

Sorry for my english.</description>
		<content:encoded><![CDATA[<p>Let&#8217;s say i have a FAQ page.<br />
How to make this script to open/close Answer by clicking on Question? </p>
<p>Sorry for my english.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jojo</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-609043</link>
		<dc:creator>Jojo</dc:creator>
		<pubDate>Fri, 16 Jan 2009 09:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-609043</guid>
		<description>Maybe you could make a subdomain, say tutorials.ghacks.net with an index for grouping these lessons?</description>
		<content:encoded><![CDATA[<p>Maybe you could make a subdomain, say tutorials.ghacks.net with an index for grouping these lessons?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phao Loo</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-608379</link>
		<dc:creator>Phao Loo</dc:creator>
		<pubDate>Fri, 16 Jan 2009 00:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-608379</guid>
		<description>Nice tips, I like thí.
@eRIZ: instead of using more than 90kb for jQuery for this, just use this code.</description>
		<content:encoded><![CDATA[<p>Nice tips, I like thí.<br />
@eRIZ: instead of using more than 90kb for jQuery for this, just use this code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Pataki</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-608251</link>
		<dc:creator>Daniel Pataki</dc:creator>
		<pubDate>Thu, 15 Jan 2009 23:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-608251</guid>
		<description>Hi eRIZ!

I did not know that javascript pseudoprotocol was not the best solution, I&#039;ll switch, thanks :) We live and learn!</description>
		<content:encoded><![CDATA[<p>Hi eRIZ!</p>
<p>I did not know that javascript pseudoprotocol was not the best solution, I&#8217;ll switch, thanks :) We live and learn!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eRIZ</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-608106</link>
		<dc:creator>eRIZ</dc:creator>
		<pubDate>Thu, 15 Jan 2009 18:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-608106</guid>
		<description>err: &lt;em&gt;onclick&lt;/em&gt; instead of &lt;em&gt;click&lt;/em&gt;; I&#039;ve been working too long with jQuery. ;)</description>
		<content:encoded><![CDATA[<p>err: <em>onclick</em> instead of <em>click</em>; I&#8217;ve been working too long with jQuery. ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eRIZ</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-608105</link>
		<dc:creator>eRIZ</dc:creator>
		<pubDate>Thu, 15 Jan 2009 18:46:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-608105</guid>
		<description>Hey, dude, WT... &quot;javascript&quot;?

Have you ever heard about unobtrusive event binding?

&lt;code&gt;var l = document.getElementById(&#039;ident&#039;);
l.click = function(){ alert(&#039;wassup?!&#039;); return false; }&lt;/code&gt;

&lt;em&gt;javascript&lt;/em&gt; pseudoprotocol is bad and not semantic...</description>
		<content:encoded><![CDATA[<p>Hey, dude, WT&#8230; &#8220;javascript&#8221;?</p>
<p>Have you ever heard about unobtrusive event binding?</p>
<p><code>var l = document.getElementById('ident');<br />
l.click = function(){ alert('wassup?!'); return false; }</code></p>
<p><em>javascript</em> pseudoprotocol is bad and not semantic&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iampriteshdesai</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-608074</link>
		<dc:creator>iampriteshdesai</dc:creator>
		<pubDate>Thu, 15 Jan 2009 17:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-608074</guid>
		<description>I always find this thing to be very annoying on while writing my blog. I type &amp; sign but when I login some time later I find it has changed to &amp;amp, anybody knows why?</description>
		<content:encoded><![CDATA[<p>I always find this thing to be very annoying on while writing my blog. I type &amp; sign but when I login some time later I find it has changed to &amp;amp, anybody knows why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Pataki</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-608071</link>
		<dc:creator>Daniel Pataki</dc:creator>
		<pubDate>Thu, 15 Jan 2009 17:17:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-608071</guid>
		<description>No problem gB :) For the same reason you can&#039;t really copy paste link codes and stuff from Word documents unless you do some preparation first :( 

Pretty easy to find &amp; replace, but still a bother.</description>
		<content:encoded><![CDATA[<p>No problem gB :) For the same reason you can&#8217;t really copy paste link codes and stuff from Word documents unless you do some preparation first :( </p>
<p>Pretty easy to find &amp; replace, but still a bother.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gB</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-608053</link>
		<dc:creator>gB</dc:creator>
		<pubDate>Thu, 15 Jan 2009 16:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-608053</guid>
		<description>Wow thanks for the fast response. Fixed the quotes like you said and now it works like a charm.

Awesome</description>
		<content:encoded><![CDATA[<p>Wow thanks for the fast response. Fixed the quotes like you said and now it works like a charm.</p>
<p>Awesome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Pataki</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-608029</link>
		<dc:creator>Daniel Pataki</dc:creator>
		<pubDate>Thu, 15 Jan 2009 15:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-608029</guid>
		<description>Happy I could help :) There are loads of other ways to do this, I&#039;ll get to them later. If you put a lot of content in hidden divs it&#039;s actually better to pull the content from another page or db, since then you don&#039;t need to load all of it initally, just the ones visible :) 
More on this later :)</description>
		<content:encoded><![CDATA[<p>Happy I could help :) There are loads of other ways to do this, I&#8217;ll get to them later. If you put a lot of content in hidden divs it&#8217;s actually better to pull the content from another page or db, since then you don&#8217;t need to load all of it initally, just the ones visible :)<br />
More on this later :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-608012</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Thu, 15 Jan 2009 15:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-608012</guid>
		<description>well that was fun - using this technique I managed to put all a (small) site&#039;s content on one page, and use the hiding/unhiding of sections to simulate pagination. Cut down on a hell of a lot of work for me, so thanks again Daniel!</description>
		<content:encoded><![CDATA[<p>well that was fun &#8211; using this technique I managed to put all a (small) site&#8217;s content on one page, and use the hiding/unhiding of sections to simulate pagination. Cut down on a hell of a lot of work for me, so thanks again Daniel!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SK Mezanul</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-607978</link>
		<dc:creator>SK Mezanul</dc:creator>
		<pubDate>Thu, 15 Jan 2009 13:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-607978</guid>
		<description>Thanks Daniel, keep these tutorials coming!! they are very useful :)
and as Paul suggested i too wish for the same, i.e. pdf edition. Thanks. :)</description>
		<content:encoded><![CDATA[<p>Thanks Daniel, keep these tutorials coming!! they are very useful :)<br />
and as Paul suggested i too wish for the same, i.e. pdf edition. Thanks. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Pataki</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-607966</link>
		<dc:creator>Daniel Pataki</dc:creator>
		<pubDate>Thu, 15 Jan 2009 13:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-607966</guid>
		<description>Hi guys!

Thanks for the praise, I&#039;ll keep &#039;em coming :) 

Hi gB! 
I should have written about this before, what you need to do is replace ALL the quotes in what you copy pasted with actual quotes. They appear as these weird slanted things in the post, there should always be simple &#039; and &quot; whenever you see single or duoble quotes. 

I will try and work out something where you can copy-paste!

Hi Paul!

Right now I don&#039;t really have time to compile something like that, but if these articles are successful I will think about it :) 

Thanks again for the praise and this is such a great method, I really do love it so, please use it :)</description>
		<content:encoded><![CDATA[<p>Hi guys!</p>
<p>Thanks for the praise, I&#8217;ll keep &#8216;em coming :) </p>
<p>Hi gB!<br />
I should have written about this before, what you need to do is replace ALL the quotes in what you copy pasted with actual quotes. They appear as these weird slanted things in the post, there should always be simple &#8216; and &#8221; whenever you see single or duoble quotes. </p>
<p>I will try and work out something where you can copy-paste!</p>
<p>Hi Paul!</p>
<p>Right now I don&#8217;t really have time to compile something like that, but if these articles are successful I will think about it :) </p>
<p>Thanks again for the praise and this is such a great method, I really do love it so, please use it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul.</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-607917</link>
		<dc:creator>Paul.</dc:creator>
		<pubDate>Thu, 15 Jan 2009 11:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-607917</guid>
		<description>Hoi Daniel great read again. Is it possible that you make every mounth a .PDF, with that mounth artikels?</description>
		<content:encoded><![CDATA[<p>Hoi Daniel great read again. Is it possible that you make every mounth a .PDF, with that mounth artikels?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gB</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-607884</link>
		<dc:creator>gB</dc:creator>
		<pubDate>Thu, 15 Jan 2009 09:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-607884</guid>
		<description>Sorry can&#039;t find a way to edit my comment. Just wanted to also add excellent work on the php and now js articles. Keep&#039;em coming.</description>
		<content:encoded><![CDATA[<p>Sorry can&#8217;t find a way to edit my comment. Just wanted to also add excellent work on the php and now js articles. Keep&#8217;em coming.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gB</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-607882</link>
		<dc:creator>gB</dc:creator>
		<pubDate>Thu, 15 Jan 2009 09:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-607882</guid>
		<description>I&#039;m new to javascript so I could very well be missing something. But I&#039;ve copied and pasted (actual Ctrl C and Ctrl V) this code into a basic html file so I could see it action, and clicking on the Explain link does nothing. I&#039;ve tried putting the  part both in the head and body and nada. Any clue on a reason why?</description>
		<content:encoded><![CDATA[<p>I&#8217;m new to javascript so I could very well be missing something. But I&#8217;ve copied and pasted (actual Ctrl C and Ctrl V) this code into a basic html file so I could see it action, and clicking on the Explain link does nothing. I&#8217;ve tried putting the  part both in the head and body and nada. Any clue on a reason why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/#comment-607817</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Thu, 15 Jan 2009 07:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.ghacks.net/?p=9899#comment-607817</guid>
		<description>I concur, I&#039;ve just refreshed my basic web design (CSS &amp; HTML) and I&#039;d love to learn some Javascript without just cut/pasting from code snippets.

Lurn me good, gHacks!</description>
		<content:encoded><![CDATA[<p>I concur, I&#8217;ve just refreshed my basic web design (CSS &amp; HTML) and I&#8217;d love to learn some Javascript without just cut/pasting from code snippets.</p>
<p>Lurn me good, gHacks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
