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



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 [Email] 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



--
Edwin Hannan
edwin.hannan@xxxxxxxxxxxx


.



Relevant Pages

  • Re: Help-Need confirmation page email address to be assigned to a javascript variable - Stuc
    ... Your <noscript> will always fail unless you use server side scripting, ... JavaScript - and JavaScript is not available if a tag is ... of the confirmation page. ...
    (microsoft.public.frontpage.programming)
  • Re: problem when using Confirmation box in ASP.NET program
    ... javascript is to emit it from the control. ... Derive the Asp.Net server side button and override the appropriate ... methods to insert a Javascript that produces the Confirm Dialogue Box. ... I still have a problem when using Confirmation box in ASP.NET program. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Code for navigation
    ... Java and Javascript are two very different programming languages. ... In general I agree, but it sure looks to me like the OP merely wants to throw up a confirmation screen, and will allow the page switch if the user confirms. ... I maintain several web applications where we do exactly this if the user elects to navigate out of certain situations. ...
    (comp.lang.java.programmer)
  • Passing a variable value from Javascript to asp.net server variable
    ... I am using javascript confirmfunction to get user's confirmation ... I need to display a confirmation alert to user. ... Below is the script I'm using in the Submit_Clicksubroutine. ...
    (microsoft.public.dotnet.framework.aspnet)