/    Sign up×
Community /Pin to ProfileBookmark

Code works in Netscape – Not IE – help please

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 [url]http://www.telfordsteamrailway.co.uk/index.htm[/url]
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

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@goofballMay 10.2003 — 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.
Copy linkTweet thisAlerts:
@AllanauthorMay 10.2003 — 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
×

Success!

Help @Allan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...