Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts

    "document.thisform.num1.checked" is null or not an object

    I have a pretty basic form on my site and I'm trying to calculate the total cost based on the number of tickets needed in several categories. I keep getting this error...

    "document.thisform.num1.checked" is null or not an object

    I know its a simple error but I can't seem to isolate the problem. Any help would be greatly appreciated.

    To view it online its at http://www.webmarkart.com/sccc_theat....asp?action=bo

    or download the code here...
    Attached Files Attached Files
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #2
    New Coder
    Join Date
    Aug 2002
    Location
    Californication
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't know if this is the solution to the problem, or if I'm just bringing attention to another one -- but JavaScript is case-sensitive.

    You're calculating
    Code:
    document.thisform.num1.value
    but your input box is named
    Code:
    <INPUT TYPE="CHECKBOX" NAME="NUM1" VALUE="0.00">
    It's quoted in the Bible, Revelations ... Behold the pale horse. The man who sat on him was death, and Hell followed with him.

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you! that was it!
    -WebMark Art
    Programming is 80% thinking and 20% spelling


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •