This is of course a javascript/ajax question to a perl list....
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]
> Sent: 27 November 2009 13:59
> To: [email protected]
> Subject: Loading results (via ajax) from a CGI
>
> Any idea where is going this?
>
>
> If this help, here is my ajax routine:
>
> function ShowInstallInfo (int_value)
> {
> var ajax_this;
> if (window.XMLHttpRequest) { ajax_this = new XMLHttpRequest(); }
> else { ajax_this = new ActiveXObject("Microsoft.XMLHTTP"); }
> ajax_this.onreadystatechange = function ()
Take out the if clause and see what you get.
> { if (ajax_this.readyState==4 ||
ajax_this.readyState=="complete")
> { alert("Results: "+ajax_this.status+"
> text:"+ajax_this.responseText); }
> };
// { if (ajax_this.readyState==4 || ajax_this.readyState=="complete")
{ alert("Results: "+ajax_this.status+"
text:"+ajax_this.responseText); }
// };
Good luck,
Dp.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/