开发者

Can't load xml within jquery submit function with Firefox, Ok with Chrome

开发者 https://www.devze.com 2023-04-09 13:14 出处:网络
The following works on Chrome but not Firefox ... $(\'#foo\').submit(function () { $.get(\'externals/xml/college.xml\', function(d){

The following works on Chrome but not Firefox ...

$('#foo').submit(function () {

    $.get('externals/xml/college.xml', function(d){  

开发者_StackOverflow社区With firebug I can see the Get but it does not return any response and is highlighted red with a red X. There are no other console error messages.

I open the same file on document ready so the submit results in a re-read of the xml. The initial .get at document ready works with all browsers.

Any thoughts on what could be causing this?

0

精彩评论

暂无评论...
验证码 换一张
取 消