<?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 news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sun, 12 Feb 2012 07:04:03 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: A-B Testing Made Easy &#124; Mobile Phone Unlockers</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-2/#comment-1358345</link> <dc:creator>A-B Testing Made Easy &#124; Mobile Phone Unlockers</dc:creator> <pubDate>Wed, 10 Aug 2011 19:42:55 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1358345</guid> <description>[...] Using javascript to hide and unhide elements dynamicallyWeb Development: Realtime Fonts ChangerFind Out which Website Loads FasterGoogle Page Speed Service, Website Optimization ServicePanabee, Domain Name Suggestion Tool [...]</description> <content:encoded><![CDATA[<p>[...] Using javascript to hide and unhide elements dynamicallyWeb Development: Realtime Fonts ChangerFind Out which Website Loads FasterGoogle Page Speed Service, Website Optimization ServicePanabee, Domain Name Suggestion Tool [...]</p> ]]></content:encoded> </item> <item><title>By: Rolando</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-2/#comment-1302919</link> <dc:creator>Rolando</dc:creator> <pubDate>Fri, 04 Feb 2011 22:44:37 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1302919</guid> <description>Very Nice. Thanks a lot friend.</description> <content:encoded><![CDATA[<p>Very Nice. Thanks a lot friend.</p> ]]></content:encoded> </item> <item><title>By: Uma</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-1/#comment-1239849</link> <dc:creator>Uma</dc:creator> <pubDate>Fri, 12 Nov 2010 09:07:40 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1239849</guid> <description>Really good one! Thanks a lot...</description> <content:encoded><![CDATA[<p>Really good one! Thanks a lot&#8230;</p> ]]></content:encoded> </item> <item><title>By: psmail</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-1/#comment-1230431</link> <dc:creator>psmail</dc:creator> <pubDate>Fri, 05 Nov 2010 02:47:27 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1230431</guid> <description>This was super useful - thanks</description> <content:encoded><![CDATA[<p>This was super useful &#8211; thanks</p> ]]></content:encoded> </item> <item><title>By: icesurfer</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-1/#comment-1229037</link> <dc:creator>icesurfer</dc:creator> <pubDate>Wed, 03 Nov 2010 18:13:21 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1229037</guid> <description>This would be a good tutorial, but you left half of it out. It&#039;s obvious to me that your neglect in putting in html code examples makes it all but useless to the novice. Being fairly experienced I figured out how to do it on my own, but I expect most people will not be able to do that so easily.
If you&#039;re going to take the time to do something, take the time to do it right. Otherwise, don&#039;t bother!
Please let me know when you correct this very substandard article!</description> <content:encoded><![CDATA[<p>This would be a good tutorial, but you left half of it out. It&#8217;s obvious to me that your neglect in putting in html code examples makes it all but useless to the novice. Being fairly experienced I figured out how to do it on my own, but I expect most people will not be able to do that so easily.</p><p>If you&#8217;re going to take the time to do something, take the time to do it right. Otherwise, don&#8217;t bother!</p><p>Please let me know when you correct this very substandard article!</p> ]]></content:encoded> </item> <item><title>By: Faze</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-1/#comment-1131265</link> <dc:creator>Faze</dc:creator> <pubDate>Mon, 12 Jul 2010 11:30:55 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1131265</guid> <description>Following on from the FAQ example, how would you change the JS so that you could make the page display the riginal text for the link when you close it, rather than &quot;Explain&quot; (or any other standard text)...as each question would presumably have a different text displayed...?
Thanks</description> <content:encoded><![CDATA[<p>Following on from the FAQ example, how would you change the JS so that you could make the page display the riginal text for the link when you close it, rather than &#8220;Explain&#8221; (or any other standard text)&#8230;as each question would presumably have a different text displayed&#8230;?</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Faze</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-1/#comment-1131253</link> <dc:creator>Faze</dc:creator> <pubDate>Mon, 12 Jul 2010 11:15:51 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1131253</guid> <description>Excellent! Very very useful! Thank you!</description> <content:encoded><![CDATA[<p>Excellent! Very very useful! Thank you!</p> ]]></content:encoded> </item> <item><title>By: tyra_0729</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-1/#comment-1119482</link> <dc:creator>tyra_0729</dc:creator> <pubDate>Sun, 27 Jun 2010 11:37:08 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1119482</guid> <description>thx! i found what i want here</description> <content:encoded><![CDATA[<p>thx! i found what i want here</p> ]]></content:encoded> </item> <item><title>By: Added Javascript to home page &#171; Glen&#39;s Blog</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-1/#comment-1093844</link> <dc:creator>Added Javascript to home page &#171; Glen&#39;s Blog</dc:creator> <pubDate>Sun, 30 May 2010 07:41:27 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1093844</guid> <description>[...] Show/Hide doodles link to home page using the javascript technique described here.   Comments [...]</description> <content:encoded><![CDATA[<p>[...] Show/Hide doodles link to home page using the javascript technique described here.   Comments [...]</p> ]]></content:encoded> </item> <item><title>By: Mark</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-1/#comment-1070751</link> <dc:creator>Mark</dc:creator> <pubDate>Sat, 08 May 2010 09:50:16 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-1070751</guid> <description>Fantastic. Exactly what I needed.</description> <content:encoded><![CDATA[<p>Fantastic. Exactly what I needed.</p> ]]></content:encoded> </item> <item><title>By: Damon</title><link>http://www.ghacks.net/2009/01/15/using-javascript-to-hide-and-unhide-elements-dynamically/comment-page-1/#comment-998213</link> <dc:creator>Damon</dc:creator> <pubDate>Wed, 10 Mar 2010 22:26:52 +0000</pubDate> <guid
isPermaLink="false">http://www.ghacks.net/?p=9899#comment-998213</guid> <description>Awesome! I&#039;m just learning HTML and CSS now, and will get into JS soon enough, but this will be a big help on what I wanted to do. (:</description> <content:encoded><![CDATA[<p>Awesome! I&#8217;m just learning HTML and CSS now, and will get into JS soon enough, but this will be a big help on what I wanted to do. (:</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-page-1/#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-page-1/#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(&#8216;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(&#8216;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-page-1/#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-page-1/#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-page-1/#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-page-1/#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-page-1/#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-page-1/#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-page-1/#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> </channel> </rss>
