Microsoft JScript runtime error: ‘undefined’ is null or not an object

Asked By 0 points N/A Posted on -
qa-featured

"Microsoft JScript runtime error: 'undefined' is null or not an object"

I just wondering if what does this error message mean. I been doing some codings in JScript and I have encounter this kind of error. I'm new to JScript so I don't have any idea how to debug this kind of error. Please tell me something about this error and what are the possible cause how this error occur.
 

SHARE
Best Answer by Anne Pitt
Best Answer
Best Answer
Answered By 0 points N/A #86914

Microsoft JScript runtime error: ‘undefined’ is null or not an object

qa-featured

Greetings,

This error occurs when the variable or object is not defined or it contains null.

You need to first check on which line it is showing the error. Then go to the html code and check that line that which element shows this error. Then come to the Jscript coding and then check what is set for that element.

If you are using panels and making one visible and other invisible then please make sure that you are not using the variables of the invisible panel. This causes the error as the variables return null.

This error occurs because of many things depends on the program.

Anne.

 

 

Answered By 0 points N/A #196060

Microsoft JScript runtime error: ‘undefined’ is null or not an object

qa-featured

Hello,

This error generally occurs when you try to use an object which is null. To avoid these kinds of errors, I suggest it’s better to check the object for null ability.

Also you can try catch block surrounding the critical functionality which would prevent these kind of errors.

I hope the information helps. However the exact solution can only be provided after having a look at the code where the error is occurring.

 

Related Questions