Basically, I'm trying to pull data from a database on a different server. On the site without the database (we'll say http://thisdomain.com/index.html), I have var gomon = new Array(); gomon[0] = "Test"; gomon[1] = "Testx"; gomon[2] = "Test3";
$.ajax({ type: "GET", url: "http://somedomain.net/jsonp/selection.php", dataType: "jsonp", data: "foo="+gomon, success: function(gata){ alert(gata.go[3]].repping) } }); selection.php basically is echoing this: ({ "go": [ {"zepping":"grrrrrrr","zamount":"1","zepped":"Ryura","tzme":"2"}, {"zepping":"grrrrarrr","zamount":"1","zepped":"Ryura","tzme":"2"}, {"zepping":"grrrrsrrr","zamount":"1","zepped":"Ryura","tzme":"2"}, {"zepping":"grrrdrrrr","zamount":"1","zepped":"Ryura","tzme":"2"} ] }) Now, when viewing thisdomain.com/index.html, Firebug gives me this error: [Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] And nothing executes. What did I do wrong? Thanks, Ryura