The first example works, which shows that the recalc function can be called. The second example works, which shows that onchange will trigger an alert box. BUT, the third example doesn't work. Why can't I trigger a call to the recalc function from the onchange event?
The above 3 code postings are the entire programs. Nothing has been left out or modified.
I am using IE 8.0.6001.18702.
I am sure the solution is simple enough, but I'm just not seeing it. Can anyone out there help me?
For the same reason that you don't make functions called alert. recalc seems to be a propitiatory function of IE that does some re-calculation, what exactly I don't know.
The other one you might run into is that all ids are global variables in IE. So don't name a function the same as an id on the page.
Great wit and madness are near allied, and fine a line their bounds divide.
Bookmarks