java脚本中的XMLHttpRequest问题 [英] Problem with XMLHttpRequest in java script

查看:63
本文介绍了java脚本中的XMLHttpRequest问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我在这个论坛上是新手,所以任何帮助都会非常感激。刚花了3个小时搜索各种论坛但无济于事。基本上这在IE中运行良好,但在Firefox(v2)中它始终提供警报页面不可用。请稍后再试。这个电话是在同一个域上,我已经尝试过切换到获取和同步到异步等但没有运气...!

Hi,

I''m new on this forum so any help would be much appreciated. Have just spent 3 hours searching various forums but to no avail. Basically this works fine in IE but in Firefox (v2) it always gives the alert "Page unavailable. Please try again later." The call is on the same domain and i''ve tried switching post to get and syn to async etc but no luck...!

展开 | 选择 | Wrap | 行号

推荐答案

您好Tim,欢迎来到TSDN!


将参数添加到send方法。请参阅示例此处
Hi Tim, welcome to TSDN!

Add the parameters to the send method. See an example here.


您好acoder,


感谢您的快速回复,但仍然保留了毫无疑问的问题!我已修改了我的代码(更改了sURL并添加了paramString而没有?)但现在没有返回任何内容。也许我被误解了?


我带了

Hi acoder,

thanks for your quick reply but still having probs which is no doubt down to me! I''ve modified my code (changed sURL and added paramString without the ?) but now nothing is returned. Maybe i misunderstood ?

I took

展开 | 选择 | Wrap | 行号


网址必须来自同一个域名。如果您需要提出跨域请求,则需要从服务器端执行此操作。
The URL must be from the same domain. If you need to make a cross-domain request, you will need to do this from the server side.


这篇关于java脚本中的XMLHttpRequest问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆