问题描述
1)我的回电函数
1) my call back function
function fetch_servicedata1() {
var filename = document.getElementById("ctl00_ContentMain_hdnfile").value;
companyID = document.getElementById('ctl00_ContentMain_hdnCompanyID').value;
var service_Res = "";
$.ajax({
type: "POST",
url: "UtilityService.asmx/New_FatchCacheXMLString",
data: "filename=" + filename + "&CompanyID=" + companyID+"&Rq_CID=1",
dataType: "xml",
// cache: false,
async: true,
success: function (xml) {
// alert('first relsut');
if (xml.documentElement.text) {
fnFetchResult_New(xml.documentElement.text);
}
else {
fnFetchResult_New(xml.documentElement.textContent);
}
if(TotalResultCount>0)
document.getElementById("divProgressBar").style.display = '';
secondPagingFlag = true;
console.log('before func 2');
// setTimeout(fetch_servicedata2(), 1);
},
error: function (xhr, ajaxOptions, thrownError) {
// alert(xhr.status);
// alert(thrownError);
// $('#waitScreen').css('display', 'none'); $('#waitBox').css('display', 'none');
}
});
}
2)我的活动
2) my event
$(".external-link").live("click", function (e) {
$.ajax({
type: "GET",
async: true,
url: "",
success: function () {
window.open("HtlIntermediate.aspx");
}
})
});
i需要事件调用而不等待回调成功我已经调用了回调函数,它将需要大约1分钟来响应,同时需要单击按钮并打开弹出窗口,使用asp.net显示数据库中的数据
朋友,我打电话给酒店服务2点击r显示酒店结果,我在5秒内的第一次点击响应和第二次点击响应将花费大约40秒,所以在1次点击结果后用户喜欢看酒店的详细信息,所以当第二次点击帖子不成功时它不起作用,所以我不能使用beforeSend,我不需要阻止我的任何链接第二次点击。亲切回复ASAP
i need to event call without wait for call back success i have called call back function and it will take around 1 minute to response and in the meantime need to click on the button and open popup window which show data from database using asp.net
hi friend, i am calling 2 hit to hotel service for display hotel result, my first hit response within 5 second and second hit response will take approx 40 second, so after 1 hit result user like to see hotel details so it's not working whenever second hit post not success, so i cannot use beforeSend, i need to not block my any link for second hit..kindly reply ASAP
推荐答案
2)我的活动
2) my event
这篇关于如何在ajax回调post方法时调用弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!