Wednesday 3 December 2008

IE (6) Death March

From http://iedeathmarch.org/:
Internet Explorer 6 will be SEVEN years old on August 27th. It came out a few weeks before the Twin Towers fell. It came out before the Nintendo GameCube. It came out before the first iPod.

It’s time to put a deadline on dropping IE6, and I say that time is now, and the deadline should be soon… say like, March 2009.


It is a proposal from http://iedeathmarch.org/ and ... I'm in ;) : My web site does not really support IE6....

If you think IE sucks, join the IE Death March Project...

Tuesday 22 April 2008

A css selector point

Some browsers (especially IE) do not support all CSS selector. Here is a very good point on Browser css selector compatibility : http://www.quirksmode.org/css/contents.html

Tuesday 29 January 2008

Internet Explorer and the Expanding Box Problem

I've just read this really good article about IE expanding box problem and want to share it :

From Article: It's an unfortunate fact that Internet Explorer will always incorrectly expand any dimensionally restricted block element so that oversize content is unable to overflow, as the specs require that content to do. I will be comparing IE/win's way with the correct behavior as seen in Firefox. The W3C says a rigidly sized block box should allow oversize content to protrude or overflow beyond the edges of the sized box.

There is no real "fix" for IE/win's incorrect behavior, except to work around or avoid it. Several possible workarounds will be detailed as I discuss the issue.


read more...

Saturday 26 January 2008

A good tip to fix some IE Bugs

ie7-js
IE7 is a Google code JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6.

Tuesday 22 January 2008

style.float vs style.cssFloat vs style.styleFloat

float is a reserved keyword in javascript so, if you want to set the float css attribute with javascript you need to use :
node.style.cssFloat = "left";    //instead of  node.style.float
pretty good but our dear IE is not agree with that, with you should do :
node.style.styleFloat = "left";    //specific for our dear friend IE

Thursday 15 November 2007

Option in select can not be disabled with IE

Yet another lack of IE :( .
But there is a solution : http://www.lattimore.id.au/2005/07/01/select-option-disabled-and-the-javascript-solution/

or if you prefer htc files you can see : http://apptaro.seesaa.net/article/21140090.html

Thursday 2 August 2007

IE6 and IE7 do not fully support CSS2!

If you want to make cross-browser applications, you need to know that : IE7 as IE6 does not support css2. Actually some css2 attributes are supported but just a very little set.
To avoid any anoyance, just read css2 specification and do not use CSS2 properties (such as inherit).

How to pass argument to a method called in setTimeout or on a event binding

Imagine you want (with javascript of course) giving an argument to a timeout method(it is the same for event connector)
ie
function aFunction(aVariable){
  window.setTimeout(myFunction(){alert(aVariable)}, 500);
}


This will not work because the function executed on timeOut can not have access to aVariable. So there are to way to deal with that
first : You can use an eval BUT this will throw some exception in our dear IE :
function aFunction(aVariable){
   window.setTimeout(eval("myFunction(){alert('" + aVariable + "')}", 500);
}
Second, the better You can use a function returning a function :
function aFunction(aVariable){
   window.setTimeout(getOnTimeOut(aVariable), 500);
}
 
function getOnTimeOut(aVariable){
   return function(){   // no  params
      alert(aVariable);
   }
}

Tuesday 24 April 2007

Get scroll position with all browser (included IE)

var scrollTop = window.pageYOffset || document.documentElement.scrollTop || 0; var scrollLeft = window.pageXOffset || document.documentElement.scrollLeft || 0;