| | |
Javascript not working in Firefox
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2007
Posts: 2
Reputation:
Solved Threads: 0
I'm having a bit of a problem getting my javascript to run in Firefox (version 2.0). It works fine in IE6.
Here's the HTML:
And the script:
When this function executes, I get the following error on the Error Console:
Error: blackeyedsusan is not defined
Any ideas?
Here's the HTML:
HTML Syntax (Toggle Plain Text)
<td> Black Eyed Susan </td> <td align="center"> <input type="text" name="blackeyedsusan" value="" size="3" maxlength="3" onChange="javascript:calculatecharges();"/> </td>
And the script:
JavaScript Syntax (Toggle Plain Text)
function calculatecharges() { var totalPackets = Number(blackeyedsusan.value) + ... various other things... ;
When this function executes, I get the following error on the Error Console:
Error: blackeyedsusan is not defined
Any ideas?
I think you need to reference the form name as well so it would be something like this:
Number(document.formName.blackeyedsusan.value) ...
Number(document.formName.blackeyedsusan.value) ...
![]() |
Similar Threads
- javascript in mozilla firefox (JavaScript / DHTML / AJAX)
- Javascript not working in Firefox (JavaScript / DHTML / AJAX)
- Javascript links not working (Web Browsers)
- Why javascript does not work on firefox? (JavaScript / DHTML / AJAX)
- Help re scrolling bar not working in firefox, CSS problem (HTML and CSS)
- AJAX not working on firefox (JavaScript / DHTML / AJAX)
- javascript works in IE but not working in firefox (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: foarm input output functions
- Next Thread: Manual Up & Down controlled content
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate array automatically beta box browser bug calendar captchaformproblem cart close codes column css cursor date debugger decimal dependent design disablefirebug dom download dropdown element embed engine enter error events ext file firefox focus form frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 iframe index java javascript javascripthelp2020 jawascriptruntimeerror jquery jsp libcurl listbox maps masterpage media menu microsoft mimic mp4 onmouseoutdivproblem onmouseover paypal pdf php player position post problem programming progressbar prototype redirect regex safari scale scriptlets scroll search security select software sql text textarea unicode w3c website window windowofwords windowsxp





