<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Dan Wahlin's WebLog - All Comments</title><link>http://weblogs.asp.net/dwahlin/default.aspx</link><description>jQuery, HTML5, JavaScript, ASP.NET, and XAML</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Windows Dev News for February 12, 2012 - #0039</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/08/jquery-tip-2-manipulating-the-dom-in-a-loop.aspx#8295121</link><pubDate>Mon, 13 Feb 2012 01:56:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8295121</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;[SC1215] In This Issue: Michael Washington ( -2- ), Kevin Dockx ( -2- ), Sumit Dutta , Dhananjay Kumar&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8295121" width="1" height="1"&gt;</description></item><item><title>2012??? 2??? 10??? it ?????? ?????? |</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/08/jquery-tip-2-manipulating-the-dom-in-a-loop.aspx#8291761</link><pubDate>Fri, 10 Feb 2012 00:57:32 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8291761</guid><dc:creator>2012??? 2??? 10??? it ?????? ?????? |</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;2012??? 2??? 10??? it ?????? ?????? |&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8291761" width="1" height="1"&gt;</description></item><item><title>Dew Drop &amp;ndash; February 9, 2012 (#1,262) | Alvin Ashcraft&amp;#039;s Morning Dew</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/08/jquery-tip-2-manipulating-the-dom-in-a-loop.aspx#8290910</link><pubDate>Thu, 09 Feb 2012 13:38:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8290910</guid><dc:creator>Dew Drop – February 9, 2012 (#1,262) | Alvin Ashcraft's Morning Dew</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Dew Drop &amp;amp;ndash; February 9, 2012 (#1,262) | Alvin Ashcraft&amp;amp;#039;s Morning Dew&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8290910" width="1" height="1"&gt;</description></item><item><title>JQuery Tip #1 ??? Defining a Context When Using... | ASP.NET | Syngu</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/07/jquery-tip-1-defining-a-context-when-using-selectors.aspx#8290277</link><pubDate>Thu, 09 Feb 2012 06:44:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8290277</guid><dc:creator>JQuery Tip #1 ??? Defining a Context When Using... | ASP.NET | Syngu</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;JQuery Tip #1 ??? Defining a Context When Using... | ASP.NET | Syngu&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8290277" width="1" height="1"&gt;</description></item><item><title>Windows Dev News for February 08 - #0038</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/07/jquery-tip-1-defining-a-context-when-using-selectors.aspx#8290219</link><pubDate>Thu, 09 Feb 2012 05:54:36 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8290219</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;body { font-size: 11pt; font-family: 'Tahoma'; margin:0; padding:0; height:100%;} Windows Dev News for&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8290219" width="1" height="1"&gt;</description></item><item><title>re: jQuery Tip #1 – Defining a Context When Using Selectors</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/07/jquery-tip-1-defining-a-context-when-using-selectors.aspx#8289743</link><pubDate>Thu, 09 Feb 2012 00:53:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8289743</guid><dc:creator>dwahlin</dc:creator><description>&lt;p&gt;SGWellens: I've seen that more and more as well. I haven't converted over to it but it definitely makes it nice to pick out jQuery wrapped objects vs. raw JavaScript or DOM objects. I may convert over to that one of these days. :-)&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8289743" width="1" height="1"&gt;</description></item><item><title>re: jQuery Tip #1 – Defining a Context When Using Selectors</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/07/jquery-tip-1-defining-a-context-when-using-selectors.aspx#8289688</link><pubDate>Thu, 09 Feb 2012 00:00:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8289688</guid><dc:creator>SGWellens</dc:creator><description>&lt;p&gt;I don&amp;#39;t know how prevalent this convention is but I find it useful and I do see it a lot: &amp;nbsp;jQuery variables should start with a $ to denote they are jQuery collections:&lt;/p&gt;
&lt;p&gt;var $emailDiv = $(&amp;#39;#emailContainer&amp;#39;);&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8289688" width="1" height="1"&gt;</description></item><item><title>re: jQuery Tip #1 – Defining a Context When Using Selectors</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/07/jquery-tip-1-defining-a-context-when-using-selectors.aspx#8289607</link><pubDate>Wed, 08 Feb 2012 22:43:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8289607</guid><dc:creator>Sam Stephens</dc:creator><description>&lt;p&gt;I hadn&amp;#39;t seen the context syntax before.&lt;/p&gt;
&lt;p&gt;Personally I think the .find() syntax is more readable - it reads nicely from left to right. element.find(selector); is take an element, and find any elements it contains that match selector.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8289607" width="1" height="1"&gt;</description></item><item><title>re: jQuery Tip #1 – Defining a Context When Using Selectors</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/07/jquery-tip-1-defining-a-context-when-using-selectors.aspx#8289300</link><pubDate>Wed, 08 Feb 2012 17:25:08 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8289300</guid><dc:creator>dwahlin</dc:creator><description>&lt;p&gt;John,&lt;/p&gt;
&lt;p&gt;Thanks for taking a look. :-) For the last one, I'd just use a standard selector since you have two strings going there rather than a string and an existing jQuery/DOM object. The following would work:&lt;/p&gt;
&lt;p&gt;panels = $('#emailContainer .panel');&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8289300" width="1" height="1"&gt;</description></item><item><title>re: jQuery Tip #1 – Defining a Context When Using Selectors</title><link>http://weblogs.asp.net/dwahlin/archive/2012/02/07/jquery-tip-1-defining-a-context-when-using-selectors.aspx#8289255</link><pubDate>Wed, 08 Feb 2012 16:58:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8289255</guid><dc:creator>John Papa</dc:creator><description>&lt;p&gt;Dan,&lt;/p&gt;
&lt;p&gt;Nice series! I typed a few examples up that you mentioned ... but what are your thoughts on the last one below?&lt;/p&gt;
&lt;p&gt;var emailDiv = $(&amp;#39;#emailContainer&amp;#39;);&lt;/p&gt;
&lt;p&gt;console.log(emailDiv);&lt;/p&gt;
&lt;p&gt;var panels = $(&amp;#39;div.panel&amp;#39;, emailDiv);&lt;/p&gt;
&lt;p&gt;console.log(panels);&lt;/p&gt;
&lt;p&gt;panels = $(&amp;#39;.panel&amp;#39;, emailDiv);&lt;/p&gt;
&lt;p&gt;console.log(panels);&lt;/p&gt;
&lt;p&gt;// what about this?&lt;/p&gt;
&lt;p&gt;panels = $(&amp;#39;.panel&amp;#39;, &amp;#39;#emailContainer&amp;#39;);&lt;/p&gt;
&lt;p&gt;console.log(panels);&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8289255" width="1" height="1"&gt;</description></item></channel></rss>
