<?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: How to Get Anything You Want - part 1</title>
	<atom:link href="http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<pubDate>Tue, 06 Jan 2009 23:04:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-63659</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Fri, 21 Nov 2008 19:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-63659</guid>
		<description>Hi dwigg,
You can use &lt;a href="http://docs.jquery.com/Ajax" rel="nofollow"&gt;ajax&lt;/a&gt; to send the new additions to the server.</description>
		<content:encoded><![CDATA[<p>Hi dwigg,<br />
You can use <a href="http://docs.jquery.com/Ajax" rel="nofollow">ajax</a> to send the new additions to the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dwigg</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-63657</link>
		<dc:creator>dwigg</dc:creator>
		<pubDate>Fri, 21 Nov 2008 14:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-63657</guid>
		<description>Great article. Using it I have managed to create an application that manipulates the DOM. How would any amendments such as things I may have appended be 'saved' or 'exported' so that any changes I have made will be permanent?</description>
		<content:encoded><![CDATA[<p>Great article. Using it I have managed to create an application that manipulates the DOM. How would any amendments such as things I may have appended be &#8217;saved&#8217; or &#8216;exported&#8217; so that any changes I have made will be permanent?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beau Smith</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-63346</link>
		<dc:creator>Beau Smith</dc:creator>
		<pubDate>Thu, 23 Oct 2008 16:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-63346</guid>
		<description>Anyone (or &lt;a href="http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-1898" rel="nofollow"&gt;@Lidocain&lt;/a&gt;) Why is it "Inserting HTML code [&lt;a href="http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-1898" rel="nofollow"&gt;via method here&lt;/a&gt;] really ugly"?  And why is it "a lot better to use the DOM methods"?

The example you say "should be avoided" is much less code and simpler to read.</description>
		<content:encoded><![CDATA[<p>Anyone (or <a href="http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-1898" rel="nofollow">@Lidocain</a>) Why is it &#8220;Inserting HTML code [<a href="http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-1898" rel="nofollow">via method here</a>] really ugly&#8221;?  And why is it &#8220;a lot better to use the DOM methods&#8221;?</p>
<p>The example you say &#8220;should be avoided&#8221; is much less code and simpler to read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mina</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-63333</link>
		<dc:creator>mina</dc:creator>
		<pubDate>Wed, 22 Oct 2008 10:19:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-63333</guid>
		<description>nice example. we can learn jquery easily by these type of examples. thanku</description>
		<content:encoded><![CDATA[<p>nice example. we can learn jquery easily by these type of examples. thanku</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florian</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-53719</link>
		<dc:creator>Florian</dc:creator>
		<pubDate>Fri, 22 Aug 2008 09:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-53719</guid>
		<description>How would I access value 1, 2 and 3 in href? Right now to make it easy I have
stored my different values in id, in name and title attribute but that's somehow
an abuse.

[a class="test" href="javascript:myFunction(value1,value2,value3)"]

thx</description>
		<content:encoded><![CDATA[<p>How would I access value 1, 2 and 3 in href? Right now to make it easy I have<br />
stored my different values in id, in name and title attribute but that&#8217;s somehow<br />
an abuse.</p>
<p>[a class="test" href="javascript:myFunction(value1,value2,value3)"]</p>
<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Stewart</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-51217</link>
		<dc:creator>Scott Stewart</dc:creator>
		<pubDate>Mon, 14 Jul 2008 19:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-51217</guid>
		<description>How do you access the selectors on a parent page: IE I want to send selected checkbox values, from a window opened by javascript back to a textarea element on the parent page.?

thanks

sas</description>
		<content:encoded><![CDATA[<p>How do you access the selectors on a parent page: IE I want to send selected checkbox values, from a window opened by javascript back to a textarea element on the parent page.?</p>
<p>thanks</p>
<p>sas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tester</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-48329</link>
		<dc:creator>Tester</dc:creator>
		<pubDate>Wed, 28 May 2008 10:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-48329</guid>
		<description>This is only a TEST</description>
		<content:encoded><![CDATA[<p>This is only a TEST</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-19314</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Tue, 06 Nov 2007 04:17:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-19314</guid>
		<description>Hi Mike,

Part 2 &lt;a href="http://www.learningjquery.com/2006/12/how-to-get-anything-you-want-part-2" rel="nofollow"&gt;has been out for a while&lt;/a&gt;. :)

To select all elements with a particular class unless they have a specific &lt;em&gt;descendant&lt;/em&gt; element, you could do this: &lt;code&gt;$('.some-class:not(:has(someElement))')&lt;/code&gt;

If you need to remove elements only based on their direct children (rather than any descendant), then you could do this:

&lt;pre&gt;&lt;code&gt;$('.some-class').filter(function() {
  return !$(this).children('someElement').length;
})&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Part 2 <a href="http://www.learningjquery.com/2006/12/how-to-get-anything-you-want-part-2" rel="nofollow">has been out for a while</a>. <img src='http://www.learningjquery.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>To select all elements with a particular class unless they have a specific <em>descendant</em> element, you could do this: <code>$('.some-class:not(:has(someElement))')</code></p>
<p>If you need to remove elements only based on their direct children (rather than any descendant), then you could do this:</p>
<pre><code>$('.some-class').filter(function() {
  return !$(this).children('someElement').length;
})</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery Tips &#187; Selectors ในแบบฉบับของ jQuery</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-17245</link>
		<dc:creator>jQuery Tips &#187; Selectors ในแบบฉบับของ jQuery</dc:creator>
		<pubDate>Tue, 23 Oct 2007 11:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-17245</guid>
		<description>[...] How to get everything you want part 1 How to get everything you want part 2 jQuery Selectors [...]</description>
		<content:encoded><![CDATA[<p>[...] How to get everything you want part 1 How to get everything you want part 2 jQuery Selectors [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asle</title>
		<link>http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1/comment-page-1#comment-15843</link>
		<dc:creator>Asle</dc:creator>
		<pubDate>Thu, 11 Oct 2007 14:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2006/11/how-to-get-anything-you-want-part-1#comment-15843</guid>
		<description>Refering to your answer to Stefan, I want to submit a link after checking a form. It seems with jQuery I do not have to have &#60;a&#62; to make a link. I have a button in my last post. I need a confirm before sending the link. Should I have the button as a link or do it this way?
&lt;pre&gt;&lt;code&gt;
$("button.negative").click(function() {
	 var qid = $(this).parents("tr:first").attr("id");
	 var tid = $(this).parents("tr:first").find("td.title").text();
 	return confirm('Are you sure you want to delete"' + tid +'"?');
	 location ="?m=del&#38;Qid="+qid;
   })
&lt;/code&gt;&lt;/pre&gt;
So answering yes would send a link to the same page with params. But the page is not loaded when I use the "return confirm" statement.</description>
		<content:encoded><![CDATA[<p>Refering to your answer to Stefan, I want to submit a link after checking a form. It seems with jQuery I do not have to have &lt;a&gt; to make a link. I have a button in my last post. I need a confirm before sending the link. Should I have the button as a link or do it this way?</p>
<pre><code>
$("button.negative").click(function() {
	 var qid = $(this).parents("tr:first").attr("id");
	 var tid = $(this).parents("tr:first").find("td.title").text();
 	return confirm('Are you sure you want to delete"' + tid +'"?');
	 location ="?m=del&amp;Qid="+qid;
   })
</code></pre>
<p>So answering yes would send a link to the same page with params. But the page is not loaded when I use the &#8220;return confirm&#8221; statement.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
