Hi All,

I'm new to this so please be patient.
I'm using the following Jquery script:
var counter = 0;

function loaded(){
    $.ajax({
        url : "status_",
        error : function (data) {
            counter++;
            if(counter == 3) {
                $("#Status").html("server disconnected");
                counter = 0;
            }
        },
        success : function (data) {
            $("#Status").html("server connected");
            $("#placeHolder").html(data);
        }
    });
    self.setTimeout('loaded()', 10000);
}

Basically this script is being used as a work around for a problem we
have encountered in Cherrypy (python web server). What we are trying
to do is to show "status_" page even if the server does not respond
with the newest data we have (last one we got from the server before
it stopped responding). When I use it with FF and IE7, it works just
fine. When I use it with IE6, new data is not being shown on the
"status_" page.
Can anyone help please?

Thanks

Reply via email to