Click here to Skip to main content
15,887,776 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
In my project i used some Javascripts for flash and some other application.
When i run my project the following error was occurred.
|Microsoft JScript runtime error: 'undefined' is null or not an object|

After that The flash did not work.
Posted
Updated 2-Nov-12 0:12am
v2
Comments
Nelek 2-Nov-12 6:01am    
I would say it is a problem with the definition of an element in your code, but with the information you have given we can't do anything.

You should read:
what have you tried?[^]
How to ask a question?[^]

Your question is very vague and missing detail information. But you might just be missing an = when checking undefined. Otherwise, add more info and the actual code where the error occurs.

http://www.w3schools.com/jsref/jsref_undefined.asp[^]

Good luck!
 
Share this answer
 
Generic answer would be "this error can occur if you are trying to use an object which is null."

In general, when you are using an object, its a better practice to check object for nullability to avoid such surprises.
Also a try-catch block surrounding any critical functionality would also stop ugly errors showing up on browser. For more details check www.w3schools.com/js/js_errors.asp[^]

Please provide code snippet where this error is occuring then we might be able to give you pin-point answer.

Hope that helps
Milind
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900