Peng Zhang on January 25th, 2013

I have always stayed away from PNG for a long time, up until recently when I feel that I don’t need to support IE6 and have to use it to implement a web design that uses quite some shadows and gradients. I had always thought that PNG with transparency would cause lots of trouble with [...]

Continue reading about PNG, transparency, opacity and IE

Peng Zhang on January 13th, 2013

While window.back() works just fine, it does not work in Internet Explorer 9 that I have, because the method is not there in the window object. To go back in history in both Firefox and IE, the code is history.back().

Continue reading about Windows.back() causes method not found

Peng Zhang on December 14th, 2011

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

Peng Zhang on October 18th, 2011

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

Peng Zhang on July 13th, 2011

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 [...]

Continue reading about setInterval and Firefox

Peng Zhang on March 22nd, 2011

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 [...]

Continue reading about IE7′s Clear Both Issue