Well, opening multiple modal windows by itself is supported by the script. The windows would appear on top of one another, stacked. Just call dhtmlmodal.open() for each instance of a window you wish to open. So in your case, lets say you have the following code to open the very first modal window:
Code:
var agreewin=dhtmlmodal.open("agreebox", "iframe", "agreement.htm", "This Page's Terms of service", "width=590px,height=450px,center=1,resize=1,scrolling=0", "recal")
Now, inside agreement.htm, you wish to show a link that opens another modal window. Such a link on that page would look like:
Code:
<!--This code appears in agreement.htm-->
<script type="text/javascript">
function modal2(){
confirmwin=parent.dhtmlmodal.open("confirmbox", "iframe", "confirm.htm", "Confirmation Window", "width=300px,height=400px,center=1,resize=1,scrolling=0", "recal")
}
</script>
<a href="javascript:modal2()">Open Confirmation Window</a>
Notice the ".parent" code in red- this is required when calling dhtmlmodal.open() on the parent page from the IFRAME page (both pages must be from the same domain). Also, notice the two variables in bold- these must be arbitrary, but unique variable names for each instance of a modal window on your page. In other words, don't use the same variable name when invoking another modal window.
Bookmarks