Bear with me, total newb here.
I'm trying to make a simple multiplication calculator, as a experimentation with Javascript.
The catch is that -
- No libraries, just pure javascript.
- Javascript must be unobtrusive.
Now, the problem arises, that it doesn't give the value out.
When I do this locally, answer has a value of NaN, and if you hit Submit it stays that way, BUT, if you press the back button, you see the actual result.
In the JSFiddle, much is not shown, except for the fact that it simply doesn't work.
Please tell me, is it even possible to make an unobtrusive calculator? How?
(PS. I was taking a bit of help from sciencebuddies, just to see basic syntax and stuff, but I found it can't be done without code being obtrusive)
xintox.jsfile is not included; also, all you need in thehtmlframe is what's in thebody(not thebodyelement itself); you can add resources through the Resources menu on the left.Xintox.blahblahblah. You need to use a method likedocument.getElementByName.getE()function in my edited fiddle.