Popups that resize to fit their contents

can some one help me out?

is it possible to go a little further on the popup window tutorial and make it work in autosize?

thx
.am