[Project_owners] Image prefetching

Todd Ross mozdev at brainsick.com
Sat Apr 2 08:36:36 EST 2005


Konstantin Svist wrote:
> Interesting.. I can't find a way to make this command both FF- and IE-
> compatible
> 
> Firefox wants it like this:
> myImg.setAttribute('onload', 'myOnLoadFcn();');
> 
> while IE wants it as:
> myImg.setAttribute('onload', myOnLoadFcn);

/* Both are needed */
// Firefox uses (sets the attribute)
myImg.setAttribute('onload', 'myOnLoadFcn();');
// Firefox ignores, IE uses (because it treats properties as attributes)
myImg.onload = myOnLoadFcn;

I think your larger problem is trying to get XUL to be compatible with 
IE.  We are still talking about developing extensions, right?  :-P

Todd


More information about the Project_owners mailing list