AJAX and NS_ERROR_DOM_BAD_URI error

后端 未结 3 403
感动是毒
感动是毒 2021-01-18 09:21

I have been having the following problem, i think it\'s probably due to the fact that my approach may be misguided, but hopefully with your help i can sort this out!

相关标签:
3条回答
  • 2021-01-18 10:01

    This error occurs if you have given different domain name in the code. http://hiox.org/index.php?id=2737

    0 讨论(0)
  • 2021-01-18 10:10

    It's also possible if you're currently on a http webpage and are trying to send an AJAX call to a https website on the same domain.

    0 讨论(0)
  • 2021-01-18 10:12

    You'll have to use JSONP to do cross domain as far as I know - it's a security exception in AJAX. JQuery handles it nicely but, you will have to have the server reply modified to match it.

    I have done an OSS project for Social Actions that does this using a PHP proxy. You can look at it here: http://os.adamaltemus.com/social-actions/

    0 讨论(0)
提交回复
热议问题