javascript - invalid HTTP response code ‘0’ - Stack Overflow

I am trying to make use of a script that uses CPAINT and I keep getting the error above when I click on

I am trying to make use of a script that uses CPAINT and I keep getting the error above when I click on favourite an item (a 5 star rating system).

It looks like it is making an AJAX request but I can not see this from my Firebug to debug this - why is this the case?

More importantly what does the error code 0 mean?

Thank you all for any help

I am trying to make use of a script that uses CPAINT and I keep getting the error above when I click on favourite an item (a 5 star rating system).

It looks like it is making an AJAX request but I can not see this from my Firebug to debug this - why is this the case?

More importantly what does the error code 0 mean?

Thank you all for any help

Share Improve this question edited Jun 16, 2010 at 21:41 Daniel Vassallo 345k72 gold badges512 silver badges446 bronze badges asked Jun 16, 2010 at 20:32 AbsAbs 58k103 gold badges282 silver badges417 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

A response code of 0 from XMLHttpRequest can mean that you are being blocked by the same origin policy. Make sure that you are using relative URLs for your AJAX requests.

You may also want to check out the following Stack Overflow post for one possible solution to workaround the same origin policy:

  • XMLHTTPRequest.status returns 0 and responseText is blank in FireFox 3.5

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742277466a4413858.html

相关推荐

  • javascript - invalid HTTP response code ‘0’ - Stack Overflow

    I am trying to make use of a script that uses CPAINT and I keep getting the error above when I click on

    3天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信