<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged compatibility-mode</title>
<link>https://overflow.efficy.io/?qa=tag/compatibility-mode</link>
<description>Powered by Question2Answer</description>
<item>
<title>how to use the set onclick with IE mode compatible ?</title>
<link>https://overflow.efficy.io/?qa=777/how-to-use-the-set-onclick-with-ie-mode-compatible</link>
<description>&lt;p&gt;In Efficy 2012++ I try to change the onclick element by an other.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;TD onclick=&quot;RelationButtonClick(this, 'Cont', '17', '1016', false)&quot; onmouseover=&quot;this.className='RelationHeaderActive ContActi'&quot; onmouseout=&quot;this.className='RelationHeader ContActi'&quot; class=&quot;RelationHeader ContActi&quot; vAlign=middle width=20 slick-uniqueid=&quot;406&quot;&amp;gt;&amp;lt;IMG border=0 src=&quot;../efficy/img/cont16.gif&quot; width=16 height=16 slick-uniqueid=&quot;407&quot;&amp;gt;&amp;lt;/TD&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;On the afterloaded function I replace for restricted user the onclick on the relationElement. &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$$('.RelationHeader.ContActi').set(&quot;onclick&quot;, &quot;alert('XXX')&quot;);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In my DOM the click function is well replaced by this :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;TD onclick=&quot;alert('XXX')&quot; onmouseover=&quot;this.className='RelationHeaderActive ContActi'&quot; onmouseout=&quot;this.className='RelationHeader ContActi'&quot; class=&quot;RelationHeader ContActi&quot; vAlign=middle width=20 slick-uniqueid=&quot;406&quot;&amp;gt;&amp;lt;IMG border=0 src=&quot;../efficy/img/cont16.gif&quot; width=16 height=16 slick-uniqueid=&quot;407&quot;&amp;gt;&amp;lt;/TD&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In Chrome, Firefox, Safari, IE 11 without compatibility mode it's working well.&lt;br&gt;
But into IE11 with compatibility mode Nothing append. The onclick event is well changed, all non modified button still working but my new onclick is not recognized.  &lt;/p&gt;

&lt;p&gt;I try patches found on websites like this one compatible IE7 and less,&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$$('.RelationHeader.ContActi').onclick = function () {alert('Event type is ' + window.event.type)}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But no effects.&lt;br&gt;
Do you have any idea how to provide this into IE with compatibility mode activated ?&lt;br&gt;
It's an Efficy 2012 summer ++ version. &lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=777/how-to-use-the-set-onclick-with-ie-mode-compatible</guid>
<pubDate>Fri, 18 Sep 2015 16:44:19 +0000</pubDate>
</item>
</channel>
</rss>