Hi … return the next error :TypeError: myPop.attachVault is not a function
whats wrong???
var dhxWins= new dhtmlXWindows();
var myVault;
var myVaultConf = null;
//open popup window
var popupWindow = layout.dhxWins.createWindow(“newcontact_win”, 0, 0, 720, 600);
popupWindow.center();
//—grid initialization and configuration —
t = popupWindow.attachToolbar();
t.addButton(“excel”, 1, “Exportar Datos”, “…/…/…/images/excel.jpg”, “…/…/…/images/excel.jpg”);
t.addButton(“subir”, 2, “cargar”, “…/…/…/images/excel.jpg”, “…/…/…/images/excel.jpg”);
t.attachEvent(“onClick”, function(id) {
if (id == ‘excel’)
exportarExcel(vade);
else {
myPop = new dhtmlXPopup({
toolbar:t,
id: “subir”
});
if (myVault == null)
myVault = myPop.attachVault(350, 200, myVaultConf);
}
});
grid = popupWindow.attachGrid();
grid.setSkin("dhx_skyblue");
grid.setImagePath("../../../includes/dhtmlxGrid/codebase/imgs/");
grid.init();
grid.loadXML("articulos_molecula.php?vade="+vade);
}