Click to See Complete Forum and Search --> : Damn IE.. need help for JavaScript


OliverW
10-18-2001, 05:54 AM
Hey guys, maybe you can help me out... I build a little page which should do some calculationsk, and it's working fine in Netscape/Mozilla/Opera, but it won't work in IE (grrrrr).

Can you please take a look at: www.xs4all.nl/~olli/cost.htm (http://www.xs4all.nl/~olli/cost.htm)

If you change the values under Existing and press the button Recalculate it should update the values in some other fields. As I said it works fine in Netscape/Mozilla/Opera but it won't do a thing in IE.. how do I get it working there?

frustratedlinuxnewbie
10-18-2001, 07:05 PM
It had been a looong long time since I did javascript so I have no idea why IE is freaking out. I experimented with your code though, and I was able to make it work in my IE 6.0. Basically what I did is make two recalc functions. Click on this link and you'll see: geocities.com/int_21h/file/cost (http://geocities.com/int_21h/file/cost.html). Don't worry, I'll delete my copy of your code from my site as soon as you'd seen what I did (unless you allow me to keep it as a javascript example). The revision works, but I have no idea why it have to be like that. It's ugly. There got to be a better way, right?

frustratedlinuxnewbie
10-19-2001, 01:38 PM
Dude, forget my solution! Just change your function name. I don't know why IE is not happy with the name recalc(). Doesn't seem to be a reserved word to me. Is it?