There is no "in the background" with this script. You either create the window and open it, or you create a link that will create the window and open it. For the one you say you want "in the background" follow the template for Window 4 (Content from a DIV on the page) on the demo page:
Code:
<a onclick="divwin=dhtmlwindow.open('divbox', 'div', 'somediv', '#4: DIV Window Title', 'width=450px,height=300px,left=200px,top=150px,resize=1,scrolling=1'); return false" href="#">
<b>Create/ Open Window 4</b>
</a>
Which in your case would be something like:
PHP Code:
<?php
} else {
?>
<a href="#" onclick="contentpanel_win=dhtmlwindow.open('layouttableiframecontent', 'iframe', 'index_new.php', 'Dash Panel', 'top=<?php echo $array_dash[0];?>px,left=<?php echo $array_dash[1];?>px,width=<?php echo $array_dash[2];?>px,height=<?php echo $array_dash[3];?>px,resize=1,scrolling=1,center=0', 'recal'); return false;">Open Window</a>
<?php
}
?>
Bookmarks