$.ajax({
type: 'POST',
url: "http://myurl:port/projectpath.action",
data: formInput,
dataType: "TEXT",
timeout:600000,
async: true,
success:function(jqXHR, textStatus, errorThrown){
alert("error :" + textStatus);
alert("incoming Text :" + jqXHR.responseText);
alert("What ErrorThrown :" + errorThrown);
$('#loader').hide();
window.location.replace("paymentResult.html");
},
error:function(jqXHR, textStatus, errorThrown){
alert("error " + textStatus);
alert("incoming Text " + jqXHR.responseText);
alert("What ErrorThrown" +errorThrown);
$('#loader').hide();
//alert(xhr.status+" Server Unavailable! Please try again later");
}
});
return false;
});
我就要超時,雖然我設置了ajax時間out..and在配置文件中我也提到了超時...它仍然是越來越超時.. 。黑莓WebWorks的應用越來越超時
alert("What ErrorThrown" +errorThrown);
上述節目和我的配置文件中的警報消息,我傳遞的參數是:
"rim:connection timeout="600000""
"id"TCP_WIFI"/id"
"id"MDS"/id"
"id"BIS-B"/id"
"id"TCP_CELLULAR"/id"
"id"WAP2"/id"
"id"WAP"/id"
"/rim:connection"
請幫助我。
在此先感謝
是的,我在我的config.xml中使用訪問uri參數。但仍然問題是..有幾個othar url調用在我的項目中他們工作正常......但只爲這個特定的URL它給警報中的「網關超時」(「什麼錯誤」+ errorThrown); 。所以你可以請plz告訴我有關... – user1695579
是的,我在我的config.xml中使用訪問uri參數。但問題仍然存在..有幾個othar url調用在我的項目中他們工作正常...但只爲這個特定的網址,它提供了一個「網關超時」警報(「什麼錯誤」+ errorThrown); 。所以你可以告訴我有關...我使用黑莓操作系統6..handset9300 – user1695579