Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 2623 | Replies: 2
![]() |
•
•
Join Date: Mar 2007
Posts: 2
Reputation:
Rep Power: 0
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) ...
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)





Linear Mode