Page 1 of 1

Permission denied to call XMLHttpRequest.open

Posted: Wed Oct 11, 2006 11:23 am
by Luke
What could be causing this error?
Javascript Error wrote:Error: uncaught exception: Permission denied to call method XMLHttpRequest.open

Code: Select all

function findLocations(conditions, map){
	var conditions = conditions ? conditions : '';
	var request = GXmlHttp.create(); // Just a factory method to capture an XMLHttpRequest Object
	request.open("GET", "<?php echo $_GET['url']; ?>/map/" + conditions, true);
	request.onreadystatechange = function() {
	  if (request.readyState == 4) {
		eval('var locations = ' + request.responseText);
		mapLocations(locations, map);
	  }
	}
	request.send(null);
}

Posted: Wed Oct 11, 2006 11:28 am
by n00b Saibot
on line 3rd?

Posted: Wed Oct 11, 2006 1:44 pm
by Luke
umm... just stopped giving the error all the sudden. I guess google's API must have been down momentarily.