<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: DOMAssistant 2.5 released - CSS selector support, new AJAX methods and more goodies added!</title>
	<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/</link>
	<description>Web development and Internet trends</description>
	<pubDate>Sun, 27 Jul 2008 08:01:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3</generator>
		<item>
		<title>By: Lightweight, cross-browser set of js tools for building dynamic Web-app UIs &#171; Phpdreamsite&#8217;s Weblog</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-229731</link>
		<dc:creator>Lightweight, cross-browser set of js tools for building dynamic Web-app UIs &#171; Phpdreamsite&#8217;s Weblog</dc:creator>
		<pubDate>Thu, 13 Mar 2008 19:37:24 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-229731</guid>
		<description>[...] DOMAssistant [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] DOMAssistant [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Worth a look: DOMAssistant - Friendly Bit</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-218334</link>
		<dc:creator>Worth a look: DOMAssistant - Friendly Bit</dc:creator>
		<pubDate>Mon, 25 Feb 2008 20:30:43 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-218334</guid>
		<description>[...] whined, and said I really liked the CSS-selector syntax that jQuery has. So he added support for CSS1, CSS2, and CSS3. The [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] whined, and said I really liked the <acronym title="Cascading Style Sheets">CSS</acronym>-selector syntax that jQuery has. So he added support for CSS1, CSS2, and CSS3. The [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-191454</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Wed, 23 Jan 2008 08:14:39 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-191454</guid>
		<description>Karthik,

You can see in the &lt;a href="http://www.robertnyman.com/domassistant/documentation/DOMAssistantAJAX-module.html" rel="nofollow"&gt;DOMAssistant.AJAX module&lt;/a&gt; how to do it. Basically, it's like this:

&lt;code&gt;$("textbox-id").load("news.php");&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Karthik,</p>
<p>You can see in the <a href="http://www.robertnyman.com/domassistant/documentation/DOMAssistantAJAX-module.html" rel="nofollow">DOMAssistant.AJAX module</a> how to do it. Basically, it&#8217;s like this:</p>
<p><code>$("textbox-id").load("news.php");</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-191436</link>
		<dc:creator>Karthik</dc:creator>
		<pubDate>Wed, 23 Jan 2008 07:19:55 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-191436</guid>
		<description>I have a set of functions in php for database interactions. I want to call that from a html page using AJAX calls and display the returned results in a text box on the html page. IS that possible?

Awaiting reply. Thanks in Advance.</description>
		<content:encoded><![CDATA[<p>I have a set of functions in <acronym title="Hypertext PreProcessing">PHP</acronym> for database interactions. I want to call that from a <acronym title="HyperText Markup Language">HTML</acronym> page using <acronym title="Asynchronous Javascript and XML">AJAX</acronym> calls and display the returned results in a text box on the <acronym title="HyperText Markup Language">HTML</acronym> page. IS that possible?</p>
<p>Awaiting reply. Thanks in Advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chenghong</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-179023</link>
		<dc:creator>chenghong</dc:creator>
		<pubDate>Tue, 08 Jan 2008 05:05:22 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-179023</guid>
		<description>Thanks for fixing the bug!

I would most definitely love to test the fix ahead of release.</description>
		<content:encoded><![CDATA[<p>Thanks for fixing the bug!</p>
<p>I would most definitely love to test the fix ahead of release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-178105</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Mon, 07 Jan 2008 09:50:04 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-178105</guid>
		<description>chenghong,

You're doing nothing wrong at all, there was a bug in the &lt;code&gt;:not&lt;/code&gt; syntax in the non-XPath version for Internet Explorer. This has now been addressed and the fix, together with some feature updates, will be released within a few days. If you need a working version right now, let me know and I'll e-mail it to you.

In the future, please &lt;a href="http://code.google.com/p/domassistant/issues/list" rel="nofollow"&gt;report issues at the code site&lt;/a&gt;. I've now reported and resolved this one.

Thanks for letting me know!</description>
		<content:encoded><![CDATA[<p>chenghong,</p>
<p>You&#8217;re doing nothing wrong at all, there was a bug in the <code>:not</code> syntax in the non-XPath version for Internet Explorer. This has now been addressed and the fix, together with some feature updates, will be released within a few days. If you need a working version right now, let me know and I&#8217;ll e-mail it to you.</p>
<p>In the future, please <a href="http://code.google.com/p/domassistant/issues/list" rel="nofollow">report issues at the code site</a>. I&#8217;ve now reported and resolved this one.</p>
<p>Thanks for letting me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chenghong</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-176632</link>
		<dc:creator>chenghong</dc:creator>
		<pubDate>Sat, 05 Jan 2008 18:20:08 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-176632</guid>
		<description>&lt;code&gt;
&#60;form id="fm1"&#62;
&#160;&#160;&#60;p&#62;...&#60;/p&#62;
&#160;&#160;&#60;p&#62;...&#60;/p&#62;
&#160;&#160;&#60;p id="cfm"&#62;...&#60;/p&#62;
&#60;/form&#62;
&lt;/code&gt;
I want to select all p within the form except the last one. But both the following selectors didn't work. Nothing was selected.

&lt;code&gt;$('#fm1 p:not([id=cfm])')
$('#fm1 p:not(#cfm)')
&lt;/code&gt;
May I know what I did wrong?</description>
		<content:encoded><![CDATA[<p><code><br />
&lt;form id="fm1"&gt;<br />
&nbsp;&nbsp;&lt;p&gt;...&lt;/p&gt;<br />
&nbsp;&nbsp;&lt;p&gt;...&lt;/p&gt;<br />
&nbsp;&nbsp;&lt;p id="cfm"&gt;...&lt;/p&gt;<br />
&lt;/form&gt;<br />
</code><br />
I want to select all p within the form except the last one. But both the following selectors didn&#8217;t work. Nothing was selected.</p>
<p><code>$('#fm1 p:not([id=cfm])')<br />
$('#fm1 p:not(#cfm)')<br />
</code><br />
May I know what I did wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-176039</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Fri, 04 Jan 2008 23:06:34 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-176039</guid>
		<description>Frederick,

Interesting feedback. Although, from my point of view, I would probably not use it personally since I'm not a big fan of the chaining approach (it can easily become absurd), but I don't see anything wrong with offering it to those who desires it.</description>
		<content:encoded><![CDATA[<p>Frederick,</p>
<p>Interesting feedback. Although, from my point of view, I would probably not use it personally since I&#8217;m not a big fan of the chaining approach (it can easily become absurd), but I don&#8217;t see anything wrong with offering it to those who desires it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederick Polgardy</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-176033</link>
		<dc:creator>Frederick Polgardy</dc:creator>
		<pubDate>Fri, 04 Jan 2008 22:47:53 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-176033</guid>
		<description>&lt;blockquote&gt;Having an .end() method does indeed make sense, and not that hard to do, so I will definitely consider it for the next release.&lt;/blockquote&gt;

Truthfully, this is the one thing I hate about jQuery.  It makes it impossible to have long-lived jQuery objects that are mutations of other jQuery objects, because the parent-child relationship insures that the old ones never get cleaned up by the GC.

The alternative would be to have a .detach() method that lets you, well, detach a node set from any ancestors it has, so that it would no longer support backtracking with .end().</description>
		<content:encoded><![CDATA[<blockquote><p>Having an .end() method does indeed make sense, and not that hard to do, so I will definitely consider it for the next release.</p></blockquote>
<p>Truthfully, this is the one thing I hate about jQuery.  It makes it impossible to have long-lived jQuery objects that are mutations of other jQuery objects, because the parent-child relationship insures that the old ones never get cleaned up by the GC.</p>
<p>The alternative would be to have a .detach() method that lets you, well, detach a node set from any ancestors it has, so that it would no longer support backtracking with .end().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-175938</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Fri, 04 Jan 2008 19:50:22 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-175938</guid>
		<description>Doug,

Absolutely, no problem. It's rather that it seems like it is used very seldom, but rather that people make requests with certain headers and/or query string parameters to update data.

However, if I see that more people needs to POST, I will definitely implement it, since it's very easy to do. It has just been excluded to trim down methods and file size to an optimal level, but if someone is needed it should indeed be added.</description>
		<content:encoded><![CDATA[<p>Doug,</p>
<p>Absolutely, no problem. It&#8217;s rather that it seems like it is used very seldom, but rather that people make requests with certain headers and/or query string parameters to update data.</p>
<p>However, if I see that more people needs to POST, I will definitely implement it, since it&#8217;s very easy to do. It has just been excluded to trim down methods and file size to an optimal level, but if someone is needed it should indeed be added.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-175092</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Thu, 03 Jan 2008 19:07:48 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-175092</guid>
		<description>Your AJAX module only implements GET. Seems like it would be easy enough to add POST.</description>
		<content:encoded><![CDATA[<p>Your <acronym title="Asynchronous Javascript and XML">AJAX</acronym> module only implements GET. Seems like it would be easy enough to add POST.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekend Links - Good Web Design, CSS Working Group, Body ID, IE8 Acid2, DOMAssistant 2.5, Google Analytics, Wii Opera SDK</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-167902</link>
		<dc:creator>Weekend Links - Good Web Design, CSS Working Group, Body ID, IE8 Acid2, DOMAssistant 2.5, Google Analytics, Wii Opera SDK</dc:creator>
		<pubDate>Sun, 23 Dec 2007 18:31:41 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-167902</guid>
		<description>[...] http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods... [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] <a href="http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods..." rel="nofollow">http://www.robertnyman.com/2007/12/17/domassistant-25-released-<acronym title="Cascading Style Sheets">CSS</acronym>-selector-support-new-<acronym title="Asynchronous Javascript and XML">AJAX</acronym>-methods&#8230;</a> [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DOMAssistant 2.5 released</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-167003</link>
		<dc:creator>DOMAssistant 2.5 released</dc:creator>
		<pubDate>Sat, 22 Dec 2007 10:59:39 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-167003</guid>
		<description>[...] DOMAssistant 2.5 released - CSS selector support, new AJAX methods and more goodies added! [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] DOMAssistant 2.5 released - <acronym title="Cascading Style Sheets">CSS</acronym> selector support, new <acronym title="Asynchronous Javascript and XML">AJAX</acronym> methods and more goodies added! [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CSS selector and new ajax methods added on DOMAssistant 2.5</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165754</link>
		<dc:creator>CSS selector and new ajax methods added on DOMAssistant 2.5</dc:creator>
		<pubDate>Thu, 20 Dec 2007 14:01:01 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165754</guid>
		<description>[...] Nyman has released the new version of DOMAssistant (DOMAssistant 2.5) with numbers of new [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Nyman has released the new version of DOMAssistant (DOMAssistant 2.5) with numbers of new [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165193</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Wed, 19 Dec 2007 13:55:40 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165193</guid>
		<description>Jörn,

&lt;blockquote cite="http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165176"&gt;
	I hope they rather just provide a native getElementsByCSS which libraries can then leverage.
&lt;/blockquote&gt;

That would be nice, although XPath is more powerful than CSS is, and would be even better. Why not have both? :-)

It is true that the selectors aren't exactly the same, but at the end of the day, my preference (which is probably very clear by now :-) ) is that supporting CSS selectors just the same way as they are in the specification is the way to go, instead of something just close to the CSS approach, with a slightly different syntax.

Event delegation is interesting, though, and looking at the next release of DOMAssistant, it would probably be a good thing to add.

Thanks for the discussion, I like this! What I hope, also, is for people to see here that there's no fight between JavaScript libraries, but instead an open discussion expressing ideas and having different ways to implement solutions.</description>
		<content:encoded><![CDATA[<p>Jörn,</p>
<blockquote cite="http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165176"><p>
	I hope they rather just provide a native getElementsByCSS which libraries can then leverage.
</p></blockquote>
<p>That would be nice, although XPath is more powerful than <acronym title="Cascading Style Sheets">CSS</acronym> is, and would be even better. Why not have both? <img src='http://www.robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>It is true that the selectors aren&#8217;t exactly the same, but at the end of the day, my preference (which is probably very clear by now <img src='http://www.robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ) is that supporting <acronym title="Cascading Style Sheets">CSS</acronym> selectors just the same way as they are in the specification is the way to go, instead of something just close to the <acronym title="Cascading Style Sheets">CSS</acronym> approach, with a slightly different syntax.</p>
<p>Event delegation is interesting, though, and looking at the next release of DOMAssistant, it would probably be a good thing to add.</p>
<p>Thanks for the discussion, I like this! What I hope, also, is for people to see here that there&#8217;s no fight between JavaScript libraries, but instead an open discussion expressing ideas and having different ways to implement solutions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jörn Zaefferer</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165176</link>
		<dc:creator>Jörn Zaefferer</dc:creator>
		<pubDate>Wed, 19 Dec 2007 12:57:12 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165176</guid>
		<description>Thanks Robert for responding.
&lt;blockquote&gt;When it comes to sending XPath expressions into the $ method, which is a totally different thing, I completely agree with the jQuery stance that it doesn’t need to be in the core (until all web browsers support XPath, that is).&lt;/blockquote&gt;
I hope they rather just provide a native getElementsByCSS which libraries can then leverage.

&lt;blockquote&gt;I’m sure jQuery’s optimization of important selectors is great; what I question, though, is making up your own names like :first instead of :first-child, :eq(index) instead of :nth-child(index) and so on. Same functionality, but one is standardized while the other is exclusive to jQuery. Why not use the same syntax for all technology approaches?&lt;/blockquote&gt;
They are not the same. Please take a look at the docs for &lt;a href="http://docs.jquery.com/Selectors/first" rel="nofollow"&gt;:first&lt;/a&gt; and &lt;a href="http://docs.jquery.com/Selectors/firstChild" rel="nofollow"&gt;:first-child&lt;/a&gt;. Thats a sublte but very important difference. :first-child is very powerful, but used very rarely.

&lt;blockquote&gt;If there are cases where this isn’t sufficient, though, adding a target reference is something that can easily be done. Also, just need to mention that the function called from the event gets a first parameter which is the event object itself (this goes for all web browsers).&lt;/blockquote&gt;
Sure, &lt;a href="http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/" rel="nofollow"&gt;event delegation&lt;/a&gt; isn't something you deal with every day, but when it takes a several seconds to setup event handlers on a large number of elements, event delegation is a great solution, offering a lot of flexiblity in terms of adding and removing elements at "runtime".

Several of my jQuery plugins are 100% dependent on event delegation, therefore I think that a DOM event library must support event.target with the least hassle possible. jQuery does a lot &lt;a href="http://dev.jquery.com/browser/trunk/jquery/src/event.js#L265" rel="nofollow"&gt;to fix event objects&lt;/a&gt;.

Regards
Jörn</description>
		<content:encoded><![CDATA[<p>Thanks Robert for responding.</p>
<blockquote><p>When it comes to sending XPath expressions into the $ method, which is a totally different thing, I completely agree with the jQuery stance that it doesn’t need to be in the core (until all web browsers support XPath, that is).</p></blockquote>
<p>I hope they rather just provide a native getElementsByCSS which libraries can then leverage.</p>
<blockquote><p>I’m sure jQuery’s optimization of important selectors is great; what I question, though, is making up your own names like :first instead of :first-child, :eq(index) instead of :nth-child(index) and so on. Same functionality, but one is standardized while the other is exclusive to jQuery. Why not use the same syntax for all technology approaches?</p></blockquote>
<p>They are not the same. Please take a look at the docs for <a href="http://docs.jquery.com/Selectors/first" rel="nofollow">:first</a> and <a href="http://docs.jquery.com/Selectors/firstChild" rel="nofollow">:first-child</a>. Thats a sublte but very important difference. :first-child is very powerful, but used very rarely.</p>
<blockquote><p>If there are cases where this isn’t sufficient, though, adding a target reference is something that can easily be done. Also, just need to mention that the function called from the event gets a first parameter which is the event object itself (this goes for all web browsers).</p></blockquote>
<p>Sure, <a href="http://www.wait-till-i.com/2006/09/24/event-handling-versus-event-delegation/" rel="nofollow">event delegation</a> isn&#8217;t something you deal with every day, but when it takes a several seconds to setup event handlers on a large number of elements, event delegation is a great solution, offering a lot of flexiblity in terms of adding and removing elements at &#8220;runtime&#8221;.</p>
<p>Several of my jQuery plugins are 100% dependent on event delegation, therefore I think that a <acronym title="Document Object Model">DOM</acronym> event library must support event.target with the least hassle possible. jQuery does a lot <a href="http://dev.jquery.com/browser/trunk/jquery/src/event.js#L265" rel="nofollow">to fix event objects</a>.</p>
<p>Regards<br />
Jörn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165095</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Wed, 19 Dec 2007 10:31:43 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165095</guid>
		<description>Raziel,

Thanks!
Interesting question about &lt;code&gt;hasClass&lt;/code&gt;, and returning elements instead of booleans. I think that, in my opinion, the name and expected functionality would be to return a boolean value.

Also, I think I've mostly regarded it as an operation to run on a single element (where it would return a straight boolean, and not an array of boolean values). If you were to want multiple elements with the same class, I think I'd rather go the CSS selector route from the get go.

But, I love that you use the power of DOMAssistant to override it with your own tweaks! If someone has special requirements which wouldn't necessary fall into the functionality offered by the base functionality, it is very easy to build your own on top of the existing DOMAssistant code.

Having an &lt;code&gt;.end()&lt;/code&gt; method does indeed make sense, and not that hard to do, so I will definitely consider it for the next release.

Gustaf,

Thanks, and thanks for the help with testing and suggestions!</description>
		<content:encoded><![CDATA[<p>Raziel,</p>
<p>Thanks!<br />
Interesting question about <code>hasClass</code>, and returning elements instead of booleans. I think that, in my opinion, the name and expected functionality would be to return a boolean value.</p>
<p>Also, I think I&#8217;ve mostly regarded it as an operation to run on a single element (where it would return a straight boolean, and not an array of boolean values). If you were to want multiple elements with the same class, I think I&#8217;d rather go the <acronym title="Cascading Style Sheets">CSS</acronym> selector route from the get go.</p>
<p>But, I love that you use the power of DOMAssistant to override it with your own tweaks! If someone has special requirements which wouldn&#8217;t necessary fall into the functionality offered by the base functionality, it is very easy to build your own on top of the existing DOMAssistant code.</p>
<p>Having an <code>.end()</code> method does indeed make sense, and not that hard to do, so I will definitely consider it for the next release.</p>
<p>Gustaf,</p>
<p>Thanks, and thanks for the help with testing and suggestions!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustaf Forsslund</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165094</link>
		<dc:creator>Gustaf Forsslund</dc:creator>
		<pubDate>Wed, 19 Dec 2007 10:31:31 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165094</guid>
		<description>Great news, Robert. Since I'm already using DOMAssistant for one project I'm working on I will happily upgrade. Some of the features will really simplify things.</description>
		<content:encoded><![CDATA[<p>Great news, Robert. Since I&#8217;m already using DOMAssistant for one project I&#8217;m working on I will happily upgrade. Some of the features will really simplify things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raziel Anarki</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165086</link>
		<dc:creator>Raziel Anarki</dc:creator>
		<pubDate>Wed, 19 Dec 2007 10:12:22 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165086</guid>
		<description>great news!

i've been using a customized/tweaked domassistant since the first release (mainly beacuse it was simple and easy, and it was a great learning experience for me in dom scripting)

(i have actually implemented/modded in an .each, and the empty array fallback, and elmsByTag too :)

and i've got one question: why does the hasClass (and the now deprecated hasAttr) return an array of booleans?

in my opinion, it would make more sense if it would filter the array and return the elements which have that particular class?

this is how i tweaked the function:
&lt;code&gt;
    hasClass : function (className)
    {
        var elms = new ArrayExt ();

        for (var i = 0; i &#60; this.length; i++)
        {
            if (bseDOM.hasClass.call (this[i], className))
            {
                elms.push (this[i]);
            }
        }

        return elms;
    }
&lt;/code&gt;

also i think it wouldnt be too hard to implement an .end() function (for creating tree-like chained calls), as all we need is to save a reference to "parent" array into the "new" one (in the specific HTMLarray funcs), and on .end () just return the parent array (the "previous selection")

what do you think?</description>
		<content:encoded><![CDATA[<p>great news!</p>
<p>i&#8217;ve been using a customized/tweaked domassistant since the first release (mainly beacuse it was simple and easy, and it was a great learning experience for me in <acronym title="Document Object Model">DOM</acronym> scripting)</p>
<p>(i have actually implemented/modded in an .each, and the empty array fallback, and elmsByTag too <img src='http://www.robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>and i&#8217;ve got one question: why does the hasClass (and the now deprecated hasAttr) return an array of booleans?</p>
<p>in my opinion, it would make more sense if it would filter the array and return the elements which have that particular class?</p>
<p>this is how i tweaked the function:<br />
<code><br />
    hasClass : function (className)<br />
    {<br />
        var elms = new ArrayExt ();</p>
<p>        for (var i = 0; i &lt; this.length; i++)<br />
        {<br />
            if (bseDOM.hasClass.call (this[i], className))<br />
            {<br />
                elms.push (this[i]);<br />
            }<br />
        }</p>
<p>        return elms;<br />
    }<br />
</code></p>
<p>also i think it wouldnt be too hard to implement an .end() function (for creating tree-like chained calls), as all we need is to save a reference to &#8220;parent&#8221; array into the &#8220;new&#8221; one (in the specific HTMLarray funcs), and on .end () just return the parent array (the &#8220;previous selection&#8221;)</p>
<p>what do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165085</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Wed, 19 Dec 2007 10:11:10 +0000</pubDate>
		<guid>http://www.robertnyman.com/2007/12/17/domassistant-25-released-css-selector-support-new-ajax-methods-and-more-goodies-added/#comment-165085</guid>
		<description>Anders,

Thank you very much!
And in my opinion, it is always a good thing to learn, if for no other reason to be competent enough to choose the most suitable library.</description>
		<content:encoded><![CDATA[<p>Anders,</p>
<p>Thank you very much!<br />
And in my opinion, it is always a good thing to learn, if for no other reason to be competent enough to choose the most suitable library.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
