Hi all ,
I am newbie to the AJAX. I got one exapmle from the net and I deployed it in
struts . However it works fine only when the server starts for the first time .On revisting that page the AJAX code does not work . May I know the reson
why the code is running only for the first time when the server is started. Here is the AJAX code
function
callServer() {
// Build the URL to connect to
var url = "lumpsumSimulator.do?actioncondition=FIRSTTIME";
// Open a connection to the server
xmlHttp.open("GET", url, true);
// Setup a function for the server to run when it's done
xmlHttp.onreadystatechange = updatePage;
// Send the request
xmlHttp.send(null);
}
which I am caling from this
JSP code
& lt;html:text readonly="false" property="txtRetainableValue" onclik=
"callServer();" size="25" style="text-align=left;" maxlength="14"&& lt;/html:text& lt;