开发者

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

开发者 https://www.devze.com 2023-01-12 20:03 出处:网络
I\'m using the following for a long-polling request (this is a plugin similar to getJSON)... $.jsonp({

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

精彩评论

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

关注公众号