Click to See Complete Forum and Search --> : Code works in Netscape - Not IE - help please


Allan
05-10-2003, 04:13 AM
I use a webmail form on my site.

I use a url in the form 'url?parameter' to pass a parameter identifying the person to whom the email is intended from the calling page to the called form

I then use the location.search to extract the parameter and a switch block to set up the necessary screen display.

This form uses this parameter amongst other things to display at the top of the form the
title of the person addresses using 'document'write'.

In netscape this works and the adressee's title is displayed, in IE it is not.

Go to http://www.telfordsteamrailway.co.uk/index.htm
anc lick 'Contacs' on the leftt hand nav bar.

Click on 'Webmaster' (thats me) so that any junk only comes to me.

Any help or advice appreciated

goofball
05-10-2003, 06:40 AM
I think your trouble comes from having that second argument in the
var parameter = assignment.

If your url that opens the popup window has a query string like:
page.html?12
then
var parameter = document.location.search.substring(1);

is all you need. parameter will have a value of '12' in this case.

Allan
05-10-2003, 09:49 AM
Thanks for the idea - tried it - no change

I put an 'alert' message at the start of the 'getwhoto' function immediately after 'parameter =....'
this alert does not appear suggesting that the
function 'getwhoto' is not being called perhaps