dear all,
i have create a window using dhxwindow, it works fine with IE 6 >, but when running on firefox or opera, the window can only drag left and right, not up or down
here is my head tag for loading script
Aplikasi Arsip Manager v 0.1
and here is my code
var dhxLayout = new dhtmlXLayoutObject(document.body, “1C”);
dhxLayout.cells(“a”).hideHeader();
var menu = dhxLayout.attachMenu();
menu.setImagePath(“jslib/imgs/”);
menu.setIconsPath(“jslib/icons/”);
menu.loadXML(“phplib/get_menu_structure.php”);
var tab = dhxLayout.cells(“a”).attachTabbar();
tab.setImagePath(“jslib/imgs/”);
tab.enableTabCloseButton(true);
tab.addTab(“maintab”,“Daftar Surat”,“150px”);
tab.setTabActive(‘maintab’);
var mainbar = tab.cells(‘maintab’).attachToolbar();
mainbar.setIconsPath (‘jslib/icons/’);
mainbar.loadXML(‘phplib/toolbar.xml.php’);
var maingrid = tab.cells(‘maintab’).attachGrid();
maingrid.loadXML(‘phplib/get_archive_list.php’);
maingrid.attachHeader("#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter,#text_filter");
var mproc=new dataProcessor(‘phplib/set_archive_list.php’);
mproc.enableDataNames(true);
mproc.setUpdateMode(“cell”);
mproc.defineAction(“error”,alertError);
mproc.setTransactionMode(“POST”);
mproc.init(maingrid);
function alertError(obj)
{
if(obj)
{
alert(“Terjadi kesalahan pada sisi server.\n”+obj.firstChild.nodeValue);
mproc.stopOnError = true;
return false;
}
else
alert(‘Terjadi kesalahan pada server’);
}
menu.attachEvent
(
‘onclick’,
function(id)
{
switch(id)
{
case ‘1’:
maingrid.clearAndLoad(‘phplib/get_archive_list.php’);
break;
case ‘2’:
var chgwin = new dhtmlXWindows
chgwin.setImagePath(‘jslib/imgs/’);
var cur = (new Date()).valueOf();
var winId=“add_user”+cur;
chgwin.createWindow(winId, 100, 100, 350, 250);
chgwin.window(winId).setText(‘Ganti password’);
chgwin.window(winId).center();
chgwin.window(winId).attachURL(‘phplib/chgpwd.php’);
break;
}
}
)
Hello,
locally the issue doesn’t appear - we have attached the sample.
If the problem isn’t resolved, please, provide the sample to recreate it.
sample.zip (187 KB)