click.cmpgnr.com
Open in
urlscan Pro
15.156.37.76
Public Scan
Submitted URL: http://click.cmpgnr.com/form?61g10--g3g1-bdmtlg9&sl=3a&t=1&ac=gjwm
Effective URL: http://click.cmpgnr.com/Public/UpdatePreferences.aspx?gjwm-1fdnd-bdmtlg-61g1088&_v=2
Submission: On March 28 via manual from IN — Scanned from CA
Effective URL: http://click.cmpgnr.com/Public/UpdatePreferences.aspx?gjwm-1fdnd-bdmtlg-61g1088&_v=2
Submission: On March 28 via manual from IN — Scanned from CA
Form analysis
1 forms found in the DOMName: previewSmfForm — POST ./UpdatePreferences.aspx?gjwm-1fdnd-bdmtlg-61g1088&_v=2
<form name="previewSmfForm" method="post" action="./UpdatePreferences.aspx?gjwm-1fdnd-bdmtlg-61g1088&_v=2" id="previewSmfForm" novalidate="novalidate">
<div>
<input type="hidden" name="RadScriptManager1_TSM" id="RadScriptManager1_TSM"
value=";;System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35:en-US:9ddf364d-d65d-4f01-a69e-8b015049e026:ea597d4b:b25378d2;Telerik.Web.UI, Version=2021.1.330.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4:en-US:6ddfaaf7-68e8-4aa2-a15d-336c3a8f9e4b:16e4e7cd:ed16cbdc:f7645509:88144a7a">
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="">
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="jL5WH+e7BSqwhExM2JQYyF+wNpxJgEXYwaSG0os4AmuifDSNLDj2BjQJYJgQVM2kapJ+++zUUHLe7tkORzcHa1GZwpPb69Q5meMM5/hL6Jcm7kg2mWhdfE8bxqA39ilnqRF6njlWA4wAviLkAo9oSzeoWkJL2S9RPLZ1lq/fuWirz7b+FmdO7JeJdicgQviPn159w9UOTDEMcXvPmEhAkN52+m3Ukp5LG0jiLZsLYfNa8PBRXgOGkt8lZZ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EmTCcoh8ZkgtKnCOq/4Uu4lfWdh4rSZwoRqTVqYpZNkZrXBYaEeHim1bkRwUZCjRj5v6w8JFybCZS/4A==">
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['previewSmfForm'];
if (!theForm) {
theForm = document.previewSmfForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
<script src="/WebResource.axd?d=pynGkmcFUV13He1Qd6_TZIxPeYW2qNBIsNvawnoPpsp7nE1crTRbrT_exQGl6oyufGteVhy89QBwgdxlQ7TYRg2&t=637814480020000000" type="text/javascript"></script>
<script
src="/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-CA%3a9ddf364d-d65d-4f01-a69e-8b015049e026%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2021.1.330.45%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-CA%3a6ddfaaf7-68e8-4aa2-a15d-336c3a8f9e4b%3a16e4e7cd%3aed16cbdc%3af7645509%3a88144a7a"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]]>
</script>
<div>
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="1912A01A">
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="Uz855qve+GvPyjVowqiQSILm3Gw5r1XZUaB5Bc4WXTzhMG/Ob22iBugL8mB2Vrs+Eu+ubZSUuHY1/7zJj50oj19W7U28xozoVaYnEHroA7U+XavSC9MkcIisCR2s9SJC">
</div>
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('RadScriptManager1', 'previewSmfForm', ['tRadAjaxManagerSU', ''], [], [], 90, '');
//]]>
</script>
<!-- 2021.1.330.45 -->
<div id="RadAjaxManagerSU" style="display: none;">
<span id="RadAjaxManager" style="display:none;"></span>
</div>
<div id="RadAjaxLoadingPanel" class="RadAjax RadAjax_Default" style="display:none;">
<div class="raDiv">
<img id="LoadingPanelImage" class="LoadingPanelImage" src="../Skins/loading.gif" alt="Loading ..." style="border-width:0px;">
</div>
<div class="raColor raTransp">
</div>
</div>
<div id="formPanel">
<div id="Messages" style="text-align: center">
<span id="clientSideErrorMessage" class="ErrorMessageArea" style="display: none;"></span>
</div>
<div id="formStruct">
<div id="smf">
<!-- background: common to all forms -->
<div id="smf-background">
<!-- foreground: common to all forms -->
<div id="smf-foreground">
<!-- begin: Update Preferences Form -->
<div id="smf-update-preferences" class="smf-form">
<!-- section: Language dropdown-->
<!-- section: header -->
<div class="section" id="header">
<!-- logo -->
<div id="smf-logo">
<div id="smfLogo"></div>
</div>
<div id="smf-header-text">
<div id="smfSubscriptionHeader">
<h1>Update Preferences</h1>
<p class="description">Use this form to update your preferences and personal information.</p>
</div>
</div>
</div>
<div id="mailingListContainer">
<!-- section: mailing lists -->
<div class="section" id="mailinglist">
<div id="smfSubscriptionMailinglist">
</div>
</div>
</div>
<!-- section: user profile -->
<div class="section" id="userprofile">
<div id="smfSubscriptionProfile">
<h2>To update your profile, edit the information below:</h2>
<table class="controls" width="100%">
<tbody>
<tr class="control txBx ">
<td> </td>
<td class="cell-label"><label for="txt-1088779">First Name</label></td>
</tr>
<tr>
<td> </td>
<td class="cell-field"><input type="text" value="Seth" id="txt-1088779" name="txt-1088779" contactattributeid="1088779" contactattributelabel="First Name" class="longTxBox"></td>
</tr>
<tr class="control txBx ">
<td> </td>
<td class="cell-label"><label for="txt-1088784">Last Name</label></td>
</tr>
<tr>
<td> </td>
<td class="cell-field"><input type="text" value="" id="txt-1088784" name="txt-1088784" contactattributeid="1088784" contactattributelabel="Last Name" class="longTxBox"></td>
</tr>
<tr class="control txBx email required">
<td class="cell-required"><img src="images/icon_RequiredField.png" alt="required"></td>
<td class="cell-label"><label for="txt-1088789">Email</label></td>
</tr>
<tr>
<td> </td>
<td class="cell-field"><input type="text" value="seth.vance@everestre.com" id="txt-1088789" name="txt-1088789" contactattributeid="1088789" contactattributelabel="Email" class="longTxBox required email"></td>
</tr>
<tr class="control ddBx ">
<td> </td>
<td class="cell-label"><label for="txt-1088804">Email Format</label></td>
</tr>
<tr>
<td> </td>
<td class="cell-field"><select name="txt-1088804" id="txt-1088804" contactattributeid="1088804" contactattributelabel="Email Format">
<option value="2">Html</option>
<option value="1">Text</option>
<option value="3" selected="selected">Both</option>
</select></td>
</tr>
<tr id="descriptionRow">
<td class="cell-required"> </td>
<td class="description"><img src="images/icon_RequiredField.png" alt="required"> Required Fields</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- section: footer -->
<div class="section" id="footer">
<div id="smfSubscriptionFooter">
<div><input type="submit" value="Update" id="smf-subscription-submit"></div>
<div id="linkWrapper"><a id="lnk-unsubscribe" href="javascript:void(0);">or Unsubscribe</a></div>
<div id="socialmedia"><span id="txt-follow-us">Follow Us:</span><span
id="uiSpecificSocialMediaIcons"><a href="https://www.facebook.com/CoffingDW/" class="socialmediaLink socialmediaFacebook" target="_blank"><img src="https://securemedia.campaigner.com/campaigns/socialmedia/facebook.gif" alt="Facebook" title="Facebook"></a><a href="https://twitter.com/CoffingDW" class="socialmediaLink socialmediaTwitter" target="_blank"><img src="https://securemedia.campaigner.com/campaigns/socialmedia/twitter.gif" alt="Twitter" title="Twitter"></a><a href="https://www.linkedin.com/in/tom-coffing-112bab1/" class="socialmediaLink socialmediaLinkedIn" target="_blank"><img src="https://securemedia.campaigner.com/campaigns/socialmedia/linkedin.gif" alt="LinkedIn" title="LinkedIn"></a><a href="https://www.youtube.com/coffingdw" class="socialmediaLink socialmediaYoutube" target="_blank"><img src="https://securemedia.campaigner.com/campaigns/socialmedia/youtube.gif" alt="Youtube" title="Youtube"></a></span>
</div>
</div>
</div>
</div>
<!-- end: Update Preferences Form -->
</div>
</div>
</div>
</div>
<input type="hidden" name="hfValidationMessage" id="hfValidationMessage">
</div>
<script type="text/javascript">
var ajaxCallInProcess = false;
var showFormTimeoutHandler;
$(function() {
jQuery.validator.setDefaults({
errorPlacement: function(error, element) {
var trigger = element.next('.ui-datepicker-trigger');
if (trigger.length > 0) {
var parentRow = trigger.parent().parent();
$('<tr><td></td><td id="datePickerError"></td></tr>').insertAfter(parentRow);
$("#datePickerError").html(error);
} else error.insertAfter(element);
}
});
//Localize validation message
$.validator.messages.email = "Please enter a valid email address";
$.validator.messages.required = "This field is required";
$.validator.messages.date = "Please enter a valid date.";
$.validator.messages.number = "Please enter a valid number.";
});
$(document).ready(function() {
InitUI();
$('#clientSideErrorMessage').hide();
$("#previewSmfForm").validate({
errorClass: "showErrorField"
});
$("#lnk-unsubscribe").prop("href", "javascript:void(0);").click(function() {
CallUnsub();
});
$("a:not(#lnk-unsubscribe)").attr('target', '_blank');
setupValidation(".confirmEmail", ".email");
SetupMobilePhoneValidation();
setupValidation(".confirmMobilePhone", ".mobilePhone");
$("#dialog").dialog({
autoOpen: false,
modal: true
});
});
function setupValidation(confirmFieldName, fieldName) {
var $confirm = $(confirmFieldName);
if ($confirm.length == 0) return;
var name = $confirm.attr("name");
var $class = $("#smfSubscriptionProfile input" + fieldName + "[type=text]");
var id = $class.attr("id");
$("[name='" + name + "']").rules("add", {
equalTo: "#" + id
});
$class.bind("paste", function(e) {
e.preventDefault();
});
}
$.validator.addMethod("regex", function(value, element, regexp) {
var re = new RegExp(regexp);
return this.optional(element) || re.test(value);
}, "Please check your input.");
function SetupMobilePhoneValidation() {
var $mobilePhoneClass = $("#smfSubscriptionProfile input[type=text].mobilePhone");
var mobilePhoneId = $mobilePhoneClass.attr("id");
if ($mobilePhoneClass.length > 0 && $("#" + mobilePhoneId).hasClass("required")) {
$("#" + mobilePhoneId).rules("add", {
regex: "^" + "\\+?[1-9]\\d{1,14}$"
});
$.extend($.validator.messages, {
regex: "Please enter valid mobile phone."
});
}
}
/////// AJAX Calls
function ConfirmCallUpdate() {
if ($('#chk-consentEmailCheckbox').not(':checked').length && $('#chk-consentMobilePhoneCheckbox').not(':checked').length) {
// all not selected
ShowConfirmDialog();
} else {
CallUpdate();
}
}
function ShowConfirmDialog() {
$("#dialog").dialog({
height: 250,
width: 400,
buttons: {
"Yes": function() {
$(this).dialog("close");
CallUpdate();
},
"Cancel": function() {
$(this).dialog("close");
}
}
});
$("#dialog").dialog("open");
}
function CallUpdate() {
$("#previewSmfForm").validate({
errorClass: "showErrorField"
});
if ($("#previewSmfForm").valid()) {
//create json object
var jsonArray = [];
var mailingArray = [];
var fieldsArray = [];
$("#mailinglist").find("input[type='checkbox']:checked").each(function(index) {
mailingArray.push($(this).prop("id"));
});
$("#userprofile").find("input, select").each(function(index) {
$this = $(this);
var isRequired = $this.hasClass("required") ? "1" : "0";
var isEmail = $this.hasClass("email") ? "1" : "0";
var isMobilePhone = $this.hasClass("mobilePhone") ? "1" : "0";
var otherValue = "";
var isSelected = "";
var isMultiSelect = "";
var fVal = $this.val();
var elementID = $this.prop("id");
// Handle the multiselect other value textbox
if ($this.data("type") === "multiselect" && $this.data("input") === "otherText") {
otherValue = $this.val()
fVal = "";
elementID = $this.data("contactattributeid");
isMultiSelect = "1";
}
if ($this.is(":checkbox")) {
// handle multiselect checkboxes
if ($this.data("type") === "multiselect") {
if ($this.is(":checked")) {
isSelected = "1";
} else {
isSelected = "0";
}
elementID = $this.data("contactattributeid");
fVal = $this.val();
isMultiSelect = "1";
} else {
// handle regular checkbox
fVal = $this.is(":checked") ? "1" : "0";
}
}
fieldsArray.push({
id: elementID,
value: fVal,
isRequired: isRequired,
isEmail: isEmail,
msOtherValue: otherValue,
msIsSelected: isSelected,
msIsMultiSelect: isMultiSelect,
isMobilePhone: isMobilePhone
});
});
$('#clientSideErrorMessage').hide();
jsonArray.push({
type: "UpdatePreferences",
mailingIds: mailingArray,
fields: fieldsArray
});
var jsonStr = JSON.stringify(jsonArray);
DoAjaxCall(jsonStr);
} else {
$("#previewSmfForm").validate({
errorClass: "showErrorField"
});
}
}
function CallUnsub() {
DoAjaxCall("Unsubscribe");
}
function DoAjaxCall(args) {
//$.log("DoAjaxCall(" + args + ") ?");
if (ajaxCallInProcess) {
// $.log(" ==> Call Skipped, ajax Call is already Processing a request");
} else {
$(document).ready(function() {
try {
// $.log(" ==> Set ajaxCallInProcess to true");
ajaxCallInProcess = true;
var radAjaxManagerJQ = $("#RadAjaxManager");
if (radAjaxManagerJQ.length > 0) {
radAjaxManagerJQ.ready(function() {
var radAjaxManager = radAjaxManagerJQ[0].control;
if (radAjaxManager != null) {
//$.log(" ==> DoAjaxCall(" + args + ")");
radAjaxManager.ajaxRequest(args);
}
});
}
} catch (error) {
//$.log(" ==> Ajax call error:" + error);
}
});
}
}
function ResponseEnd(sender, eventArgs) {
ajaxCallInProcess = false;
//$("#messageArea").css("display", "none");
}
function InitUI() {
//$.log("initUI()");
//bind our simple <input id="smf-subscription-submit"> button with a click / return false to avoid the postback
$("#smf-subscription-submit").bind("click", function() {
ConfirmCallUpdate();
return false;
});
}
function RedirectTo(redirectToUrl) {
setTimeout(function() {
window.location = redirectToUrl;
}, 500);
}
function showError(args, msg) {
switch (args) {
case 'emailInUse':
alert("The email address entered is already subscribed and cannot be used. Enter a different email address and try again");
break;
case 'formFieldCount':
$('#smf').hide();
$('#clientSideErrorMessage').show().html("There was an error processing the form");
break;
case 'requiredFields':
alert("There are missing required fields. Complete all required fields and try again");
break;
case 'invalidEmail':
alert("This email has been put on global 'do not email' list and cannot be added at this time.");
break;
case 'invalidPhone':
alert("Please enter a valid phone number");
break;
case 'ajaxError':
$('#smf').hide();
$('#clientSideErrorMessage').show().html("There was an error processing the form");
break;
case 'UniqueKey':
alert("There was an error processing the form");
break;
}
}
function setCheckBox(control) {
var txtBox = $(control);
// Get the accompanying checkbox for the Other textfield
var chk = $("input:checkbox[name='" + txtBox.attr('id') + "']");
// Check the Other checkbox when adding text
if (!chk.attr('checked')) {
chk.prop('checked', true);
}
// Clear the checkbox if textbox is empty
if (txtBox.val() === "") {
chk.prop('checked', false);
}
}
</script>
<script type="text/javascript">
//<![CDATA[
window.__TsmHiddenField = $get('RadScriptManager1_TSM');
Sys.Application.add_init(function() {
$create(Telerik.Web.UI.RadAjaxManager, {
"_updatePanels": "",
"ajaxSettings": [],
"clientEvents": {
OnRequestStart: "",
OnResponseEnd: "ResponseEnd"
},
"defaultLoadingPanelID": "RadAjaxLoadingPanel",
"enableAJAX": true,
"enableHistory": false,
"links": [],
"styles": [],
"uniqueID": "RadAjaxManager",
"updatePanelsRenderMode": 0
}, null, null, $get("RadAjaxManager"));
});
Sys.Application.add_init(function() {
$create(Telerik.Web.UI.RadAjaxLoadingPanel, {
"initialDelayTime": 0,
"isSticky": false,
"minDisplayTime": 0,
"skin": "Default",
"uniqueID": "RadAjaxLoadingPanel",
"zIndex": 90000
}, null, null, $get("RadAjaxLoadingPanel"));
});
//]]>
</script>
</form>
Text Content
UPDATE PREFERENCES Use this form to update your preferences and personal information. TO UPDATE YOUR PROFILE, EDIT THE INFORMATION BELOW: First Name Last Name Email Email Format HtmlTextBoth Required Fields or Unsubscribe Follow Us: Confirmation Requiredclose You have removed yourself from all communication. Are you sure you want to proceed?