[jQuery] opacity in msie?

2006-09-05 Thread El Rocco
Hi there guys!

Just wanted to make sure that if I check the opacity css property, IE  
will not return null (it was in some tests I did).

I checked the source and on lines 389 to 393, this is what I see :

389 } else if ( p == opacity  jQuery.browser.msie )
390 return parseFloat( jQuery.curCSS(e,filter).replace(/ 
[^0-9.]/,) ) || 1;
391
392 return jQuery.curCSS( e, p );
393 },

This part makes me think that if I check
$(this).css(opacity);

I should get the right value even if i'm in IE right? If not, what  
does this do? Is it just to SET the right value in IE?

If I use the BUILT-IN fade functions, everything works fine in IE but  
as said in a previous thread (http://www.mail-archive.com/ 
discuss@jquery.com/msg00660.html) things are now queued if I do  
something like this :

$(this).width(37px).fadeTo(fast,0.5);

If I want to use the animate() function to do what I want, as  
specified by John in the aforementioned thread, I'd have to do  
something like this :

$(this).animate({width:37,opacity:.5},fast);

I'll try this when I get in the office tomorrow (I don't have a pc  
with IE here) and will post my results.

Tnx!

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] opacity in msie?

2006-09-05 Thread Will Jessup
El Rocco ,

I think john posted something similar as a bug tonight , there is a 
problem w/ fadeTo in IE in the .css function.

Will
 Hi there guys!

 Just wanted to make sure that if I check the opacity css property, IE  
 will not return null (it was in some tests I did).

 I checked the source and on lines 389 to 393, this is what I see :

 389 } else if ( p == opacity  jQuery.browser.msie )
 390   return parseFloat( jQuery.curCSS(e,filter).replace(/ 
 [^0-9.]/,) ) || 1;
 391
 392   return jQuery.curCSS( e, p );
 393 },

 This part makes me think that if I check
 $(this).css(opacity);

 I should get the right value even if i'm in IE right? If not, what  
 does this do? Is it just to SET the right value in IE?

 If I use the BUILT-IN fade functions, everything works fine in IE but  
 as said in a previous thread (http://www.mail-archive.com/ 
 discuss@jquery.com/msg00660.html) things are now queued if I do  
 something like this :

 $(this).width(37px).fadeTo(fast,0.5);

 If I want to use the animate() function to do what I want, as  
 specified by John in the aforementioned thread, I'd have to do  
 something like this :

 $(this).animate({width:37,opacity:.5},fast);

 I'll try this when I get in the office tomorrow (I don't have a pc  
 with IE here) and will post my results.

 Tnx!

 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/



   


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/