English 中文(简体)
页: 1 Query.get queue the request until web connection available
原标题:jQuery.get queue the request until network connection available

我正在利用“白金花车”建立一个网络,以研究并更新一种CRM型系统。

移动电话发送了使用<代码>jQuery.get和jQuery.post的最新信息,并在有网络链接的情况下进行罚款。

如何制定法规,或我可以采用什么方法查询jQuery.getjQuery.post。 当网络连接无法提供时,当网络再次开通时,便发出电话。

问题回答

Edit: ah poo, i Just noted You that jQuery Mobile , I original 改为:作为流动住房的分类。 只要支离破碎的支离破碎的支离破碎,就只能工作。

我有一个想法,提出第二批“jax”请求,但你不需要。 就像这一样,刚刚成立了你们的日本宇宙航空研究开发机构,给它一个时间。 如果采用并适用;(4)(宽带连接应当足够,但有些电话可能需要约10-15)二秒,供服务器回答,它只是试图将亚克斯请求重新分类,然后在50次程序启动后加以修改(即,如果方案是闲置的,没有数据,它是否会发送)。 如果连接起来,它就将转向成功功能,然后将数据发送给服务器。

因此,情况如下:

  $.ajax({
    type:  GET ,
    timeout: 4000,
    tryCount : 0,
    retryLimit: 50,
    success:function(data) {
            sendSavedData();
    }
    error: function(xhr, textStatus, errorThrown) {
      if(textStatus ==  timeout ) {
          this.tryCount++;
          if(this.tryCount <= this.retryLimit) {
            $.ajax(this);
            return;
          }
          var check = confirm( We have tried   + this.retryLimit +   times to do this and the server has not responded. Do you want to try again? );
          if(check) {
            this.timeout = 200000;
            $.ajax(this);
            return;
          } else {
            return;
          }
      }
    }
  });




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签