简体   繁体   English

Web Service在IE7中可用,但在Firefox中不可用

[英]Web Service works in IE7 but not Firefox

I have a .Net web service that I call from javascript using: 我有一个.Net Web服务,可以使用以下方法从javascript调用:

$.ajax({ type: "POST", url: "http://myServerIP/Myervice.asmx/MyMethod",
                 data: "{}",
                 contentType: "application/json; charset=utf-8",
                 dataType: "jsonp",
                 success: function(msg) { alert('sucess ' + msg); },
                 error: function(XMLHttpRequest, textStatus, errorThrown) { alert(XMLHttpRequest); alert(textStatus); alert(errorThrown); }
             });

I get a success message in IE7 and in Firefox I don't get any decent errors back just 'error' and 'undefined' 我在IE7和Firefox中收到成功消息,但没有收到任何体面的错误,只是“错误”和“未定义”

I suspect this is due to the fact that I'm on an Intranet here and IE7 is taking my credentials and passing them to IIS on 'myServer' on my behalf while other browsers cannot. 我怀疑这是由于我在这里位于Intranet上,而IE7却将我的凭据作为我的凭据传递给了“ myServer”上的IIS,而其他浏览器则无法。

Is this the case? 是这样吗

How do I go about fixing this problem? 我该如何解决这个问题?

Thanks in advance 提前致谢

Davy 戴维

Maybe there is something going on with the datatype 'jsonp'. 也许数据类型为“ jsonp”。 Read this , try using a different datatype.. 阅读此内容 ,尝试使用其他数据类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 密码正则表达式适用于Chrome和Firefox,但不适用于IE7 - Password regex works in chrome and firefox, but not IE7 HTML格式-iframe无法在Firefox中运行,但可以在IE7中运行 - Html form - iframe not working in firefox but works in IE7 IE7的下拉菜单重置问题在FireFox和Chrome上正常运行 - Dropdown reset issues with IE7 works fine on FireFox and Chrome jQuery - IE7 - 变量未定义(适用于 Chrome、Safari、Firefox) - jQuery - IE7 - variable is undefined (works in Chrome, Safari, Firefox) 将HTML插入iframe在Firefox / Chrome / Opera中有效,但在IE7 / 8中则无效 - Inserting HTML to iframe works in Firefox/Chrome/Opera but not in IE7/8 IE7 JSON响应:预期的对象..适用于Chrome和FireFox - IE7 JSON Response: Object Expected.. Works in Chrome and FireFox Web 服务在 chrome 中工作正常,但在 Firefox 和 IE 中不工作 - Web service work fine in chrome, but not in firefox and IE innerHTML在FF中起作用,但在IE7中不起作用 - innerHTML works in FF but not in IE7 简单的GET rest服务只能在IE(或Postman)中使用,而不能在Chrome中使用,而不能在Firefox中使用 - Simple GET rest service works in IE only ( or Postman ) , but not in Chrome , not in Firefox 在IE7中遇到Javascript错误,但在Firefox中却没有 - Getting a Javascript error in IE7 but not in Firefox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM