且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

microsoft jscript运行时错误'null'为null或不是对象javascript

更新时间:2023-09-20 21:01:52

使用Chrome尝试找出产生错误的行。如果您希望我们为您修复它,请发布代码。



最可能的问题是你正在使用document.getElementById并且返回null而不是检查。你应该使用jquery而不仅仅是javascript。



另一个猜测是你盲目地复制了链接中的代码并且没有添加它需要工作的属性。

how to embed .swf file in my asp.net page.[^]


i was followed the above link
i got the Error while i open the file in asp.net

"microsoft jscript runtime error 'null' is null or not an object javascript"
can anyone help me..??

thank you,

Use Chrome to try to work out what line is generating the error. Post code if you want us to fix it for you.

The most likely issue is that you're using document.getElementById and getting null back and not checking. You should use jquery instead of just javascript.

Another guess would be that you copied the code in the link blindly and didn't add the properties it needs to work.