【发布时间】:2023-03-22 20:20:01
【问题描述】:
<input type="button" class="btnlarge green-btn marleft5" onclick="UpdateInfo();" value="Update" id="UpdateButton" />
这是我的按钮,点击下面的按钮即可调用。
function UpdateInfo()
{
var currCheckInID = $("#selectedCheckInId").val();
if(!validateInfo()) return;
try {
var retVal = "";
var urlCreate = "./GenericHandler.ashx?method=UpdateParentInformation&checkInID=" + $("#selectedCheckInId").val() + "&parentLocationID=" + $('#<%= DRPParentLocation.ClientID %>').val() + "&handyPhoneID=" + $('#<%= DRPHandyPhones.ClientID %>').val() + "&cabinNumber=" + $("#txtCabinNo").val() + "&IConciergeNumber=" + $("#txtIConciergeNo").val() + "&childGuestID=" + $("#selectedChildGuestId").val() + "&OldparentLocationID=" + Old_parentlocation + "&OldhandyPhoneID=" + Old_HandyPhone + "&OldcabinNumber=" + Old_CabinNumber + "&OldIConciergeNumber=" + Old_iConciergeNo;
$.ajax({
type: "POST",
url: urlCreate,
contentType: "text/ ",
dataType: "",
success: function (response) {
window.location.reload();
},
error: function () { }
});
}
catch (err) { }
}
该按钮在 Desktop 中完美运行,但在 iPad 中无法运行。
【问题讨论】:
-
alerts 之类的东西在UpdateInfo()中有效吗?尝试将警报和其他指标添加到流程的不同部分,这样您就可以确保每个部分都在运行。
标签: javascript jquery css iphone ipad