Interstitial, supplemental javascript (includes email validator)

//DO NOT INCLUDE SCRIPT TAGS IMV_Ints.validateEmail = function(strEmail){ //replace any leading or trailing spaces strEmail=$.trim(strEmail); var regex = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; if(!regex.test(strEmail)) return false; return true; } IMV_Ints.postGo = function(url){ $('#dvIntsError').fadeOut(300); if(!IMV_Ints.validateEmail($('#ints-txtEmail').val())){ $('#dvIntsError').fadeIn(300); return; } var form=$('
').attr('method','post').attr('action',url); $("[id|='ints']").each(function(){ $('').attr('type','hidden').attr('name',this.id).attr('value',$(this).val()).appendTo(form); }) $(form).appendTo('body'); $(form).submit(); }; IMV_Ints.InterstitialEnd=function(){$('#ints-Submit').click(function(){IMV_Ints.postGo('/index.aspx?sec=log&sub=minreg&OriginalURL=');});};
Page 1 of 23
Next Page