Home  |  Linux  | Mysql  | PHP  | XML
From:Dermot Paikkos Date:Fri Nov 27 14:20:42 2009
Subject:RE: Loading results (via ajax) from a CGI
This is of course a javascript/ajax question to a perl list....

> -----Original Message-----
> From: buzon@alejandro.ceballos.info
> [mailto:buzon@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.



Navigate in group perl.beginners.cgi at sever nntp.perl.org
Previous Next


Your recent visits
Re: Saving param after new recall of a cgi script
Showing errors with user input
Re: cgi and perl database interaction
LMPX.COM :: Linux, Mysql, Php, Xml



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants