Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by bernard on Dec 02, 2009 02:52
open dhtmlx forum
PHP and dhtmlxWindows

Dear Support Team,

I have a php code and i want to call di function using dhtmlxWindows and will pop up on top at my form.php:

function doingOnLoad() {
    dhxWins = new dhtmlXWindows();
    dhxWins.enableAutoViewport(false);
    dhxWins.attachViewportTo("winVP");
    dhxWins.setImagePath("./dhtmlxWindows/codebase/imgs/");
    w1 = dhxWins.createWindow("w1", 0,0, 300, 240);
    w1.setText("Login Form");
    w1.button("close").enable();
    w1.denyResize();
    w1.denyPark();
    w1.center();
    w1.button("minmax1").hide();
    w1.button("park").hide();
w1.attachURL("http://localhost/report.php?id=<?$id?>");

And I want to call it in form.php by

<td class=\"text\"><center><a href="javascript:doingOnLoad()";><img src='images/print.gif' border='0' hight='20' width='20' ></img></a></center> </td>

And it cannot show the pop up.

Please advice me to solve this

thank you for your help

Regard,
bernard
Answer posted by Alex (support) on Dec 02, 2009 04:35

hello,

the provided code snippets are correct. Please, check that all windows libraries are correctly included and doingOnLoad() function is really called