[FIXED] [V0.7] AjaxEvent before="return false" still hits server

  1. #1

    [FIXED] [V0.7] AjaxEvent before="return false" still hits server

    Another tricky one. If I return false in an AjaxEvent's before handler, the AjaxEvent still fires but doesn't return anything back to the client. Below is an example. Make sure to run in debug or use Fiddler to watch the request to the server. Notice that the server method is called, but the label is not updated on the client. The server method shouldn't be called in the first place.

    <body>
        <script runat="server">
            Protected Sub UpdateLabel(ByVal sender As Object, ByVal e As Coolite.Ext.Web.AjaxEventArgs)
                Me.lblTimeStamp.Text = DateTime.Now.ToLongTimeString
                If System.Diagnostics.Debugger.IsAttached Then System.Diagnostics.Debugger.Break()
            End Sub
        </script>
    
        <form id="form1" runat="server">
        <ext:ScriptManager ID="ScriptManager1" runat="server">
        </ext:ScriptManager>
        <ext:Button runat="server" ID="btnAjax" Text="Ajax">
            <AjaxEvents>
                <Click Before="return false;" OnEvent="UpdateLabel">
                </Click>
            </AjaxEvents>
        </ext:Button>
        <ext:Label runat="server" ID="lblTimeStamp">
        </ext:Label>
        </form>
    </body>
  2. #2

    RE: [FIXED] [V0.7] AjaxEvent before="return false" still hits server

    Hi jchau,

    I apologize for the error.


    This defect has been fixed and committed to SVN. The fix will also be publicly available with the v0.7 release.


    When you get a chance, please SVN update and confirm the fix is working for you.


    Geoffrey McGill
    Founder
  3. #3

    RE: [FIXED] [V0.7] AjaxEvent before="return false" still hits server



    Hi Geoffrey,

    What release it was fixed?
    I got a pretty new version (0.7.0.28078)*and it still happen.

    Thx
    Leo.</p>

Similar Threads

  1. [CLOSED] Checkbox return true/false
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 04, 2011, 5:42 AM
  2. Replies: 0
    Last Post: Jul 02, 2011, 9:14 PM
  3. radio button always return false
    By hector_toy82 in forum 1.x Help
    Replies: 0
    Last Post: Nov 17, 2010, 7:11 PM
  4. Replies: 4
    Last Post: Nov 24, 2008, 3:51 AM
  5. Replies: 7
    Last Post: Nov 13, 2008, 10:19 PM

Posting Permissions