Gulsaes
01-26-2009, 10:39 AM
) Script Title: DHTML WINDOW WIDGET
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem:
i'm trying to use a PHP variable in the Popup window
here is my current script
function CALL_POPUP_SATALLITE($image_url,$file)
{
echo '<script type="text/javascript">
function openmypage_sat(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "sat_pop.php", "Satallites", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window.confirm("Close SYNOP?")} //Run custom code when window is about to be closed
}
</script>
<a href="#" onClick="openmypage_sat(); return false">Image</a>
';
}
Now this function is used several times on one page So im wanting to be able to parse a variables $image_irl and $file through to the popup window so after clicking the link
any ideas ?
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem:
i'm trying to use a PHP variable in the Popup window
here is my current script
function CALL_POPUP_SATALLITE($image_url,$file)
{
echo '<script type="text/javascript">
function openmypage_sat(){ //Define arbitrary function to run desired DHTML Window widget codes
ajaxwin=dhtmlwindow.open("ajaxbox", "ajax", "sat_pop.php", "Satallites", "width=450px,height=300px,left=300px,top=100px,resize=1,scrolling=1")
ajaxwin.onclose=function(){return window.confirm("Close SYNOP?")} //Run custom code when window is about to be closed
}
</script>
<a href="#" onClick="openmypage_sat(); return false">Image</a>
';
}
Now this function is used several times on one page So im wanting to be able to parse a variables $image_irl and $file through to the popup window so after clicking the link
any ideas ?