Closed Bug 332392 Opened 19 years ago Closed 19 years ago

Works in I.E., does not process the maths

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: jplevene, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 This was a simple Java Script page I wrote which takes gets a result by passing it through a simple equation. No result due to a Jaa Script error. It works ok in Internet Explorer (unfortuanately!!!). It also does not work in Netscape. The Java Script is very basic and simple, I have tried doing a few alterations, but can't trace the problem directly. Reproducible: Always Steps to Reproduce: 1.Just click on the calculate button 2. 3. Actual Results: Nothing Expected Results: it should display a result in the lower text box
Assignee: nobody → general
Component: JavaScript Console → DOM: Level 0
Product: Firefox → Core
QA Contact: javascript.console → ian
Version: unspecified → Trunk
No, that won't work. The minimum change that would make it work would be to change the name="whatever" to id="whatever" on the inputs, which will make it work thanks to something called the "Global Scope Polluter," a name that should tell you that it's not a good thing to be depending on. Far better would be to read some basic guides to HTML and JavaScript that talk about more modern, cross-browser ways of accessing elements.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.