RE: Loading results (via ajax) from a CGI
[email protected] ("Dermot Paikkos") Fri, 27 Nov 2009 14:20:42 +0000
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <LF4E4A7F494124297A55FFE276A16D18E.1259331510.earth.sciencephoto.co.uk@MHS> |
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.