thunderai
04-19-2013, 11:23 PM
1) Script Title: DHTML Widget
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/
3) Describe problem:
I want to do:
<?php
if (!isset($_POST["bypassdash"])) {
// Not set display it
$displaydash = 1;
} else {
if($_POST['bypassdash'] == 1) {
// Bypass dash is one. DO not display the dash
$displaydash = 0;
} else {
$displaydash = 1;
}
}
if($displaydash == 1) {
?>
<script type='text/javascript'>
var 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');
</script>
<?php
} else {
?>
<script type='text/javascript'>
var 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');
contentpanel_win.hide()
</script>
<?php
}
?>
In general it loads the DHTML window and wont hide it. How do I get it to hide it? I want it to load, but in the background if the conditions are met.
How can I do that?
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/
3) Describe problem:
I want to do:
<?php
if (!isset($_POST["bypassdash"])) {
// Not set display it
$displaydash = 1;
} else {
if($_POST['bypassdash'] == 1) {
// Bypass dash is one. DO not display the dash
$displaydash = 0;
} else {
$displaydash = 1;
}
}
if($displaydash == 1) {
?>
<script type='text/javascript'>
var 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');
</script>
<?php
} else {
?>
<script type='text/javascript'>
var 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');
contentpanel_win.hide()
</script>
<?php
}
?>
In general it loads the DHTML window and wont hide it. How do I get it to hide it? I want it to load, but in the background if the conditions are met.
How can I do that?