View Single Post
Old 04-16-2007, 02:23 PM   PM User | #1
homerUK
Regular Coder

 
Join Date: Nov 2002
Location: Manchester, UK
Posts: 533
Thanks: 4
Thanked 1 Time in 1 Post
homerUK is an unknown quantity at this point
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!");
}
__________________
www.mattfacer.com
homerUK is offline   Reply With Quote