toFixed on a Mac

wxdqz

New Member
Hello,

If anyone can help I would appreciate this....as its a real hair pulling out experience!!!!

I'm having trouble getting this to work on a mac (latest version of IE on OS9):

function calc()
{
if ((document.performance.turnover_last_year.value <= 0) || (document.performance.total_spend.value <= 0))
document.performance.share.value = "0.00%";
else
$shared = (document.performance.turnover_last_year.value / document.performance.total_spend.value) * 100;
document.performance.share.value = $shared.toFixed(2) + "%";
}

but it works on IE6 on a PC!!!!!!

Once again if anyone can help I would appreciate it!!

Thanks

Steve
 
Back
Top