If you wish to resize the DHTML window from within the page contained within this window, you can do so by referring back to the main page first, then calling setSize(w, h). For example, lets say on your main page, you've opened up a DHTML modal window:
Code:
<script type="text/javascript">
var mysurvey=dhtmlmodal.open("surveybox", "iframe", "survey.htm", "Fill out this survey", "width=700px,height=450px,resize=1,scrolling=1,center=1", "recal")
</script>
Then inside survey.htm, you wish to create a link that resizes the window it's contained in. You would do something like:
Code:
<a href="#" onClick="parent.mysurvey.setSize(500, 400); return false">Resize Me</a>
In other words, the key is to call "parent" in front of the method you wish to run, when that method is being called from the DHTML window itself.
Bookmarks