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



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 [Email] will be subsituted by the clients email
address..so why not in the following statement? How can I get the clients
email address into this statement (knowing I have it stored in [Email] and
my hidden form field ClientEmail??

If as you say I need server scripting then how would I do this???..confuded
even more now??

</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>

--
Edwin Hannan
edwin.hannan@xxxxxxxxxxxx
"Ronx" <ronx917@xxxxxxxxxxx> wrote in message
news:%23XzFZkV3GHA.3812@xxxxxxxxxxxxxxxxxxxxxxx
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" <edwin.hannan_AT_NOSPAM_ntlworld.com> wrote in message
news:uCv9luO3GHA.3944@xxxxxxxxxxxxxxxxxxxxxxx
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: RFD: How To Recognize Bad Javascript Code
    ... Elements consist of tags ... Your example `script' elements are empty where they should have ... | Using the pseudo-protocol javascript in the href is never valid. ... Some web developers use this to work ...
    (comp.lang.javascript)
  • RE: Can I use more than one style in a treeview control at the roo
    ... // Check to see if the startup script is already registered. ... > Also if Microsoft changes the format in which ASP.NET composes the ClientID ... > in another version then your Javascript will not work. ... > I recommended in my previous post adding an enclosing div tag to avoid ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Double-document.write(...) insert
    -like space?

    ... What is with all that voodoo scripting by breaking up tags that have no ... Then why not just write the image tag anyway? ... It isn't the word script that ends it, it is the character sequence </ that can end it - it is up to the browser. ... want to use it based on a JavaScript value, I have to do this nested ...
    (comp.lang.javascript)
  • Re: Double-document.write(...) insert
    -like space?

    ... confused and end the real script tag once. ... want to use it based on a JavaScript value, I have to do this nested ... What is with all that voodoo scripting by breaking up tags that have no ... Then why not just write the image tag anyway? ...
    (comp.lang.javascript)
  • Re: Adding rows to a table, works in Firefox, but not IE
    ... mark-up and they will be implied, the opening tag by any TR ... It sounds like the sort of thing that might come form someone familiarwith Java who has not understood that javascript is not Java. ... What is an inner function declaration? ... your assignment to it is an assignment to a property of the ...
    (comp.lang.javascript)