This is of course a javascript/ajax question to a perl list.... > -----Original Message----- > From: bu...@alejandro.ceballos.info > [mailto:bu...@alejandro.ceballos.info] > Sent: 27 November 2009 13:59 > To: beginners-cgi@perl.org > 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: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/