jQuery $.get() function succeeds with 200 but returns no content in Firefox

后端 未结 3 823
感情败类
感情败类 2021-01-24 01:58

I\'m writing my first bit of jQuery, and I\'m having a problem with jQuery.get(). I\'m calling this;

$.get(url, updateList);

where

3条回答
  •  悲哀的现实
    2021-01-24 02:12

    You probably won't be able to do this due to cross-domain security. Internet Explorer will allow you to Ajax remote domain when running from file://, but Firefox and Chrome won't.

    Try to put both files on the same server and see if it works (it should).

提交回复
热议问题