Better then Iframe?

Hi i am trying to make a website that i build with a table of 2 rows.
in row 1 is going to be a menu and in row 2 is going to be the content.
Lets say i have a button 1 and button 2.
I want the content of these buttons to be loaded in row 2 when clicking 1 of these buttons.
I tryed using a iframe but a iframe cannot resize itselve to a bigger height for the content of button 2 and then change to smaller height when clicking button 1.

Is there a better solution for building a site like this and does someone have a simple script that shows me how its done or maybe a tutorial.
So i dont want it to be scrollable i want the table to resize to the loaded content.

Please help me out

Thanks in advance