Have you tried this:
$('#uimage').fadeIn('slow', function(){ resize(); });
Are you sure there is no CSS for that id specifying a fixed width?
pritaeas
Posting Prodigy
9,316 posts since Jul 2006
Reputation Points: 1,178
Solved Threads: 1,467
Skill Endorsements: 86
You would want the following:
$('#uimage').fadeIn('slow', resize);
Adding the () at the end executes the function. So instead of fadeIn executing the function when it is done doing it's thing, you have it executing and returning undefined as the function to get executed (as resize returns undefined).
stbuchok
Practically a Posting Shark
876 posts since May 2011
Reputation Points: 138
Solved Threads: 124
Skill Endorsements: 2