Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
JavaScript
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");


any body give me suggestions for this problem.

Thank you.

What I have tried:

Converting my Application into HTML5
Posted
Updated 23-Feb-17 16:30pm
v2
Comments
Graeme_Grant 23-Feb-17 0:38am    
Javascript differs from browser to browser in subtle ways. Have you tried it on Chrome or FireFox? It could be an IE specific issue.
Govardhanudu Gajula 23-Feb-17 1:19am    
But my requirement is IE only
Graeme_Grant 23-Feb-17 2:31am    
You missed the point ... this is a debugging step. As I mentioned, "It could be an IE specific issue."
Richard MacCutchan 23-Feb-17 3:55am    
The message is quite clear. You are trying to use a feature that is not implemented in those versions of IE.

I fear your problem is linked to the fact that html5 is 2014 and IE7 is 2006.
 
Share this answer
 
Comments
Richard Deeming 23-Feb-17 16:05pm    
I fear it's the other way round - setExpression is an obsolete, IE-only method that doesn't work in IE8 or later.
About Dynamic Properties[^]
Patrice T 23-Feb-17 16:14pm    
I don't claim it is the only reason.
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.
 
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