<?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>DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx</link><description>In previous CTPs, the client-side DOM event model was the IE model. You would use attachEvent and get the event data from window.event. In other words, we had just implemented the IE model in Firefox and Safari. This didn&amp;#39;t fly as well as we expected</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#6286968</link><pubDate>Tue, 17 Jun 2008 16:26:02 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6286968</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;@Lokas: you need to define testTable, for example var testTable = $get(&amp;quot;testTable&amp;quot;);. You also need to use square brackets instead of parentheses to get the rows: testTable.rows[i].&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6286968" width="1" height="1"&gt;</description></item><item><title>re: DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#6284931</link><pubDate>Tue, 17 Jun 2008 04:16:41 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6284931</guid><dc:creator>Lokas</dc:creator><author>Lokas</author><description>&lt;p&gt;Well I have started to play little bit with the ATLAS and I want to add DOM event handler to TR element.&lt;/p&gt;
&lt;p&gt;Code works fine for IE , but in &amp;nbsp;a firefox load event is happend &amp;nbsp;, but events are not hooked to dom element ...&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using asp 2.0 , please give me a tip , relly dont have a clue what is going on......&lt;/p&gt;
&lt;p&gt;function pageLoad()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;alert(&amp;#39;atload&amp;#39;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; for(var i = 0 ; i&amp;lt;testTable.rows.length;i++)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$addHandler(testTable.rows(i),&amp;quot;click&amp;quot;,RowClick);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;function RowClick(e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; alert(this.innerHTML);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6284931" width="1" height="1"&gt;</description></item><item><title>re: DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#4959774</link><pubDate>Fri, 09 Nov 2007 19:23:58 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4959774</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Dave: If I'm not mistaken, that jQuery feature appeared after that comment was written. It is true that jQuery does an excellent job at keeping to its namespace, as does Dojo.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4959774" width="1" height="1"&gt;</description></item><item><title>re: DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#4957258</link><pubDate>Fri, 09 Nov 2007 15:08:01 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4957258</guid><dc:creator>Dave</dc:creator><author>Dave</author><description>&lt;p&gt;&amp;gt; &amp;quot;It seems like we&amp;#39;re the only ones to actually care about not colliding with existing aliases from competing frameworks, and we don&amp;#39;t even get some credit for that?&amp;quot;&lt;/p&gt;
&lt;p&gt;Actually, jQuery does a very good job of preventing namespace collisions; it only uses &amp;quot;jQuery&amp;quot; in the global namespace and you can tell it to not use &amp;quot;$&amp;quot; if someone else is using it.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://docs.jquery.com/Using_jQuery_with_Other_Libraries"&gt;docs.jquery.com/Using_jQuery_with_Other_Libraries&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4957258" width="1" height="1"&gt;</description></item><item><title>Microsoft Ajax events - part 1: subscribing</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#2607589</link><pubDate>Thu, 17 May 2007 00:20:45 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2607589</guid><dc:creator>Atlas and more</dc:creator><author>Atlas and more</author><description>&lt;p&gt;When building Ajax applications, you basically deal with two kinds of events. First, there are DOM events&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2607589" width="1" height="1"&gt;</description></item><item><title>re: DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#2190775</link><pubDate>Sat, 07 Apr 2007 17:51:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2190775</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Peter: yes, absolutely. I'll try to get that done next week.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2190775" width="1" height="1"&gt;</description></item><item><title>re: DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#2190580</link><pubDate>Sat, 07 Apr 2007 16:03:50 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:2190580</guid><dc:creator>PeterG</dc:creator><author>PeterG</author><description>&lt;p&gt;Are you still planning to do a post about Class events or can you point me at a good resource?&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=2190580" width="1" height="1"&gt;</description></item><item><title>re: DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#1951025</link><pubDate>Wed, 07 Mar 2007 19:22:11 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1951025</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Stephen: yes, potentially, unobtrusively adding events like described here enable you to build a web page that could work without JavaScript. It requires some care but it absolutely can be done and it is the direction more and more people are taking. But to be perfectly clear, it doesn't &amp;quot;make Ajax work&amp;quot; if JavaScript is off, it makes the page work reasonably if it's off. By definition, Ajax only works with JavaScript on.&lt;/p&gt;
&lt;p&gt;I don't understand your question though. What idea are you referring to? What is not going as well as I had hoped?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1951025" width="1" height="1"&gt;</description></item><item><title>re: DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#1950868</link><pubDate>Wed, 07 Mar 2007 19:09:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1950868</guid><dc:creator>Stephen Oesterreicher</dc:creator><author>Stephen Oesterreicher</author><description>&lt;p&gt;Is what your doing is making AJAX work even if the browser has JavaScript turned off? &amp;nbsp;It looks like it is not going as well as you had hoped. &amp;nbsp;Does that mean that your idea is not going to make it out here in the real world?&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1950868" width="1" height="1"&gt;</description></item><item><title>re: DOM events in the Microsoft AJAX Library</title><link>http://weblogs.asp.net/bleroy/archive/2006/11/06/DOM-events-in-the-Microsoft-AJAX-Library.aspx#1163432</link><pubDate>Wed, 06 Dec 2006 21:41:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:1163432</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Jacques: the problem is that it would be very complex to subscribe to the unload event of all windows you attached events in and dispose of them properly. We just couldn't ensure the level of functionality that we can ensure in the same window.&lt;/p&gt;
&lt;p&gt;If you're using an iframe, what I recommend is that it has its own copy of the AJAX library and pretty much works in isolation, with just the level of communication you need between JavaScript components (which you can achieve by exchanging delegates between components in different windows. Avoid DOM-based communication like you're trying because that will be a nightmare to clean up and avoid memory leaks. If you are using an iframe, that's usually because you want the iframe to be able to post and navigate independantly, which means that the dispose logic will need to be taken care of. That will be a lot easier with the iframe working as a full page, with its own copy of the framework.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=1163432" width="1" height="1"&gt;</description></item></channel></rss>