DummyClose PopupNeed this because the infoboxes are hidden on initial page load –js isn’t rendered during postback– so infobox doesn’t work 0; } function clickVisa() { $(“#hasVisa_hidden”).val(“clicked”); ControlValidate(“hasVisa_hidden”); } function clickAutoLoan() { $(“#hasAutoLoan_hidden”).val(“clicked”); ControlValidate(“hasAutoLoan_hidden”); } function clickPaidAutoLoan() { $(“#hasPaidAutoLoan_hidden”).val(“clicked”); ControlValidate(“hasPaidAutoLoan_hidden”); } function ControlValidate(id) { var c = document.getElementById(id); if (typeof (c.Validators) != “undefined”) { for (var i = 0; i < c.Validators.length; i++) { ValidatorValidate(c.Validators[i]); } } } function isPageValid() { if (typeof (Page_Validators) != "undefined") { for (var i = 0; i < Page_Validators.length; i++) { var validator = Page_Validators[i]; ValidatorValidate(validator);//make sure it's been checked //console.log(validator.id + ":" + validator.isvalid); if (!validator.isvalid) { return false; } } } return true; } function setupMessage() { if (isPageValid()) { //when the postback returns, all of this will be undone -- hopefully the postback turns other stuff on $("#SubmitButton").css('disabled', true); ShowLoading(); //in DotNetScripts_v4 $(".message", "#LoadingContainer").css("background", "none").css("padding-left","1px").css("padding-right","28px"); //remove the spinner, it doesn't spin in IE $(".inner", "#LoadingContainer").prepend("Loading]]>“); //add in the css spinner setTimeout(function () { $(“.inner”, “#LoadingContainer”).css(“width”, “300px”).css(“padding-top”, “10px”); $(“.message:first”, “#LoadingContainer”).html(“Validating”); $(“.inner”, “#LoadingContainer”).append(“

This may take a minute.

Please do not refresh this page.

“);
$(“.message”, “#LoadingContainer”).css(“line-height”, “inherit”);
}, 300);
//setTimeout(function () { if ($(“#returnedResults”).val() != “true”) { $(“#loadingMsg”).hide(); $(“#loadingSection”).show(); $(“#warningSection_timeout”).show(); } }, 89 * 1000);
return true;
}
else {
return false;
}
}
//function testPost() {
// $.post(“http://akusaappsdev/ubenrollment/api/decision/enroll”, { “enroll_firstName”: “test” },
// function (result) { alert(result); });
//}
function setConsentName() {
var first = $.trim($(“#firstName”).val());
var last = $.trim($(“#lastName”).val());
var suffix = $.trim($(“#suffix”).val());
if (first != “” && last != “”) {
$(“#consent_applicantName”).text(“, ” + $.trim(first + ” ” + last + ” ” + suffix).toUpperCase() + “,”);
}
else {
$(“#consent_applicantName”).text(“”);
}
}

This article originally appeared on http://www.holmesfleamarket.com/