Results 1 to 4 of 4

Thread: Elements is null or not an object

  1. #1
    Join Date
    Aug 2009
    Posts
    57

    Elements is null or not an object

    I have developed a website in JavaScript and it was working properly till last Wednesday. But since then I am unable to get it working. I am getting the error message as "Elements is null or not an object". Can anyone tell me what is wrong with my JavaScript?

  2. #2
    Join Date
    Nov 2008
    Posts
    1,192

    Re: Elements is null or not an object

    You are trying to use some element in your form which is not supported. Make sure you have used proper elements for each tag and make proper changes if it isn't. Other than that it is impossible for me assume anything without your code. It would be better if you can post back with your code which results you this error message.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Elements is null or not an object

    When are you getting the error message: when the user enters some data or when you are loading the form? Didn't you have properly coded to handle such kind of events? If it is present then try revise your code especially your event handler if it improperly coded. If user enters improper entry then give him proper error message rather than allowing the compiler to display handle the situation.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: Elements is null or not an object

    This kind of messages appear if you have a variable or an object that is either undeclared or it is used at improper location. I mean if a variable is declared inside a block and if it called outside that block then you may get such kind of error messages. Also if you are having an expression where the variable used doesn't have any value assigned.

Similar Threads

  1. Replies: 6
    Last Post: 06-06-2011, 01:34 AM
  2. this.style is null or not an object
    By D_chapple in forum Software Development
    Replies: 3
    Last Post: 03-12-2009, 09:23 PM
  3. Error - null or not an object
    By Solaris in forum Software Development
    Replies: 3
    Last Post: 26-11-2009, 02:35 PM
  4. window.external' is null or not an object
    By Kelewyn in forum Technology & Internet
    Replies: 3
    Last Post: 19-08-2009, 07:58 PM
  5. Photoshop Elements and Premiere Elements go to version 7.0
    By Killen in forum Customize Desktop
    Replies: 2
    Last Post: 29-08-2008, 01:17 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,450,468.26412 seconds with 17 queries