<?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: jQuery &#8211; show / hide button with AJAX functionality</title>
	<atom:link href="http://www.designing4u.de/2008/05/jquery-show-hide-button-with-ajax-functionality/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designing4u.de/2008/05/jquery-show-hide-button-with-ajax-functionality/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-show-hide-button-with-ajax-functionality</link>
	<description>Yet Another Coding Blog</description>
	<lastBuildDate>Fri, 23 Sep 2011 08:55:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Wojtek</title>
		<link>http://www.designing4u.de/2008/05/jquery-show-hide-button-with-ajax-functionality/comment-page-1/#comment-35</link>
		<dc:creator>Wojtek</dc:creator>
		<pubDate>Sun, 12 Oct 2008 10:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.designing4u.de/?p=11#comment-35</guid>
		<description>I wrote another example, which explains better how to load different content to each box. You can find it &lt;a href=&quot;http://www.designing4u.de/2008/07/jquery-show-hide-button-for-multiple-div-containers-with-ajax-and-json/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. Let me know, if it helped.</description>
		<content:encoded><![CDATA[<p>I wrote another example, which explains better how to load different content to each box. You can find it <a href="http://www.designing4u.de/2008/07/jquery-show-hide-button-for-multiple-div-containers-with-ajax-and-json/" rel="nofollow">here</a>. Let me know, if it helped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin</title>
		<link>http://www.designing4u.de/2008/05/jquery-show-hide-button-with-ajax-functionality/comment-page-1/#comment-34</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Sat, 11 Oct 2008 23:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.designing4u.de/?p=11#comment-34</guid>
		<description>I love this code, but I&#039;m a little fuzzy on how to allow multiple parameters as Tim commented.  I don&#039;t mean to be difficult, but how would you use this code if you had a list so each box displayed different information?

thanks</description>
		<content:encoded><![CDATA[<p>I love this code, but I&#8217;m a little fuzzy on how to allow multiple parameters as Tim commented.  I don&#8217;t mean to be difficult, but how would you use this code if you had a list so each box displayed different information?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wojtek</title>
		<link>http://www.designing4u.de/2008/05/jquery-show-hide-button-with-ajax-functionality/comment-page-1/#comment-16</link>
		<dc:creator>Wojtek</dc:creator>
		<pubDate>Mon, 09 Jun 2008 09:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.designing4u.de/?p=11#comment-16</guid>
		<description>You will need to change the second line of jQuery function to:

$(&#039;.link&#039;,this).toggle()

Additionally you will need to move line 9 outside the AJAX request and paste it right after AJAX request (line 16), changed to:

$(this).html(&#039;hide&#039;);

If you want to pass extra parameters to your asp file you will need to use data property in the AJAX request:

$.ajax({
data:$(this).attr(&#039;href&#039;),
})

You can also check &lt;a href=&quot;http://www.designing4u.de/2008/06/loading-content-into-multiple-div-containers-using-jquery-and-json/&quot; rel=&quot;nofollow&quot;&gt;this&lt;/a&gt;  example. I hope it will help you. I will try to write a new example, where I will explain it better.</description>
		<content:encoded><![CDATA[<p>You will need to change the second line of jQuery function to:</p>
<p>$(&#8216;.link&#8217;,this).toggle()</p>
<p>Additionally you will need to move line 9 outside the AJAX request and paste it right after AJAX request (line 16), changed to:</p>
<p>$(this).html(&#8216;hide&#8217;);</p>
<p>If you want to pass extra parameters to your asp file you will need to use data property in the AJAX request:</p>
<p>$.ajax({<br />
data:$(this).attr(&#8216;href&#8217;),<br />
})</p>
<p>You can also check <a href="http://www.designing4u.de/2008/06/loading-content-into-multiple-div-containers-using-jquery-and-json/" rel="nofollow">this</a>  example. I hope it will help you. I will try to write a new example, where I will explain it better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.designing4u.de/2008/05/jquery-show-hide-button-with-ajax-functionality/comment-page-1/#comment-15</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sun, 08 Jun 2008 22:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.designing4u.de/?p=11#comment-15</guid>
		<description>It is great. However can you fulfill an additional function with a parameter.

For example:

&lt;a href=&quot;aaa.asp?id=1&quot; rel=&quot;nofollow&quot;&gt;show1&lt;/a&gt;
&lt;a href=&quot;aaa.asp?id=2&quot; rel=&quot;nofollow&quot;&gt;show2&lt;/a&gt;
&lt;a href=&quot;aaa.asp?id=3&quot; rel=&quot;nofollow&quot;&gt;show3&lt;/a&gt;



I hope when I click these links, &quot;box&quot; will display different content.

Can you help me do it? thanks</description>
		<content:encoded><![CDATA[<p>It is great. However can you fulfill an additional function with a parameter.</p>
<p>For example:</p>
<p><a href="aaa.asp?id=1" rel="nofollow">show1</a><br />
<a href="aaa.asp?id=2" rel="nofollow">show2</a><br />
<a href="aaa.asp?id=3" rel="nofollow">show3</a></p>
<p>I hope when I click these links, &#8220;box&#8221; will display different content.</p>
<p>Can you help me do it? thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

