/    Sign up×
Community /Pin to ProfileBookmark

IE vs FireFox – OnClick – function not being called

Two chunks of code – work in IE, but not in firefox – HELP !

Check box that when checked will run CalcFinalPrice():

[FONT=”Courier New”]<input name=”NYS_Tax” type=”checkbox” id=”NYS_Tax” onClick=”CalcFinalPrice()” value=”Add_8_25_NYS_Tax”>
8.25% NYS Tax Included[/FONT]

and a Radio button that when checked does not call OnClick function – ignore the “disabled” since it is programmatically enabled once another box is selected.

[FONT=”Courier New”]<input name=”International” type=”radio” disabled onClick=”CalcFinalPrice()” value=”International_EMS”>[/FONT]

Thanks for your help !
Vinnie
[URL=”http://www.JustGoFly.com”]JustGoFly.com[/URL]

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@TinypantsApr 17.2007 — Works fine for me in Firefox.

<i>
</i>&lt;script language="JavaScript" type="text/javascript"&gt;
function RunTest(){
alert('Test Successfull');
}
&lt;/script&gt;
&lt;body&gt;
&lt;input name="NYS_Tax" type="checkbox" id="NYS_Tax" onClick="RunTest()" value="Add_8_25_NYS_Tax"&gt;
8.25% NYS Tax Included
&lt;input name="International" type="radio" onClick="RunTest()" value="International_EMS"&gt;
Copy linkTweet thisAlerts:
@JustGoFlyauthorApr 17.2007 — Right you are ! Seems it is calling the function - so the problem may be in the function.

Do you see any FireFox violations in this - inside the form:

if (form_elements["NYS_Tax"].status==true)
{
Tax=Math.round(Total*8.25) /100;

InvoiceForm.Invoice.value+=" "+FormatAsDollars(Tax)+" NYS Taxn"
Total *= 1.0825;
}


and is there a FireFox debugger like IE has in MSE7.exe ?

thanks much !

Vinnie
Copy linkTweet thisAlerts:
@TinypantsApr 17.2007 — <i>
</i>if (form_elements["NYS_Tax"].status==true)


That doesnt look right. I dont have time to check it at the moment though.

Firefox does have a debugger. Tools > Error Console.
×

Success!

Help @JustGoFly 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...