Help on Tabs height animation with ajax loaded content ?

Help on Tabs height animation with ajax loaded content ?

Hello jquery users,

I need a method for animate the height of a Tabs (or more likely its panel) according with the loaded ajax content (the new panel height).

There are two big problems that i don't know how to resolve:

the first problem is need to start it in parallel with the show/hide main animation (that slide the panel), more precisely after the hide animation of oldPanel ends and before the show of the newPanel animation;

second i need to know in advance the height of the ajax loaded new panel (or delaying the start of the main animation after content is loaded).

How can i resolve this two problems?

thanks all in advance for your help.