[CLOSED] Direct Event Failure Internet Explorer

  1. #1

    [CLOSED] Direct Event Failure Internet Explorer

    Hi,

    I have a UserControl with one button that works perfectly in FF but in IE the Direct Event calls the "failure function" even when RestResult.Success is "true".

    Button in Ascx:
            <ext:Button ID="btnNovo" runat="server" AutoDataBind="true" Text="Novo" Icon="Add"
                Width="80" CausesValidation="false" Hidden="true">
                <DirectEvents>
                    <Click Success="afterNovo(true)" Failure="afterNovo(false, result)">
                        <EventMask ShowMask="false" Msg="Aguarde..." />
                    </Click>
                </DirectEvents>
            </ext:Button>
    Function in ascx for success/failure of direct event:
    function afterNovo(success, result) {
            if (success) 
                    alert(1);
            else
                    alert(0);
    }
    In my User Control behind I set the Url property:
    btnNovo.DirectEvents.Click.Url = "/Apoio/Novo";
    So, in the ApoioController I have the following method:
    public RestResult Novo()
            {
                    var result = new RestResult();
                    result.Success = true;
                    return result;
    
            }
    As I told in FF this code works, but in IE the failure function is called. I know this because in "function afterNovo(success, result )" the "success" parameter is false.

    Can you help me?

    Thank you
    Last edited by Daniil; Feb 19, 2013 at 3:31 AM. Reason: [CLOSED]
  2. #2
    Hi @mcfromero,

    The AjaxResult class should be used for a response on a DirectEvent request.

    Is it reproducible with an AjaxResult response?
  3. #3
    Hi Daniil,
    I don't know, I'll try it. But using AjaxResult instead of RestResult how will I know what function will be called (success or failure)?

    Thank you
  4. #4
    I think setting up its ErrorMessage property should do the trick.

Similar Threads

  1. Override F-key in Internet Explorer
    By glenh in forum 1.x Help
    Replies: 0
    Last Post: Jul 04, 2012, 9:41 PM
  2. Bug with TabPanel in Internet Explorer
    By dimitar in forum 1.x Help
    Replies: 0
    Last Post: Jul 22, 2011, 9:13 PM
  3. Trouble with internet explorer
    By W.villevoye in forum 1.x Help
    Replies: 0
    Last Post: Jun 17, 2010, 9:53 AM
  4. [CLOSED] internet explorer cannot open the internet site
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 28, 2009, 10:30 AM
  5. Internet Explorer 8
    By Ben in forum Open Discussions
    Replies: 3
    Last Post: Feb 25, 2009, 12:38 AM

Posting Permissions