I'm a little concerned by the line: $ ('#produtos_links').fadeIn(resize);
Does that work? The Events documentation (http://docs.jquery.com/Effects/ fadeIn#speedcallback) says the signature of the function is: fadeIn( speed, [callback] ) Which would imply to me that the speed is a mandatory argument. Without a speed, the function should evaluate (i.e., call) the "resize" function to try to get a numerical value, and would *then* fadeIn. Try this instead: $('#produtos_links').fadeIn("def", resize); // default speed On Sep 24, 5:05 pm, Alex Weber <[EMAIL PROTECTED]> wrote: > sorry i just took a look at the code and its a fadeIn() not a show() > but really it doesn't change anything.. here's the code: > > $('#produtos_contato').css('width','350px'); > $('#produtos_links').fadeIn(resize); > > where resize() is a function that stretches the left menu panel as far > down or up as the content goes (completely unrelated to the divs in > the js) > > in firefox, opera, etc it works ok but in IE "#produtos_contato" > doesn't seem to resize in time because its supposed to fit in > alongside the div that fades in but instead sits under it... > > On Sep 24, 5:48 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > > > There is no way a css() and show() could happen in the wrong order, as > > the second one only executes after the first one returns the object. > > Is it an animated resize? > > > On Sep 24, 3:59 pm, Alex Weber <[EMAIL PROTECTED]> wrote: > > > > yeah bud thats a given i just wanted to confirm that there wasn't a > > > callback and why not. > > > > thanks for all the replies! > > > > ajpiano wrote: > > > > that sounds like an issue that needs debugging, not a (superfluous) > > > > change to the library core... > > > > > On Sep 24, 1:06 pm, Alex Weber <[EMAIL PROTECTED]> wrote: > > > > > i realize that... i just needed this in a rare case where jquery is > > > > > showing an element before resizing it, even though the resize > > > > > statement (css) is before the show()... > > > > > > On Sep 23, 9:05 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > > > > > > > Yeah, it's just like doing > > > > > > > $('color','red'); alert('color changed'); > > > > > > > On Sep 23, 5:15 pm, MorningZ <[EMAIL PROTECTED]> wrote: > > > > > > > > Callbacks are used to know when asynchronous events are > > > > > > > complete... > > > > > > > setting the css or class doesn't happen asynchronously