Your browser does not support JavaScript!Your browser does not support JavaScript!Your browser does not support JavaScript!"); //GTM var resultID = data.split("...")[1]; dataLayer.push({ event: "form submit", eventAction: "submit consultation form", eventLabel: "expanded consultation form", 'lead': { 'id': resultID } }); } else if (data.match("Error:InvalidWaveReferralNumber")) { $("#status").html("Error! The reference number you entered cannot be matched with an active Wave account number. Please double check that the account number you entered is correct. Otherwise, contact Bath Fitter"); } else { $("#status").html("Error! Your free in-home consultation request couldn't be sent."); } //$("#status").text(data); //$("#status").css('color', 'green'); }, error: function (XMLHttpRequest, textStatus, errorThrown) { $("#status").html("Error! Your free in-home consultation request couldn't be sent."); //alert(errorThrown + "nn" + XMLHttpRequest.responseText); } }); } }); $(document).ready(function () { var urlParams; (window.onpopstate = function () { var match, pl = /+/g, // Regex for replacing addition symbol with a space search = /([^&=]+)=?([^&]*)/g, decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); }, query = window.location.search.substring(1); urlParams = {}; while (match = search.exec(query)) urlParams[decode(match[1])] = decode(match[2]); })(); //fill Lead controls from query string... $("#FirstName").val(urlParams["FirstName"]), $("#LastName").val(urlParams["LastName"]), $("#ZipCode").val(urlParams["ZipCode"]), $("#Phone1").val(urlParams["Phone1"]), $("#Email").val(urlParams["Email"]) });Your browser does not support JavaScript!

Read more from the original source:
Bathroom & Bathtub Remodeling - Bath Fitter

Related Posts
February 7, 2019 at 2:44 am by Mr HomeBuilder
Category: Bathroom Remodeling