<?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>Microsoft Ajax events - part 2: exposing events from custom classes</title><link>http://weblogs.asp.net/bleroy/archive/2007/05/22/microsoft-ajax-events-part-2-exposing-events-from-custom-classes.aspx</link><description>In part 1 , I showed how to subscribe to events exposed by JavaScript classes built on Microsoft Ajax. In this post, I'll show how to expose new events from your own classes. Theoretically, the only things you have to do to expose an event are to implement</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: Microsoft Ajax events - part 2: exposing events from custom classes</title><link>http://weblogs.asp.net/bleroy/archive/2007/05/22/microsoft-ajax-events-part-2-exposing-events-from-custom-classes.aspx#3454493</link><pubDate>Fri, 10 Aug 2007 05:49:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3454493</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Jeff: I omitted it from the code in the blog post, not in the full source code.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3454493" width="1" height="1"&gt;</description></item><item><title>re: Microsoft Ajax events - part 2: exposing events from custom classes</title><link>http://weblogs.asp.net/bleroy/archive/2007/05/22/microsoft-ajax-events-part-2-exposing-events-from-custom-classes.aspx#3448003</link><pubDate>Thu, 09 Aug 2007 16:53:21 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3448003</guid><dc:creator>throwspoop</dc:creator><author>throwspoop</author><description>&lt;p&gt;Great blog entry - good job of relating this to a well known and recognized eventing pattern. It helps my understanding of how the AJAX developers intended the framework to be used (and some ideas of how to extend some of the core components.)&lt;/p&gt;
&lt;p&gt;One question regarding &amp;gt;&amp;gt; I also omitted the code that rewires the timeout for the next tick.&lt;/p&gt;
&lt;p&gt;What did you mean by this? In my testing the event fires &amp;nbsp;at every interval and the folowing code seems to &amp;quot;rewire it&amp;quot;:&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;this._pollCookie = window.setTimeout(this._pollDelegate, this._interval);&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3448003" width="1" height="1"&gt;</description></item></channel></rss>