what's the purpose of this code (webform)

If you experience any issues with GetResponse, please post it here and we will be on it ASAP.

what's the purpose of this code (webform)

Postby adityaget » Sat Nov 07, 2009 4:20 am

When I create new web form and copy paste the URL, it always show an error in IE8.
Upon investigation it's this code that cause the IE to break

<script type="text/javascript">var el=document.getElementById("custom_http_referer"); el.value = document.location; </script>

Now what's the purpose of this JS? When I clicked edit HTML in web form, the updated form code doesn't include the above JS
But when I create new web form, the above JS is included in the code

Thanks
adityaget
 
Posts: 1
Joined: Thu Nov 05, 2009 4:10 pm

Re: what's the purpose of this code (webform)

Postby jmyown1 » Sat Nov 07, 2009 11:06 pm

This script:

<script type="text/javascript">var el=document.getElementById("custom_http_referer"); el.value = document.location; </script>

needs to be put in the in the code section of your page just after the <body> tag and should be in side a form (form tag looks something like <form action="" method="get"></form>) at the end of your script there should be a closing tag </form>.

So your code should look something like:

<body>
<form action="" method="get"></form><script type="text/javascript">var el=document.getElementById("custom_http_referer"); el.value = document.location; </script>
</form>
</body>

However, when I tested your script it did not display any form field(s) or submit button. Check your original code created in your GetResponse forms again. A simple test is to copy your code (like above) into your notepad text editor and save as test.html to the desktop. Then open file in your browser.
jmyown1
 
Posts: 2
Joined: Tue Oct 27, 2009 12:30 am
Location: Stockton, CA USA


Return to Troubleshooting, Bugs and Problems



Who is online

Users browsing this forum: No registered users and 1 guest

cron