Welcome Guest, Not a member yet? Register   Sign In
Jquery Error and CI on FF3
#1

[eluser]nirbhab[/eluser]
Access to restricted URI denied" code: "1012

i am loading a form through a Jquery Load(). and it works fine.
But when i send this form data to a different domain for authentication.
It just throws the above error.

Ajax Request and Response is cross domain.
#2

[eluser]Bramme[/eluser]
You can't just make ajax calls to another domain, it's simply not possible because of the security risks. There's some techniques for it though. I think one is called "JSONP" but not sure.
#3

[eluser]nirbhab[/eluser]
Guys cheers! it is resolved, and thanx to Bramme for some idea, but this issue can be solved by JSON, getJSON();

Regarding more clarification, i was using $.post(url,data,function,'json');
Now i am using $.getJSON(url, data, function);

And its running fine, in a cross domain nature.




Theme © iAndrew 2016 - Forum software by © MyBB