Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
Sign in to follow this  

need some help with javascript

6 posts in this topic

Recommended Posts

<script language="javascript">
function calculate(){
if (document.form.diecuttingcheck.checked)
	{var diecuttingmultiple=1}
	{var diecuttingmultiple=0}
var total=(diecutting * diecuttingmultiple); 
<form name="form">
<input type="checkbox" name="diecuttingcheck" onClick="calculate();">


for some reason, in firefox, it hangs when its outputting the total. there must be something wrong i'm doing... though, not sure what it is =\ anyone see anything wrong?


i'm kind of new to javascript. i hardly used it before. i have more experience with php than javascript U_U;;

Share this post

Link to post
Share on other sites

=\ works in safari, opera, IE, but still seems to attempt to load something after executing the script in firefox (stops halfway).. both mac and windows.


so... that why i thought somethigns wrong. you were using firefox kday?

Share this post

Link to post
Share on other sites

Not sure why. Works in both Win/Mac firefox here. Copied and pasted the code into a blank html document.


Maybe try clearing your cache?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.