Posted:
Fri Dec 08, 2006 7:49 am
by didiergm
I needed to add a call to initwindows
var div = document.getElementById('dhtml_goodies_id1');
initWindows(false,div);
and add this in the onload event of the body of the main window
document.body.onmouseup = stopMove;
document.body.onmousemove = moveWindow;
document.body.ondragstart = cancelEvent;
document.body.onselectstart = cancelEvent;
putting initWindows in the same event did not seem to work.
Even though initWindows is called in the onload event of the window at the end of the .js script, for some reason which I'll investigate at a later stage I had to call initWindows manually, at the end of the html (ie with an inline javascript, not in the onload event) Not too sure why yet, but at least this works fine for now
Didier