Auto call to WebService

Showing 1-1 of 1 messages
Auto call to WebService Nitin Gaikwad 1/10/13 3:15 AM
Hi friend,

I have android Phone gap application where i can communicate with server via
$.ajax({
           type:"POST",
           url:serverURL,
           data:request,
           cache:false,
           contentType: "application/json; charset=UTF-8",
           dataType: "json",
           success:onPostSuccess,
           beforeSend:function(xhr){
           xhr.setRequestHeader("Cache-Control","no-cache");
           xhr.setRequestHeader("pragma","no-cache");
           },
           error: onPostError
           });   

which successfully run.

the problem come when there the server take time for response then application rehit the request for every 1 min so i want to stop that so can anybody help i follow the link http://article.gmane.org/gmane.comp.handhelds.phonegap/33352/match=  but the problem still persists. :(  i am using the phonegap 2.0(i tried old also still problem there 1.2,1.4,1.6 etc)

Thanks,
Nitin Gaikwad