null或不是IE中的对象错误在Firefox中完美运行 [英] null or not an object error in IE works perfectly in Firefox

查看:67
本文介绍了null或不是IE中的对象错误在Firefox中完美运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

展开 | 选择 | Wrap | 行号

解决方案

找到了解决方案。基本上Internet Explorer很糟糕,不喜欢setAttribute属性,所以不得不通过直接更改对象的attrbute来改变onchange处理程序。

object.onchange = function(){}


如果有人有这样的问题我希望解决方案有帮助


Moj





您是否可以粘贴新代码。我有完全相同的问题,我只是不知道如何应用你所写的内容:object.onchange = function(){}。


谢谢

严峻



找到了解决方案。基本上Internet Explorer很糟糕,不喜欢setAttribute属性,所以不得不通过直接更改对象的attrbute来改变onchange处理程序。

object.onchange = function(){}


如果有人有这样的问题我希望解决方案有用


Moj


< blockquote>


您好,


您是否可以粘贴新代码。我有完全相同的问题,我只是不知道如何应用你所写的内容:object.onchange = function(){}。


谢谢

grim



欢迎来到TSDN!


我假设他的意思是第26行将改为:

展开 | 选择 | Wrap | 行号


Expand|Select|Wrap|Line Numbers

解决方案

found a solution. basically Internet Explorer is crappy and doesnt like the setAttribute property so had to change the onchange handler by directly changing the attrbute for the object like so.
object.onchange = function() {}

Incase anyone has a problem like this i hope the solution helps

Moj


Hi,

Would you be able to paste in your new code. I''m having the exact same problem, I just don''t know how to apply what you wrote: object.onchange=function(){}.

Thanks
grim



found a solution. basically Internet Explorer is crappy and doesnt like the setAttribute property so had to change the onchange handler by directly changing the attrbute for the object like so.
object.onchange = function() {}

Incase anyone has a problem like this i hope the solution helps

Moj


Hi,

Would you be able to paste in your new code. I''m having the exact same problem, I just don''t know how to apply what you wrote: object.onchange=function(){}.

Thanks
grim

Welcome to TSDN!

I am assuming he meant line 26 which would be changed to:

Expand|Select|Wrap|Line Numbers


这篇关于null或不是IE中的对象错误在Firefox中完美运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆