Tag: internet explorer

IE\Firefox garbage collection for localhost\external site

I’ve spent the last two days hunting JavaScript memory leaks in my web project and found out the thing that confused me. My site is built using ASP.NET MVC and heavily use JavaScript together with jQuery library and bunch of plugins. On my local machine I refresh the page and can see how memory is […]

Html drop down with different size for list of entries and the selected entry

I am facing some problem with html drop down. I want to keep the size of the drop down fixed, but when the user click on the drop down, the list should displayed in bigger size so that the entries are not truncated.This is the default behaviour in fiefox, this issue appears only in IE. […]

jquery animate removes scroll in div for IE

Right now I’m getting this strange problem where when I use jQuery’s animate() function on a <div> it removes the ability to scroll. I’m adjusting the height with animate(). This problem only comes up with IE and works fine with Chrome and FF. Below is my css class for my div div.fullscroll{ height: 65%; width: […]

does IE not pass url params to a js script?

I have searched here and google for this. Found some other interesting stuff, but nothing specifically relevant. Scenario: —-html page—- … <script src=”/scripts/jsFile.php?v=246″ type=”text/javascript”></script> … —-jsFile.php—- <?php $v=(int)$_GET[‘v’]; if (!$v) { echo “no version”; } ?> All browsers pass the “v” parameter to the script except for IE 8, specifically: Mozilla/4.0 (compatible; MSIE 8.0; Windows […]

IE lies about borderWidth?! How to get actual value?

By default, many of you know, IE has a 2px border around the body tag. IE considers this border as outside of the regular page. Basically, this means that the document origin is actually at [borderLeftWidth, borderTopWidth]. This poses problems when doing calculations in JavaScript that require both clientXY and screenXY. Since there is a […]

IE8 AJAX GET setRequestHeaders not working unless params provided in URL

I’m trying to create an AJAX request in IE8. var xhr = new ActiveXObject( ‘Msxml2.XMLHTTP’ ); xhr.open( ‘GET’, ‘/ajax/’ ); // Required header for Django to detect AJAX request xhr.setRequestHeader( ‘X-Requested-With’, ‘XMLHttpRequest’ ); xhr.onreadystatechange = function() { if ( this.readyState == 4 ) console.log(this.responseText); } xhr.send( null ); This works perfectly fine in Firefox, Chrome, […]

JSF JavaScript problem – “jsf” is undefined

my webapplication works very fine with: Opera, FF, Chrome, Safari. Now i tested it on IE and there are some weird errors. I debugged my website with IE and it said: <a id=”navi:searchButton” href=”#” onclick=”jsf.util.chain(this,event,’activateSearchDiv();return false;’,’mojarra.jsfcljs(document.getElementById(\’navi\’),{\’navi:searchButton\’:\’navi:searchButton\’},\’\’)’);return false”>Search</a> >> “jsf” is not defined ( in jsf.util.chain ). But I do load these scripts: <h:body> <f:view contentType=”text/html”> […]

javascript error in IE cannot see or workout problem

In IE8 on vista I am getting the following JS error, User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E) Timestamp: Thu, 1 Sep 2011 12:18:24 UTC Message: Object doesn’t support this property or method Line: 28 […]

capturing bubbling key event from flash with javascript?

In IE, if flash has focus, and receives a keydown event, it does not appear to bubble the event up through the DOM (I can’t capture the event by listening on document, however the same listener can capture key events from html siblings, so I know my listener is working). However, some other plugins on […]

Bubbling an event triggered by disabled element

The question is: should the disabled element produce an event that will be triggered on its parent(s)? <div id=”test”> <button disabled=”disabled”>Click me</button> </div> <script type=”text/javascript”> document.getElementById(“test”).onclick = function() { alert(“Clicked!”); }; </script> All browsers except IE prevent the event from being fired, but IE doesn’t. Is this behavior documented or standardized? Which of browsers process […]