CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Ajax and Design (http://www.codingforums.com/forumdisplay.php?f=55)
-   -   error 12152 from ajax request (http://www.codingforums.com/showthread.php?t=112381)

homerUK 04-16-2007 02:23 PM

error 12152 from ajax request
 
Hi guys,

I'm performing an Ajax.Request (using prototype) but in IE occasionally I get an error code 12152. I couldn't really find much about it when googling.... any ideas??

here's a part of the code

Code:

function save() {
        var url = 'files/do_stuff.php';
        var d = new Date();
        var time = d.getTime(); //used to stop IE caching... stupid IE.
        var pars = Form.serialize($('my_Form')) + "&time=" + time;
        var success = function(t) { do_success(t); }
        var failure = function(t) { do_failure(t); }
        var myAjax = new Ajax.Request(
        url,
        {
                method: 'post',
                parameters: pars,
                onSuccess:success,
                onFailure:failure       
        });

}

function do_failure(t) {
        alert(Error with request (Error: " + t.status + ")\nPlease try again");
}

function do_success() {
        alert("save complete!");
}


homerUK 04-16-2007 02:40 PM

little more research has turned up a few things... namely it appears to be an HTTP error.... of which there are a few

http://wiki.motionbased.com/mb/Motio...P_Status_12029

david_kw 04-16-2007 04:13 PM

I found something similar. It said that error was

"Transport Status 12152 means Connection Closed by Server"

david_kw


All times are GMT +1. The time now is 01:16 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.