开发者

How do I keep FireFox from “spinning” with a long-polling request?

I'm using the following for a long-polling request (this is a plugin similar to getJSON)...

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

The request won't finish until either 30 seconds have passed or there is information to send (long-polling).

The problem is that Firefox is the only browser that will display "Waiting for URL..." at the bottom. Is th开发者_如何学JAVAere any way to prevent this?


You might want to check the version of the jsonp plugin, as this is a known and fixed bug

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜