{"id":191,"date":"2006-04-26T05:37:57","date_gmt":"2006-04-26T13:37:57","guid":{"rendered":"http:\/\/www.rosalindgardner.com\/blog\/?p=191"},"modified":"2015-03-16T10:26:12","modified_gmt":"2015-03-16T17:26:12","slug":"are-you-losing-visitors-to-your-newsletter-signup-process","status":"publish","type":"post","link":"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/","title":{"rendered":"Are You Losing Visitors to Your Newsletter Signup Process?"},"content":{"rendered":"<p>Hey All!<\/p>\n<p>Did you know that you may be losing site visitors &#8211; and therefore potential customers &#8211; when people sign up for your newsletter?<\/p>\n<p>A very kind NPT reader let me know (and then I learned about the same problem later at the Underground) and now I'm sharing the info with you.<\/p>\n<blockquote>\n<p>Dear Rosalind,<\/p>\n<p>I am in a position to help you with a problem you have on your web page.<\/p>\n<p>Currently, a reader scrolls halfway down the page, sees the email subscription, and submits it, but when they submit it, the entire page reloads, which can be very disorienting, especially for people with slow connections who have to wait to get back to where they were.<\/p>\n<p>I can, however, provide you with the HTML and Javascript code that will enable readers to submit the form, see that they've submitted the form while it's being processed, and see the results, right there in that box, so that they can just keep on reading without reloading the page.<\/p>\n<p>Nick Chase<br \/>\nBackstop Media<br \/>\n<a href=\"http:\/\/www.backstopmedia.com\" target=\"blank\">http:\/\/www.backstopmedia.com<\/a><\/p>\n<\/blockquote>\n<p><strong>Although I had coded the page so that visitors ended up in the very place where they had left off, I really appreciated Nick's suggestion and assistance.<\/strong><\/p>\n<p>Here is the code that Nick supplied to avoid the page reload, and how you can do it too.<\/p>\n<p><strong>1<\/strong>) Visit Google Maps API and get a &#8216;key'.<\/p>\n<p><strong>2<\/strong>) Substitute YOURGOOGLEKEY in the script below and place the script within the metatags on your page.<\/p>\n<blockquote><p>&lt;script<br \/>\nsrc=&#8221;http:\/\/maps.google.com\/maps?file=api&#038;v=1&#038;key=YOURGOOGLEKEY&#8221;<br \/>\ntype=&#8221;text\/javascript&#8221;&gt;&lt;\/script&gt;<\/p><\/blockquote>\n<p><strong>3<\/strong>) Place the following code below your <a href=\"https:\/\/rosalindgardner.com\/blog\/aweber\" rel=\"nofollow\" onmouseout=\"window.status=''; return true\" onmouseover=\"window.status='Aweber Autoresponder'; return true\" target=\"new\">Aweber Autoresponder<\/a> signup form code on the page.<\/p>\n<blockquote><p>&lt;script type=&#8221;text\/javascript&#8221;&gt;<\/p>\n<p>function addLead(theForm){<\/p>\n<p>&nbsp; \/\/First, let the user know something's happening so they don't submit again.<br \/>\n&nbsp; document.getElementById(&#8220;addLeadText&#8221;).innerHTML = &#8220;Adding you<br \/>\nto the mailing list&#8230;&#8221;;<\/p>\n<p>&nbsp; \/\/Now create the actual request.<br \/>\n&nbsp; var request = GXmlHttp.create();<\/p>\n<p>&nbsp; \/\/You'll likely want to change &#8220;test.php&#8221; to &#8220;http:\/\/aweber.com\/scripts\/addlead.pl<br \/>\n&nbsp; request.open(&#8216;post', &#8216;http:\/\/aweber.com\/scripts\/addlead.pl',<br \/>\ntrue);<\/p>\n<p>&nbsp; \/\/This part watches for the response to come back, then drops the text into the page<br \/>\n&nbsp; request.onreadystatechange = function() {<br \/>\n&nbsp;&nbsp;&nbsp; if (request.readyState == 4) {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>\ndocument.getElementById(&#8220;addLeadText&#8221;).innerHTML = request.responseText;<br \/>\n&nbsp;&nbsp;&nbsp; }<br \/>\n&nbsp; };<\/p>\n<p>\n&nbsp; \/\/Now we build the data from the form into the request itself.<br \/>\n&nbsp; var postString = &#8220;&#8221;;<br \/>\n&nbsp; for (i = 0; i &lt; theForm.elements.length; i++){<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; postString = postString +<br \/>\ntheForm.elements[i].name + &#8220;=&#8221; + URLencode(theForm.elements[i].value) +<br \/>\n&#8220;&#038;&#8221;;<br \/>\n&nbsp; }<br \/>\n&nbsp; <br \/>\n&nbsp; \/\/Then we tell the request how to let the server know what we're doing.<br \/>\n&nbsp; request.setRequestHeader(&#8220;Content-Length&#8221;, postString.length);<br \/>\n&nbsp; request.setRequestHeader(&#8220;Content-Type&#8221;,<br \/>\n&#8220;application\/x-www-form-urlencoded; charset=UTF-8&#8221;);<\/p>\n<p>&nbsp; \/\/Finally, we send the request.<br \/>\n&nbsp; request.send(postString);<br \/>\n}<\/p>\n<p>&nbsp;&nbsp; function URLencode(sStr) {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; return escape(sStr).replace(\/\\+\/g,<br \/>\n&#8216;%2B').replace(\/\\&#8221;\/g,'%22&#8242;).replace(\/\\'\/g, &#8216;%27&#8242;).replace(\/\\\/\/g,'%2F');<br \/>\n&nbsp; }<\/p>\n<p>\n&lt;\/script&gt;<\/p><\/blockquote>\n<p>Voila! No more reloading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey All! Did you know that you may be losing site visitors &#8211; and therefore potential customers &#8211; when people sign up for your newsletter? A very kind NPT reader let me know (and then I learned about the same problem later at the Underground) and now I&#8217;m sharing the info with you. Dear Rosalind, [&hellip;]<\/p>\n","protected":false},"author":577,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1222],"tags":[333,980,611,89,394,552],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Are You Losing Visitors to Your Newsletter Signup Process? - RosalindGardner.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Are You Losing Visitors to Your Newsletter Signup Process? - RosalindGardner.com\" \/>\n<meta property=\"og:description\" content=\"Hey All! Did you know that you may be losing site visitors &#8211; and therefore potential customers &#8211; when people sign up for your newsletter? A very kind NPT reader let me know (and then I learned about the same problem later at the Underground) and now I&#039;m sharing the info with you. Dear Rosalind, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/\" \/>\n<meta property=\"og:site_name\" content=\"RosalindGardner.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RosalindGardnerOnline?ref=hl\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/RosalindGardnerOnline\" \/>\n<meta property=\"article:published_time\" content=\"2006-04-26T13:37:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-03-16T17:26:12+00:00\" \/>\n<meta name=\"author\" content=\"Rosalind Gardner\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosalindgardner\" \/>\n<meta name=\"twitter:site\" content=\"@rosalindgardner\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rosalind Gardner\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/\",\"url\":\"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/\",\"name\":\"Are You Losing Visitors to Your Newsletter Signup Process? - RosalindGardner.com\",\"isPartOf\":{\"@id\":\"https:\/\/rosalindgardner.com\/blog\/#website\"},\"datePublished\":\"2006-04-26T13:37:57+00:00\",\"dateModified\":\"2015-03-16T17:26:12+00:00\",\"author\":{\"@id\":\"https:\/\/rosalindgardner.com\/blog\/#\/schema\/person\/e1a2787f4571b58c05f7c8cd6a98fa9f\"},\"breadcrumb\":{\"@id\":\"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/rosalindgardner.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Are You Losing Visitors to Your Newsletter Signup Process?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/rosalindgardner.com\/blog\/#website\",\"url\":\"https:\/\/rosalindgardner.com\/blog\/\",\"name\":\"RosalindGardner.com\",\"description\":\"Learn Blogging &amp; Affiliate Marketing with Rosalind Gardner\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/rosalindgardner.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/rosalindgardner.com\/blog\/#\/schema\/person\/e1a2787f4571b58c05f7c8cd6a98fa9f\",\"name\":\"Rosalind Gardner\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/rosalindgardner.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/76d7f9fe48227e9a6f4b6c1d3f786941?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/76d7f9fe48227e9a6f4b6c1d3f786941?s=96&d=mm&r=g\",\"caption\":\"Rosalind Gardner\"},\"description\":\"Super affiliate, blogger, and speaker, Rosalind is best known for her affiliate marketing training in the Super Affiliate Handbook: How I made $436,797 in One Year Selling Other Peoples' Stuff Online. You can connect with her on Facebook.\",\"sameAs\":[\"https:\/\/rosalindgardner.com\/blog\/sah\",\"https:\/\/www.facebook.com\/RosalindGardnerOnline\",\"https:\/\/www.pinterest.ca\/rosalindgardner\/\",\"https:\/\/x.com\/rosalindgardner\",\"https:\/\/www.youtube.com\/user\/rosalindgardner\"],\"url\":\"https:\/\/rosalindgardner.com\/blog\/author\/rosalindgardner\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Are You Losing Visitors to Your Newsletter Signup Process? - RosalindGardner.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/","og_locale":"en_US","og_type":"article","og_title":"Are You Losing Visitors to Your Newsletter Signup Process? - RosalindGardner.com","og_description":"Hey All! Did you know that you may be losing site visitors &#8211; and therefore potential customers &#8211; when people sign up for your newsletter? A very kind NPT reader let me know (and then I learned about the same problem later at the Underground) and now I'm sharing the info with you. Dear Rosalind, [&hellip;]","og_url":"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/","og_site_name":"RosalindGardner.com","article_publisher":"https:\/\/www.facebook.com\/RosalindGardnerOnline?ref=hl","article_author":"https:\/\/www.facebook.com\/RosalindGardnerOnline","article_published_time":"2006-04-26T13:37:57+00:00","article_modified_time":"2015-03-16T17:26:12+00:00","author":"Rosalind Gardner","twitter_card":"summary_large_image","twitter_creator":"@rosalindgardner","twitter_site":"@rosalindgardner","twitter_misc":{"Written by":"Rosalind Gardner","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/","url":"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/","name":"Are You Losing Visitors to Your Newsletter Signup Process? - RosalindGardner.com","isPartOf":{"@id":"https:\/\/rosalindgardner.com\/blog\/#website"},"datePublished":"2006-04-26T13:37:57+00:00","dateModified":"2015-03-16T17:26:12+00:00","author":{"@id":"https:\/\/rosalindgardner.com\/blog\/#\/schema\/person\/e1a2787f4571b58c05f7c8cd6a98fa9f"},"breadcrumb":{"@id":"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/rosalindgardner.com\/blog\/are-you-losing-visitors-to-your-newsletter-signup-process\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rosalindgardner.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Are You Losing Visitors to Your Newsletter Signup Process?"}]},{"@type":"WebSite","@id":"https:\/\/rosalindgardner.com\/blog\/#website","url":"https:\/\/rosalindgardner.com\/blog\/","name":"RosalindGardner.com","description":"Learn Blogging &amp; Affiliate Marketing with Rosalind Gardner","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rosalindgardner.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/rosalindgardner.com\/blog\/#\/schema\/person\/e1a2787f4571b58c05f7c8cd6a98fa9f","name":"Rosalind Gardner","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rosalindgardner.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/76d7f9fe48227e9a6f4b6c1d3f786941?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/76d7f9fe48227e9a6f4b6c1d3f786941?s=96&d=mm&r=g","caption":"Rosalind Gardner"},"description":"Super affiliate, blogger, and speaker, Rosalind is best known for her affiliate marketing training in the Super Affiliate Handbook: How I made $436,797 in One Year Selling Other Peoples' Stuff Online. You can connect with her on Facebook.","sameAs":["https:\/\/rosalindgardner.com\/blog\/sah","https:\/\/www.facebook.com\/RosalindGardnerOnline","https:\/\/www.pinterest.ca\/rosalindgardner\/","https:\/\/x.com\/rosalindgardner","https:\/\/www.youtube.com\/user\/rosalindgardner"],"url":"https:\/\/rosalindgardner.com\/blog\/author\/rosalindgardner\/"}]}},"_links":{"self":[{"href":"https:\/\/rosalindgardner.com\/blog\/wp-json\/wp\/v2\/posts\/191"}],"collection":[{"href":"https:\/\/rosalindgardner.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rosalindgardner.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rosalindgardner.com\/blog\/wp-json\/wp\/v2\/users\/577"}],"replies":[{"embeddable":true,"href":"https:\/\/rosalindgardner.com\/blog\/wp-json\/wp\/v2\/comments?post=191"}],"version-history":[{"count":0,"href":"https:\/\/rosalindgardner.com\/blog\/wp-json\/wp\/v2\/posts\/191\/revisions"}],"wp:attachment":[{"href":"https:\/\/rosalindgardner.com\/blog\/wp-json\/wp\/v2\/media?parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rosalindgardner.com\/blog\/wp-json\/wp\/v2\/categories?post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rosalindgardner.com\/blog\/wp-json\/wp\/v2\/tags?post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}