/    Sign up×
Community /Pin to ProfileBookmark

Mozilla Compatibility Problems!!!!

I’m having problems with a script working in Mozilla.
Any help appriciated!!!

====================================================
<script language=”JavaScript”>
var qty1Default = 2;
var qty2Default = 0;
var qty3Default = 0;
var qty4Default = 0;
var qty5Default = 0;
var qty6Default = 0;
var unitcost1Default = 400.00;
var unitcost2Default = 0.00;
var unitcost3Default = 0.00;
var unitcost4Default = 0.00;
var unitcost5Default = 0.00;
var unitcost6Default = 0.00;
var flatrateDefault = 360.00;
var rateDefault = 25.00;
var hoursDefault = 15.00;
var discountDefault = 0.00;

function recalcTotal()
{
///////////////////////

}
</script>

<input type=”text” name=”x_flatrate” id=”x_flatrate” size=”30″ OnChange=”recalcTotal()”>
<script>document.all[“x_flatrate”].value = flatrateDefault</script>

///THIS IS WORKS FINE IN A EI TO GET DEFAULT VALUES BUT I can’t figure out why it doesn’t work in Mozilla.

Cheers

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@SpectreReturnsNov 16.2005 — document.all doesn't exist in Firefox. Use document.getElementById("id") instead, as it is standardized.
Copy linkTweet thisAlerts:
@dmitryselivauthorNov 16.2005 — Hmm.

Thanks. I didn't realize you can use it this way.

It did solved the problem.


Appriciate a hint.

Cheers, DS
×

Success!

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