Help-Need confirmation page email address to be assigned to a javascript variable - Stuck again

E

Edwin Hannan

Hi all

I am back again and really really need your help

I asked a question a few days back, I needed to have the contents of a forms
email field available on the confirmation page to be assigned to a
javascript variable contained in some javascript tracking code in the body
of the confirmation page.

I was told that the MS Frontpage std forms component would not let me do
this..so ok I went and purchased send it.from Webs Unlimited (a custom form
to email script) and have it all working with my front page web but I just
cannot get it to do what I purchased it for (even with the limited help of
webs unlimited???)

Basically on the confirmation page if I put a tag then this is
subsituted for the email address that was on the form..standard stuff no
surprises here.

Then the fun begins..........

If I have this code in the body I can get the email address into the field
id ClientEmail and display it (although this would be hidden in live web)

<form name=idform/>
<input id='ClientEmail' name='ClientEmail' type='text' value=[Email]>
</form>

So I thought..ok.. if I can get the contents of [Email] then I should be
able to assign it to a javascript variable..so I tried
var wgOrderReference = '[Email]'; as suggested by webs unlimited but it does
not work.. the tracking company just receive a value of [Email] for that
variable????

so I tried var wgOrderReference = document.getElementById('ClientEmail')
thinking this should do it as I know it is in this field because I just put
it there...well that does not work either???

I also need to make sure that the email address is available here
aswell..but that does not work...

</script>
<noscript>
<img
src="http://track.webgains.com/transaction.html?wgver=1.1&wgprogramid=411&wg
rs=1&wgvalue=123&wgeventid=722&wgorderreference=[Email]" alt="" />
</noscript>

Anyways I am not hot on web programming and this has really confused me.

So.. anyone ..please can you have a look at
http://www.metrofinance.co.uk/mortgageenqtest.htm and the confirmation page
generated and let me know where I have gone completely and utterly wrong:))

If anyone can help..I need some code examples and where to put them..my
brain has now lost the will to live in trying to sort this out..probably
dead simple for one of you gurus (I hope:)

If you need any more info please just ask

cheers

Ed
 
R

Ronx

Try
var wgOrderReference = document.getElementById('ClientEmail').value

Your <noscript> will always fail unless you use server side scripting,
because getting the image from a .html page using a querystring requires
JavaScript - and JavaScript is not available if a <noscript> tag is
effective.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/

Edwin Hannan said:
Hi all

I am back again and really really need your help

I asked a question a few days back, I needed to have the contents of a
forms
email field available on the confirmation page to be assigned to a
javascript variable contained in some javascript tracking code in the
body
of the confirmation page.

I was told that the MS Frontpage std forms component would not let me do
this..so ok I went and purchased send it.from Webs Unlimited (a custom
form
to email script) and have it all working with my front page web but I
just
cannot get it to do what I purchased it for (even with the limited help
of
webs unlimited???)

Basically on the confirmation page if I put a tag then this is
subsituted for the email address that was on the form..standard stuff no
surprises here.

Then the fun begins..........

If I have this code in the body I can get the email address into the
field
id ClientEmail and display it (although this would be hidden in live web)

<form name=idform/>
<input id='ClientEmail' name='ClientEmail' type='text' value=[Email]>
</form>

So I thought..ok.. if I can get the contents of [Email] then I should be
able to assign it to a javascript variable..so I tried
var wgOrderReference = '[Email]'; as suggested by webs unlimited but it
does
not work.. the tracking company just receive a value of [Email] for that
variable????

so I tried var wgOrderReference = document.getElementById('ClientEmail')
thinking this should do it as I know it is in this field because I just
put
it there...well that does not work either???

I also need to make sure that the email address is available here
aswell..but that does not work...

</script>
<noscript>
<img
src="http://track.webgains.com/transaction.html?wgver=1.1&wgprogramid=411&wg
rs=1&wgvalue=123&wgeventid=722&wgorderreference=[Email]" alt="" />
</noscript>

Anyways I am not hot on web programming and this has really confused me.

So.. anyone ..please can you have a look at
http://www.metrofinance.co.uk/mortgageenqtest.htm and the confirmation
page
generated and let me know where I have gone completely and utterly
wrong:))

If anyone can help..I need some code examples and where to put them..my
brain has now lost the will to live in trying to sort this out..probably
dead simple for one of you gurus (I hope:)

If you need any more info please just ask

cheers

Ed
[/QUOTE]
 
E

Edwin Hannan

Hi Ronx

I have tried that and just awaiting results from the tracking company...but
as you say the problem lies in the statement between the no script tags

I must admit that I dont fully understand the tracking script..but if I am
filling the variable wgOrderReference is this variable actually used to
transmit the data?

or is the data transferred by the statement between the noscript tags? I
know that the tag (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top