What does "Error: 'document.layers.main is null or not an object" indicate?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjugi
    New Member
    • Sep 2007
    • 2

    What does "Error: 'document.layers.main is null or not an object" indicate?

    Hi,
    I am running som web application at some point i have one web page contains
    some buttons,text field etc.when i click on button it gives an error message stating that "error: 'document.layer s.main is null or not an object" what i want is what this error message indicates.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by manjugi
    Hi,
    I am running som web application at some point i have one web page contains
    some buttons,text field etc.when i click on button it gives an error message stating that "error: 'document.layer s.main is null or not an object" what i want is what this error message indicates.
    There's an error in the Javascript that's getting called when that button is clicked.

    Moved to Javascript forum.

    Comment

    • RBPierce
      New Member
      • Sep 2007
      • 7

      #3
      You have a reference to an object ("main") which doesn't exist.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Changed the thread title. Please use a good thread title.

        Comment

        • manjugi
          New Member
          • Sep 2007
          • 2

          #5
          Originally posted by r035198x
          There's an error in the Javascript that's getting called when that button is clicked.

          Moved to Javascript forum.
          Thak you for your kind replay,
          But still that problem is not clear for me because i am new to javascript and JSP
          I give some more information that may help you to understand error more clear.Along with the error it giving some other lines such as
          Line:612
          char:3
          code:0
          url:
          what exactly these lines indicating.
          Thank you

          Comment

          Working...