Connecting Tech Pros Worldwide Help | Site Map

Request on another domain not working in firefox

Member
 
Join Date: Jun 2008
Posts: 97
#1: Dec 4 '08
hi
when i use ajax for sending a request on another server then it is not working in firefox. my code is

var url="http://www.example.php"
url=url+"?m="+m
url=url+"&sid="+Math.random()


this code is working properly on Internet Explorer,But firefox is not sending request to another server

pls give me its solution

Thanks in advance
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,740
#2: Dec 4 '08

re: Request on another domain not working in firefox


Hi.

Firefox will not allow AJAX calls to other domains.
This is a security measure that most browsers have adopted by now.

Which version of IE are you using?
When I tested this on IE7, it denied the request just as Firefox did.

P.S.
I am going to move this question over to the JavaScript forum.

This is a JavaScript problem, and as such does not belong in the PHP forum.
Please try to post your questions in the appropriate forums.

Thank you.
Moderator
Member
 
Join Date: Jun 2008
Posts: 97
#3: Dec 5 '08

re: Request on another domain not working in firefox


thanks for reply.I ll be careful about selection of forum next time.
Reply