S
sameergn
We have a script at http://localhost:8080/a.html which loads
http://localhost:8081/b.js using script tag. A button defined in
a.html invokes a function from b.js. The function makes AJAX call to
http://localhost:8081/c.html
Firefox 3.5.5 allows the call to c.html. It can be seen in Firebug and
Tamper data plugins. The response code in these plugins is 200. But in
AJAX callback the response code is 0 when readyState becomes 4 and
responseText is blank.
Same behavior in Chrome. IE7 shows "Access is Denied" error. IE8
executes fine and response code is 200 in AJAX callback and
responseText is properly set. All browsers are on Windows XP.
We believe this is not a cross domain issue. b.js is loaded from
localhost:8081 and fetching a resource on same server using AJAX. FF
3.5.5 does not show any error in Error Console, allows the AJAX call
and even gets a 200 response code and content length is also set
properly as seen in Tamper Data. Not sure why it returns 0 as response
code and sets responseText to blank.
Anybody faced similar issue?
Thanks,
Sameer
http://localhost:8081/b.js using script tag. A button defined in
a.html invokes a function from b.js. The function makes AJAX call to
http://localhost:8081/c.html
Firefox 3.5.5 allows the call to c.html. It can be seen in Firebug and
Tamper data plugins. The response code in these plugins is 200. But in
AJAX callback the response code is 0 when readyState becomes 4 and
responseText is blank.
Same behavior in Chrome. IE7 shows "Access is Denied" error. IE8
executes fine and response code is 200 in AJAX callback and
responseText is properly set. All browsers are on Windows XP.
We believe this is not a cross domain issue. b.js is loaded from
localhost:8081 and fetching a resource on same server using AJAX. FF
3.5.5 does not show any error in Error Console, allows the AJAX call
and even gets a 200 response code and content length is also set
properly as seen in Tamper Data. Not sure why it returns 0 as response
code and sets responseText to blank.
Anybody faced similar issue?
Thanks,
Sameer