4

我将以下内容用于长轮询请求(这是一个类似于 getJSON 的插件)...

$.jsonp({
  "url": url,
  "data": {
      "settings", settings
  },
  "success": function(userProfile) {
      // handle user profile here 
  },
  "error": function(d,msg) {
      alert("Could not find user "+userId);
  }
});

在 30 秒过去或有信息要发送(长轮询)之前,请求不会完成。

问题是 Firefox 是唯一会在底部显示“Waiting for URL...”的浏览器。有什么办法可以防止这种情况发生吗?

4

1 回答 1

2

您可能需要检查 jsonp 插件的版本,因为这是一个已知且已修复的错误

于 2010-08-19T17:58:19.243 回答