Hi All,
Please try the following code in ie9 and google chrome .
sample.a5w
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content="Alpha Five HTML Editor Version 11 Build 2237-3828">
<!-- must use in order to make XP Themes render -->
<meta HTTP-EQUIV="MSThemeCompatible" content="Yes" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="javascript/a5.js"></script>
<script type="text/javascript" src="javascript/a5_url.js"></script>
<title></title>
<script>
<!--
function openAjax(){
A5.ajax.callback('sample_test.ajax.a5w');
alert("lksdjf");
}
-->
</script>
</head>
<body>
<form>
<input type="button" onclick="openAjax();" value="intype"></input>
</form>
<p><button onclick="openAjax();" value="buttontag">
</button></p>
</body></html>
Ajax Page code....
sample_test.ajax.a5w
================
<%a5
dim msg as C="Hai"
dim ajaxResponse as C
dim name as C
dim sno as N
dim connString as C
ajaxResponse = "alert('" + js_escape(msg) + "');"
?ajaxResponse
dim name2 as C
dim name3 as N
%>
When I clicked on any button for 3 or more times, In Google Chrome ajaxresponse alert is executing three times , why?
In my app, Because of this problem data is not saved...
In my app the data is saving into the database when I am putting alert in javascript after the ajaxcallback method is called,But ajaxresponed alert is not executed in Google Chrome(1.2.183.21 version).
In IE8 and IE9 data is saving as well as ajaxresponed alert is executing.
Please try the following code in ie9 and google chrome .
sample.a5w
<!DOCTYPE html>
<html>
<head>
<meta name="generator" content="Alpha Five HTML Editor Version 11 Build 2237-3828">
<!-- must use in order to make XP Themes render -->
<meta HTTP-EQUIV="MSThemeCompatible" content="Yes" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="javascript/a5.js"></script>
<script type="text/javascript" src="javascript/a5_url.js"></script>
<title></title>
<script>
<!--
function openAjax(){
A5.ajax.callback('sample_test.ajax.a5w');
alert("lksdjf");
}
-->
</script>
</head>
<body>
<form>
<input type="button" onclick="openAjax();" value="intype"></input>
</form>
<p><button onclick="openAjax();" value="buttontag">
</button></p>
</body></html>
Ajax Page code....
sample_test.ajax.a5w
================
<%a5
dim msg as C="Hai"
dim ajaxResponse as C
dim name as C
dim sno as N
dim connString as C
ajaxResponse = "alert('" + js_escape(msg) + "');"
?ajaxResponse
dim name2 as C
dim name3 as N
%>
When I clicked on any button for 3 or more times, In Google Chrome ajaxresponse alert is executing three times , why?
In my app, Because of this problem data is not saved...
In my app the data is saving into the database when I am putting alert in javascript after the ajaxcallback method is called,But ajaxresponed alert is not executed in Google Chrome(1.2.183.21 version).
In IE8 and IE9 data is saving as well as ajaxresponed alert is executing.
Comment