/    Sign up×
Community /Pin to ProfileBookmark

Javascript not working in Firefox

As part of my OU course I have to analyse sites that use Javascript forms and errors that might occur when testing on different browsers. I found a number and located the errors but seem stuck with [URL=http://www.uk-wp.com/visa/calculator.htm]http://www.uk-wp.com/visa/calculator.htm[/URL]

The page is supposed to update when certain selections are made but on Mozilla this seems to action properly. I’ve looked through the code and can’t see the isse – can someone point me in the right direction? 😮

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@FangAug 06.2005 — Check out the errors listed in FF's JavaScript Console
Copy linkTweet thisAlerts:
@charlie_linesauthorAug 08.2005 — Thanks for your help, I've checked out the console as suggested. The error was:

Error: span_WorkExp0 is not defined

Source File: [URL]http://www.uk-wp.com/hsmp/calc_hsmp.js[/URL]

Line: 258

It's just a coding error then (not written properly for all browsers)?

Again, thanks for your help ?
Copy linkTweet thisAlerts:
@FangAug 08.2005 — Yes, you will have to go through all the JavaScript code replacing references like: [I]span_WorkExp0.innerHTML[/I] with [I]document.getElementById('span_WorkExp0').innerHTML[/I]

or [I]document.getElementById('span_WorkExp0').firstChild.data[/I] (if [I]span_WorkExp0[/I] is a textnode)

Also there's a problem loading the .js menu functions
Copy linkTweet thisAlerts:
@charlie_linesauthorAug 08.2005 — Thanks for all your help, you've directed me down the right path. I've seen so many sites that haven't been developed (or tested) with all browsers in mind - it's been a useful education.

Thanks for your time.
×

Success!

Help @charlie_lines 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.18,
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,
)...