﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Coolite Forums / Coolite Toolkit / Feature Requests  / [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Coolite Forums</description><link>http://www.coolite.com/forums/</link><webMaster>do-not-reply@coolite.com</webMaster><lastBuildDate>Fri, 10 Sep 2010 13:23:46 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Just to let you know, I tried 0.8.2 and I see the static ajax method fix in there, so thanks. And you can mark this particular thread as fixed.&lt;br&gt;</description><pubDate>Thu, 14 Jan 2010 09:18:38 GMT</pubDate><dc:creator>anup</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>[quote]Do you have a rough idea when 0.8.2 will be released?[/quote]&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Unfortunately we do not have a firm release date. The fix is currently only available in SVN. I'll do my best to update this thread with a quick note once v0.8.2 has been publicly released. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Tue, 28 Jul 2009 11:25:25 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Fantastic! Do you have a rough idea when 0.8.2 will be released?&lt;br&gt;&lt;br&gt;Thanks for your prompt responses. Really appreciated!&lt;br&gt;</description><pubDate>Tue, 28 Jul 2009 11:12:05 GMT</pubDate><dc:creator>anup</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Hi,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;We have fixed it. The fix will be available in 0.8.2 release &lt;/div&gt;</description><pubDate>Tue, 28 Jul 2009 06:13:13 GMT</pubDate><dc:creator>vladsch</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Took a while but I finally figured out what was causing my problem:&lt;br&gt;&lt;br&gt;My AjaxMethod is declared as static. As soon as I take off static from my code it works.&lt;br&gt;&lt;br&gt;I used your example and making the AjaxMethod into a static method also fails your example (though in your case I don't get anything back to the client from the server, where as in my case I do -- it all runs except only BeforeAjaxRequest doesn't fire. I didn't look at that further -- there was an error in Firebug console, which probably explains that).&lt;br&gt;&lt;br&gt;So question is, should AjaxMethods not be static?&lt;br&gt;</description><pubDate>Mon, 27 Jul 2009 04:30:00 GMT</pubDate><dc:creator>anup</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;Thanks for the extra example. It's weird. In my case I see AjaxRequestComplete and AjaxRequestException listeners fire for an AjaxMethod, but not BeforeAjaxRequest (and that's the one I need to set the status bar!).&lt;br&gt;&lt;br&gt;I tried your example locally and it works fine. I have tried to cut down my real solution but it is hard as there are lots of things in between (master templates, other JavaScript frameworks etc).&lt;br&gt;&lt;br&gt;It must be a problem on my end. So, at the moment while I can't provide a test case to help reproduce the problem I will work on it further...&lt;br&gt;</description><pubDate>Mon, 27 Jul 2009 03:23:06 GMT</pubDate><dc:creator>anup</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>The events will be fired for all Ajax requests, including AjaxEvents and AjaxMethod calls.&lt;br&gt;&lt;br&gt;I added a couple AjaxMethod calls to the original sample.&lt;br&gt;&lt;br&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br&gt;&lt;br&gt;[code]&amp;lt;%@ Page Language="C#" %&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;script runat="server"&amp;gt;&lt;br&gt;    protected void Button1_Click(object sender, AjaxEventArgs e)&lt;br&gt;    {&lt;br&gt;        Ext.Notification.Show(new Notification.Config&lt;br&gt;        {&lt;br&gt;            Title = "Button1_Click",&lt;br&gt;            AutoHide = false,&lt;br&gt;            Html = "Success!&amp;lt;br /&amp;gt;" + DateTime.Now.ToString()&lt;br&gt;        });&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    protected void Button2_Click(object sender, AjaxEventArgs e)&lt;br&gt;    {&lt;br&gt;        throw new ArgumentException("Invalid Arguments");&lt;br&gt;    }&lt;br&gt;    &lt;br&gt;    [AjaxMethod]&lt;br&gt;    public void PopToast()&lt;br&gt;    {&lt;br&gt;        Ext.Notification.Show(new Notification.Config&lt;br&gt;        {&lt;br&gt;            Title = "AjaxMethod",&lt;br&gt;            AutoHide = false,&lt;br&gt;            Html = "Success!&amp;lt;br /&amp;gt;" + DateTime.Now.ToString()&lt;br&gt;        });&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    [AjaxMethod]&lt;br&gt;    public void ThrowException()&lt;br&gt;    {&lt;br&gt;        throw new ArgumentException("Invalid Arguments");&lt;br&gt;    }&lt;br&gt;&amp;lt;/script&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &lt;br&gt;    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" &amp;gt;&lt;br&gt;&amp;lt;head id="Head1" runat="server"&amp;gt;&lt;br&gt;    &amp;lt;title&amp;gt;Coolite Toolkit Example&amp;lt;/title&amp;gt;&lt;br&gt;&amp;lt;/head&amp;gt;&lt;br&gt;&amp;lt;body&amp;gt;&lt;br&gt;    &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br&gt;        &amp;lt;ext:ScriptManager ID="ScriptManager1" runat="server" AjaxMethodNamespace="CompanyX"&amp;gt;&lt;br&gt;            &amp;lt;Listeners&amp;gt;&lt;br&gt;                &amp;lt;BeforeAjaxRequest Handler="popToast('BeforeAjaxRequest', el, action);" /&amp;gt;&lt;br&gt;                &amp;lt;AjaxRequestComplete Handler="popToast('AjaxRequestComplete', el, action);" /&amp;gt;&lt;br&gt;                &amp;lt;AjaxRequestException Handler="popToast('AjaxRequestException', el, action);" /&amp;gt;&lt;br&gt;            &amp;lt;/Listeners&amp;gt;&lt;br&gt;        &amp;lt;/ext:ScriptManager&amp;gt;&lt;br&gt;&lt;br&gt;        &amp;lt;script type="text/javascript"&amp;gt;&lt;br&gt;            var popToast = function (title, el, action) {&lt;br&gt;                Coolite.Ext.Notification.show({&lt;br&gt;                    title    : title,&lt;br&gt;                    autoHide : false, &lt;br&gt;                    html     : String.format("control: {0}&amp;lt;br /&amp;gt;action: {1}", el.id, action)&lt;br&gt;                });&lt;br&gt;            };&lt;br&gt;        &amp;lt;/script&amp;gt;&lt;br&gt;    &lt;br&gt;        &amp;lt;ext:Button ID="Button1" runat="server" Icon="Accept" Text="Before and Complete (AjaxEvent)"&amp;gt;&lt;br&gt;            &amp;lt;AjaxEvents&amp;gt;&lt;br&gt;                &amp;lt;Click OnEvent="Button1_Click" /&amp;gt;&lt;br&gt;            &amp;lt;/AjaxEvents&amp;gt;&lt;br&gt;        &amp;lt;/ext:Button&amp;gt;&lt;br&gt;        &lt;br&gt;        &amp;lt;ext:Button ID="Button2" runat="server" Icon="Error" Text="Throw Exception (AjaxEvent)"&amp;gt;&lt;br&gt;            &amp;lt;AjaxEvents&amp;gt;&lt;br&gt;                &amp;lt;Click OnEvent="Button2_Click" /&amp;gt;&lt;br&gt;            &amp;lt;/AjaxEvents&amp;gt;&lt;br&gt;        &amp;lt;/ext:Button&amp;gt;&lt;br&gt;        &lt;br&gt;        &amp;lt;hr /&amp;gt;&lt;br&gt;        &lt;br&gt;        &amp;lt;ext:Button ID="Button3" runat="server" Icon="Accept" Text="Before and Complete (AjaxMethod)"&amp;gt;&lt;br&gt;            &amp;lt;Listeners&amp;gt;&lt;br&gt;                &amp;lt;Click Handler="CompanyX.PopToast();" /&amp;gt;&lt;br&gt;            &amp;lt;/Listeners&amp;gt;&lt;br&gt;        &amp;lt;/ext:Button&amp;gt;&lt;br&gt;        &lt;br&gt;        &amp;lt;ext:Button ID="Button4" runat="server" Icon="Error" Text="Throw Exception (AjaxMethod)"&amp;gt;&lt;br&gt;            &amp;lt;Listeners&amp;gt;&lt;br&gt;                &amp;lt;Click Handler="CompanyX.ThrowException();" /&amp;gt;&lt;br&gt;            &amp;lt;/Listeners&amp;gt;&lt;br&gt;        &amp;lt;/ext:Button&amp;gt;&lt;br&gt;    &amp;lt;/form&amp;gt;&lt;br&gt;&amp;lt;/body&amp;gt;&lt;br&gt;&amp;lt;/html&amp;gt;[/code]&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 24 Jul 2009 10:17:28 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I just realized you have made these listeners available in 0.8.1, so I downloaded it and tried it out. Works great.&lt;br&gt;&lt;br&gt;Just one problem: it doesn't seem to work with AjaxMethods.&lt;br&gt;&lt;br&gt;E.g. in C# code-behind:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;        [AjaxMethod]&lt;br&gt;        public static bool DoSomething()&lt;br&gt;        {&lt;br&gt;            return WasItDone();&lt;br&gt;        }&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;And in ASP.NET:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;        &amp;lt;ext:ToolbarButton ID="btnId" runat="server" Text="Test this"&amp;gt;&lt;br&gt;            &amp;lt;Listeners&amp;gt;&lt;br&gt;                &amp;lt;Click Handler="My.Code.DoSomething({&lt;br&gt;                    success : mySuccessHandler,&lt;br&gt;                    failure : myFailureHandler,&lt;br&gt;                    eventMask: { showMask: true, minDelay: 50, msg:'Getting...' }&lt;br&gt;                });" /&amp;gt;&lt;br&gt;            &amp;lt;/Listeners&amp;gt;&lt;br&gt;        &amp;lt;/ext:ToolbarButton&amp;gt;&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;It may be my fault partly -- in the original request for this feature, I didn't clarify that I'd like it for AjaxMethods as well as Ajax Events.&lt;br&gt;&lt;br&gt;Is there a possibility of reusing the same listeners for either ajax call approach?&lt;br&gt;</description><pubDate>Fri, 24 Jul 2009 08:17:51 GMT</pubDate><dc:creator>anup</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description> Hmm...I am not sure if an AjaxMethod is the ideal solution here because I will be incurring an unnecessary server hit.  It seems kind of silly for server to send error message to client, then client sent back exact error message to server.  Ideally, I want to log the full detailed error on the server side and send back just a friendly error message to the client.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The funny thing is that global error handling works fine for AjaxEvents.  I am able to trap the error and send back a custom response and status code.  It just wont work for AjaxMethods.  &lt;/div&gt;</description><pubDate>Mon, 29 Jun 2009 20:06:38 GMT</pubDate><dc:creator>jchau</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>[quote][b]jchau (6/29/2009)[/b][hr]Any updates on firing off a server side event before the response is sent to client?  I need to log each server side error that occurs.  Thanks![/quote]&lt;br&gt;&lt;br&gt;How about using an AjaxMethod?&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 29 Jun 2009 18:49:13 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Any updates on firing off a server side event before the response is sent to client?  I need to log each server side error that occurs.  Thanks!</description><pubDate>Mon, 29 Jun 2009 13:46:41 GMT</pubDate><dc:creator>jchau</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Brilliant. Thanks. Looking forward to 0.9 :)&lt;br&gt;</description><pubDate>Mon, 29 Jun 2009 01:24:28 GMT</pubDate><dc:creator>anup</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description> I meant actual regular server side events like Page.Load or Page.Error. </description><pubDate>Thu, 25 Jun 2009 06:22:23 GMT</pubDate><dc:creator>jchau</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>[quote]Is it possible for the scriptmanager to fire off server side events too?  I would like to run some server side logic on AjaxMethod error. [/quote]&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Ya, we'll add them as AjaxEvents as well. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;You can also just use call an AjaxMethod inside the Listeners.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The AjaxEvent versions should be committed later today. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thanks for the feedback. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Wed, 24 Jun 2009 21:57:11 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>&lt;div&gt;This is awesome!&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;Is it possible for the scriptmanager to fire off server side events too?  I would like to run some server side logic on AjaxMethod error.  </description><pubDate>Wed, 24 Jun 2009 18:57:09 GMT</pubDate><dc:creator>jchau</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>We've implemented the new ScriptManager Listeners. &lt;br&gt;&lt;br&gt;The following sample demonstrates all three listeners. &lt;br&gt;&lt;br&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br&gt;&lt;br&gt;[code]&amp;lt;%@ Page Language="C#" %&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;script runat="server"&amp;gt;&lt;br&gt;    protected void Button1_Click(object sender, AjaxEventArgs e)&lt;br&gt;    {&lt;br&gt;        Ext.Notification.Show(new Notification.Config&lt;br&gt;        {&lt;br&gt;            Title = "Button1_Click",&lt;br&gt;            AutoHide = false,&lt;br&gt;            Html = "Success!&amp;lt;br /&amp;gt;" + DateTime.Now.ToString()&lt;br&gt;        });&lt;br&gt;    }&lt;br&gt;&lt;br&gt;    protected void Button2_Click(object sender, AjaxEventArgs e)&lt;br&gt;    {&lt;br&gt;        throw new ArgumentException("Invalid Arguments");&lt;br&gt;    }&lt;br&gt;&amp;lt;/script&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &lt;br&gt;    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;br&gt;&lt;br&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" &amp;gt;&lt;br&gt;&amp;lt;head id="Head1" runat="server"&amp;gt;&lt;br&gt;    &amp;lt;title&amp;gt;Coolite Toolkit Example&amp;lt;/title&amp;gt;&lt;br&gt;&amp;lt;/head&amp;gt;&lt;br&gt;&amp;lt;body&amp;gt;&lt;br&gt;    &amp;lt;form id="form1" runat="server"&amp;gt;&lt;br&gt;        &amp;lt;ext:ScriptManager ID="ScriptManager1" runat="server"&amp;gt;&lt;br&gt;            &amp;lt;Listeners&amp;gt;&lt;br&gt;                &amp;lt;BeforeAjaxRequest Handler="popToast('BeforeAjaxRequest', el, action);" /&amp;gt;&lt;br&gt;                &amp;lt;AjaxRequestComplete Handler="popToast('AjaxRequestComplete', el, action);" /&amp;gt;&lt;br&gt;                &amp;lt;AjaxRequestException Handler="popToast('AjaxRequestException', el, action);" /&amp;gt;&lt;br&gt;            &amp;lt;/Listeners&amp;gt;&lt;br&gt;        &amp;lt;/ext:ScriptManager&amp;gt;&lt;br&gt;&lt;br&gt;        &amp;lt;script type="text/javascript"&amp;gt;&lt;br&gt;            var popToast = function (title, el, action) {&lt;br&gt;                Coolite.Ext.Notification.show({&lt;br&gt;                    title    : title,&lt;br&gt;                    autoHide : false, &lt;br&gt;                    html     : String.format("control: {0}&amp;lt;br /&amp;gt;action: {1}", el.id, action)&lt;br&gt;                });&lt;br&gt;            };&lt;br&gt;        &amp;lt;/script&amp;gt;&lt;br&gt;    &lt;br&gt;        &amp;lt;ext:Button ID="Button1" runat="server" Icon="Accept" Text="Before and Complete"&amp;gt;&lt;br&gt;            &amp;lt;AjaxEvents&amp;gt;&lt;br&gt;                &amp;lt;Click OnEvent="Button1_Click" /&amp;gt;&lt;br&gt;            &amp;lt;/AjaxEvents&amp;gt;&lt;br&gt;        &amp;lt;/ext:Button&amp;gt;&lt;br&gt;        &lt;br&gt;        &amp;lt;ext:Button ID="Button2" runat="server" Icon="Error" Text="Throw Exception"&amp;gt;&lt;br&gt;            &amp;lt;AjaxEvents&amp;gt;&lt;br&gt;                &amp;lt;Click OnEvent="Button2_Click" /&amp;gt;&lt;br&gt;            &amp;lt;/AjaxEvents&amp;gt;&lt;br&gt;        &amp;lt;/ext:Button&amp;gt;&lt;br&gt;    &amp;lt;/form&amp;gt;&lt;br&gt;&amp;lt;/body&amp;gt;&lt;br&gt;&amp;lt;/html&amp;gt;[/code]&lt;br&gt;&lt;br&gt;The new Listeners have been committed to SVN and will be publicly available with the next release. There is no firm date for the next public release. &lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;</description><pubDate>Wed, 24 Jun 2009 12:29:05 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>That's great -- the main thing is that it is in the Listeners for all the advantages you mention; far better than my original suggestion.&lt;br&gt;&lt;br&gt;Just one minor note: there's a typo in the second listener you had in the example.&lt;br&gt;&lt;br&gt;Look forward to seeing these changes. Is it for 0.9 (and if so, when is your ETA for 0.9)?&lt;br&gt;&lt;br&gt;Thanks for such a swift response.&lt;br&gt;</description><pubDate>Tue, 23 Jun 2009 09:46:43 GMT</pubDate><dc:creator>anup</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Quick update...&lt;br&gt;&lt;br&gt;These new Listeners are being added, although we changed the names from what was posted above.&lt;br&gt;&lt;br&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br&gt;&lt;br&gt;[code]&amp;lt;ext:ScriptManager runat="server"&amp;gt;&lt;br&gt;    &amp;lt;Listeners&amp;gt;&lt;br&gt;        &amp;lt;BeforeAjaxRequest ... /&amp;gt;&lt;br&gt;        &amp;lt;AjaxRequestComplete ... /&amp;gt;&lt;br&gt;        &amp;lt;AjaxRequestException ... /&amp;gt;&lt;br&gt;    &amp;lt;/Listeners&amp;gt;&lt;br&gt;&amp;lt;/ext:ScriptManager&amp;gt;[/code]&lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 23 Jun 2009 07:18:58 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>This is great. Many thanks!&lt;br&gt;</description><pubDate>Tue, 23 Jun 2009 02:22:24 GMT</pubDate><dc:creator>anup</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>I think we're going to go with the following new Listeners on the &amp;lt;ext:ScriptManager&amp;gt;.&lt;br&gt;&lt;br&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br&gt;&lt;br&gt;[code]&amp;lt;ext:ScriptManager runat="server"&amp;gt;&lt;br&gt;    &amp;lt;Listeners&amp;gt;&lt;br&gt;        &amp;lt;AjaxRequestBefore ... /&amp;gt;&lt;br&gt;        &amp;lt;AjaxRequestSuccess ... /&amp;gt;&lt;br&gt;        &amp;lt;AjaxRequestFailure ... /&amp;gt;&lt;br&gt;    &amp;lt;/Listeners&amp;gt;&lt;br&gt;&amp;lt;/ext:ScriptManager&amp;gt;[/code]&lt;br&gt;&lt;br&gt;Because they're configured as &amp;lt;Listeners&amp;gt; you'll have access to all the standard Listeners properties such as Buffer, Delay, Fn, Handler, etc...&lt;br&gt;&lt;br&gt;Let me know if you have any feedback. &lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 22 Jun 2009 12:42:35 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: [ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Hi Anup,&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;We will be implementing something similar very shortly. It might be ready in the next couple days. I'll keep this thread updated with our progress. &lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;</description><pubDate>Mon, 22 Jun 2009 12:10:09 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>[ADDED] [V0.8.1] Ability to define event handlers for all ajax requests in the ScriptManager</title><link>http://www.coolite.com/forums/Topic15651-17-1.aspx</link><description>Apologies if this is already implemented (couldn't see any examples).&lt;br&gt;&lt;br&gt;It would be useful to have the ability to define a JavaScript handler for things like "onBeforeAjaxRequest", "onAjaxRequestSucceeded", "onAjaxRequestFailed" etc on the ext ScriptManager.&lt;br&gt;&lt;br&gt;I see there are AjaxEvents for a given target or element, but I don't see how to set global handlers.&lt;br&gt;&lt;br&gt;Example of what I mean:&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;&amp;lt;ext:ScriptManager&lt;br&gt;  runat="server"&lt;br&gt;  onBeforeAjaxRequest="My.ClientSideApi.GettingData"&lt;br&gt;  onAjaxRequestSucceeded="My.ClientSideApi.DataRetrieved"&lt;br&gt;  etc /&amp;gt;&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;For example, I have an application with a status bar. For every Coolite-based Ajax request, I'd like a global handler to fire before the ajax request is started so that I can add a little spinning icon in the status bar, and possibly some text, like "getting data..." etc. Then, when the request had eneded, I'd reset the status bar by calling a different JavaScript method.&lt;br&gt;&lt;br&gt;This way, each developer doesn't have to remember to call these things manually from their own controls.&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 22 Jun 2009 08:07:39 GMT</pubDate><dc:creator>anup</dc:creator></item></channel></rss>