Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery script in master page not working in Internet Explorer
    primarykey
    data
    text
    <p>I have this script in Master page (it shows a panel on hover of menu element)</p> <pre><code>&lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $('#&lt;%= menu1_lbl.ClientID %&gt;').hover(function() { $('#&lt;%= sub_menu1_lbl.ClientID %&gt;').slideDown(200); }, function() { $('#&lt;%= sub_menu1_lbl.ClientID %&gt;').hide(); }); $('#&lt;%= sub_menu1_lbl.ClientID %&gt;').hover(function() { $('#&lt;%= sub_menu1_lbl.ClientID %&gt;').show(); $('#&lt;%= menu1_lbl.ClientID %&gt;').addClass("menuhover"); }, function() { $('#&lt;%= sub_menu1_lbl.ClientID %&gt;').hide(); $('#&lt;%= menu1_lbl.ClientID %&gt;').removeClass("menuhover"); }); }); &lt;/script&gt; </code></pre> <p>it works fine on Chrome &amp; Firefox but it doesnt work in IE. Any ideas on what should I do to make it work?</p> <p>thanks in advance.</p> <p>UPDATE: Here is the full client-side generated code:</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;Smart Finance &lt;/title&gt; &lt;style type="text/css"&gt; &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;form name="aspnetForm" method="post" action="ie_not_compatible.aspx" id="aspnetForm"&gt; &lt;div&gt; &lt;input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /&gt; &lt;input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /&gt; &lt;input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTY1NDU2MTA1Mg9kFgJmD2QWBAIBD2QWAgIBDxUHFi9GaW5hbmNhL2ltYWdlcy9iZy5wbmcZL0ZpbmFuY2EvaW1hZ2VzL2ltZzAzLmpwZxYvRmluYW5jYS9pbWFnZXMvYmcucG5nGS9GaW5hbmNhL2ltYWdlcy9pbWcwMi5qcGcZL0ZpbmFuY2EvaW1hZ2VzL2ltZzAyLmpwZxkvRmluYW5jYS9pbWFnZXMvaW1nMDIuanBnGS9GaW5hbmNhL2ltYWdlcy9pbWcwMi5qcGdkAgMPZBYCAgkPZBYCAgEPDxYCHgRUZXh0BQVlbmRyaWRkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYDBRhjdGwwMCRMb2dpblN0YXR1czEkY3RsMDEFGGN0bDAwJExvZ2luU3RhdHVzMSRjdGwwMwUMY3RsMDAkY29uZmlnwdDc6GaGSg1K9roW+pf9g9bwZ08=" /&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; //&lt;![CDATA[ var theForm = document.forms['aspnetForm']; if (!theForm) { theForm = document.aspnetForm; } function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } //]]&gt; &lt;/script&gt; &lt;div&gt; &lt;input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWAwKDjNy/AwLh8tHdBgL0/brqCByGAqyFdaUy3EVtuUCi/i44T7vY" /&gt; &lt;/div&gt; &lt;div id="menu" style="top: 12px; width: 1250px; position: relative; float: left;"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="Home.aspx" id="ctl00_Homelbl"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li id="faturatli"&gt;&lt;a href="Default.aspx" id="ctl00_menu1_lbl"&gt;Default&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="ctl00_sub_menu1_lbl" style="display: none; top: 137px; padding: 15px 15px 15px 15px; box-shadow: 0px 5px 15px rgba(0, 0, 0, .5); z-index: 99999; left: 155px; position: absolute; float: left; width: 300px; background: #FFFFFF;"&gt; Submenu panel &lt;/div&gt; &lt;div id="logoutcontainer" style="top: 113px; right: 50px; position: absolute;"&gt; &lt;div id="ctl00_Panel1" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'ctl00_config')"&gt; &lt;span id="ctl00_userloggedin" style="color: #ADC9C9; font-size: small; font-weight: 700;"&gt; endri&lt;/span&gt; &amp;nbsp;&lt;a id="ctl00_LoginStatus1" href="javascript:__doPostBack('ctl00$LoginStatus1$ctl00','')" style="color: #CCFFFF; font-size: small; font-weight: 700;"&gt;Logout&lt;/a&gt; &lt;input type="image" name="ctl00$config" id="ctl00_config" src="images/config.png" style="height: 20px; border-width: 0px;" /&gt; &lt;/div&gt; &lt;/div&gt; &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.js"&gt;&lt;/script&gt; &lt;script defer="defer" type="text/javascript"&gt; $(document).ready(function () { "use strict"; $('#ctl00_menu1_lbl').hover(function () { $('#ctl00_sub_menu1_lbl').slideDown(200); }, function () { $('#ctl00_sub_menu1_lbl').hide(); }); $('#ctl00_sub_menu1_lbl').hover(function () { $('#ctl00_sub_menu1_lbl').show(); $('#ctl00_menu1_lbl').addClass("menuhover"); }, function () { $('#ctl00_sub_menu1_lbl').hide(); $('#ctl00_menu1_lbl').removeClass("menuhover"); }); }); &lt;/script&gt; ​ &lt;div id="ContentDiv" style="float: left; position: relative; margin: 50px 50px 50px 50px; text-align: left; top: 21px; left: 0px;"&gt; &lt;span class="style3"&gt;Not working on internet explorer.&lt;/span&gt; &lt;/div&gt; &lt;script src="/finance/WebResource.axd?d=lLeg7eZU8UNEVWRCMptUog2&amp;amp;t=633750586290014532" type="text/javascript"&gt;&lt;/script&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload