I use Fancybox 2.1.5 for opening popup window with user form. So i use next code:
<script type="text/javascript">
$("a.fancybox").fancybox({
type: 'iframe',
fitToView: false,
autoSize: true,
autoResize: true,
});
</script>
This script opens enroll.php where form is included. Button in this form has code:
<form ... action="enrollsend.php">
<input type="submit" onclick="parent.$.fancybox.update();">
And the problem is that size of both windows (after submitting button next page in fancybox appears) don't change at all. I want fancybox size to be automate, but don't know why it doesn't work.