[jQuery] resize iframe to fit contents

[jQuery] resize iframe to fit contents


hi,
i have an iframe on page to hold record editing form - the form
presented in the frame needs to be different sizes depending on the
form size
i want the page called to resize the frame but, i can't figure out how
to refer to it from the page loaded in the iframe
parent().$("#myiframe").height( $("#formcontentwrapper").height() ) ;
any help appreciated