Advertisement

Client Lookup - Loading....?

Moderators: Calcifer, slothy

Client Lookup - Loading....?

Postby Dargo » Fri Dec 14, 2007 9:36 pm

I try this waY:
this.xmlhttp.onreadystatechange = function() {
switch (self.xmlhttp.readyState) {
case 1:
self.onLoading();

document.getElementById("divloadza").innerHTML= "Loading..";
break;
case 2:
self.onLoaded();
break;
case 3:
self.onInteractive();
break;
case 4:
self.response = self.xmlhttp.responseText;
self.responseXML = self.xmlhttp.responseXML;
self.responseStatus[0] = self.xmlhttp.status;
self.responseStatus[1] = self.xmlhttp.statusText;
if (self.execute) {
self.runResponse();
}
And:
if (self.responseStatus[0] == "200") {
self.onCompletion();
document.getElementById("divload").innerHTML ="";

In local server, ok run, but in a webserver, not load the results..
stay (Loading....)
well, i'm a newbie, please hlepp-me to put a "Loading" in this script.

Thank's
Dargo
 
Posts: 2
Joined: Fri Dec 14, 2007 4:05 pm

Return to General questions regarding AJAX scripts

Who is online

Users browsing this forum: No registered users and 4 guests

cron