The Problem On a Sharepoint page, I am using jQuery to render a link using attr(‘onclick’,’somejavascriptcodehere’), and that link works in Firefox but not in IE. The Solution Use $(‘a#theid’).click() instead of $(‘a#theid’).attr(‘onclick’,’javascript:somejavascriptcodehere’). The Possible Cause IE can handle other tag attributes added or updated by jQuery, but just could not immediately add an event [...]
Continue reading about onclick not working in IE but works in Firefox
I found that $(‘img[src="/images/folder.gif"]‘) works fine in Firefox, but not work in IE. And the workaround is to use this $(‘img[src*="folder.gif"]‘), which will work both in FF and IE.
Continue reading about jQuery Selector with Attribute Filtering Does not Work in IE
Based on this article on setInterval’s syntax, setInterval should take either a reference to a function or a javascript code that will be evaluated – basically a string. For some reason, Firefox does not like the “string” version of the setInterval statement. Based on my testing, IE works with both the direct reference or code [...]
IE 7 does not honor the clear:both sytle rule. So the container div’s height does not include the entire height of some divs that are floated left or right inside it. As this seems to be a big common problems, there are too many people offer solutions, which I find are too complicated and somehow [...]
After setting up various tests, googling, tinkering with bits of html and css, I was able to nail down the cause of this nasty nagging alert – “This page contains secure and nonsecure items” in Internet Explorer (IE). I was suspecting that any “http://” references anywhere in the html page, referenced javascript and css files [...]
If somewhere in the html there is a html comment like below, clicking any of the links would not trigger any action. <!– saved from url=(0191)http://eknowledgesuite.fourseasons.com/learn6.asp?sessionid=3-EAFE72FE-C61F-4A2D-89C9-1D5E0E2DDC5F&command=showpage&courseid=201&chapter=3&page=14&version=0&rootclass=&c=&statusid=91365&mode= –>
Continue reading about Internet Explorer (IE) Does not Respond to Link Clicks
