Feb 14, 2013, 11:27 AM
[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:
Can you help me?
Thank you
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]