有人给我解决这个错误SCRIPT16385:没有实现 [英] Anybody give me solution for this error SCRIPT16385: not implemented

查看:593
本文介绍了有人给我解决这个错误SCRIPT16385:没有实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在IE7中运行我的应用程序时IE8兼容性我得到SCRIPT16385:未在下面的特定行中实现





//必须在此处设置此项,因为IDE会在此时将其删除自动格式化

when i am running my application in IE7 & IE8 Compatibility i am getting SCRIPT16385: Not implemented for below particular lines


//Have to set this here because IDE keeps removing it when auto formatting

document.getElementsByTagName("*").imgExpandTR.style.setExpression("display", "document.getElementsByTagName('*').ckIsTRExpanded.checked==true ? 'NONE' : ''", "jscript");
         document.getElementsByTagName("*").imgCollapseTR.style.setExpression("display", "document.getElementsByTagName('*').ckIsTRExpanded.checked==false ? 'NONE' : ''", "jscript");
         document.getElementsByTagName("*").rowTR.style.setExpression("display", "document.getElementsByTagName('*').ckIsTRExpanded.checked==false ? 'NONE' : ''", "jscript");





任何机构都会给我这个问题的建议。



谢谢。



我尝试过:



转换我的应用程序进入HTML5



any body give me suggestions for this problem.

Thank you.

What I have tried:

Converting my Application into HTML5

推荐答案

我担心你的问题与html5是2014年和IE7是2006的事实有关。
I fear your problem is linked to the fact that html5 is 2014 and IE7 is 2006.


根据此博客文章 [ ^ ],支持 setExpression 方法在IE8中被删除。



在IE7模式或Quirks模式下工作,但不能保证IE的更高版本并未在所有模式下静默禁用。



对于某些属性,您可以使用符合标准的 calc()语法 [ ^ ]。但这不适用于IE9模式以下的任何内容。



根据您的标记,您可以使用 :checked 伪类 [ ^ ]切换元素。但同样,这不适用于IE9以下的任何内容。

使用:checked pseudo class创建切换功能。 | Clearleft [ ^ ]

< a href =https://codepen.io/morganfeeney/pen/KiBty>使用CSS切换Div点击可见性复选框:选中 [ ^ ]



如果你真的需要支持这些古老的浏览器,那么你的唯一选择是放弃过时的表达式语法,并使用Javascript。
According to this blog post[^], support for the setExpression method was dropped in IE8.

It should work in IE7 mode or Quirks mode, but there's no guarantee that it hasn't been silently disabled in all modes by a later version of IE.

For some properties, you can use the standards-compliant calc() syntax[^]. But that won't work in anything below IE9 mode.

Depending on your markup, you might be able to use the :checked pseudo class[^] to toggle the elements. But again, that won't work in anything below IE9.
Creating a toggle feature using :checked pseudo class. | Clearleft[^]
Toggle Div visibility on click using CSS checkbox:checked[^]

If you really need to support such ancient browsers, then your only choice is to abandon the obsolete "expression" syntax, and use Javascript.


这篇关于有人给我解决这个错误SCRIPT16385:没有实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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