Hi guys I have this problem now for 1 week and I can not figure it out.
I created this script in “Ajax” the problem is that the first time I open the browser (Firefox 5.0) and I make the request, the print function does not start, I work from the second request then why?
This is the function that invokes printing:
[CODE]
myHandler7 function () {
if (myRequest.readyState == 4 & & myRequest.status == 200) {
release ();
else {}
e = document.getElementById (“calcolatrice_quantita”);
e.innerHTML = ‘<IMG src=”../immagini/v3_loading.gif” style=”position:absolute; top:150px;left:500px”>’;
}
}
This is the print function:
[CODE]
myHandler8 function () {
if (myRequest.readyState == 4 & & myRequest.status == 200) {
else {}
e.innerHTML = ‘<IMG src=”../immagini/v3_loading.gif” style=”position:absolute; top:150px;left:500px”>’;
}
}
function print () {
myRequest CreateXmlHttpReq2 = (myHandler8);
myRequest.open (“GET”, “stampa.php”);
myRequest.send (null);
}