|
Rank: Member Groups: Member
Joined: 10/19/2009 Posts: 11
|
Hi there, I have found in the test case below using the latest version 8.0.34.2 that a callback doesn't fire when called from javascript when the page is loading using FireFox 3.6.4 The following code works in Chrome and IE 8 Please advise Cheers Mike
Code: HTML/ASPX
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="SecuredSigning.Web.Test" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Hello World!
<eo:Callback ID="Callback1" runat="server" ClientSideAfterExecute="OnAfterCallback1Execute">
</eo:Callback>
</div>
<script type="text/javascript">
alert('Before Callback');
eo_Callback('Callback1');
function OnAfterCallback1Execute(callback, output, extraData) {
alert('After Callback');
}
</script>
</form>
</body>
</html>
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This is normal. The control may not have been loaded when the code is called. Try to use setTimeout to delay the call should solve the problem.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/19/2009 Posts: 11
|
Hi,
Thanks for your reply, it has solved our issue.
Thanks
Mike
|
|