Ai have a modal window. In modal window is attach a form and a toolbar.
On click on one button i show a popup attached to the form. The popup is showed but when the event function is over the popup is hide. what can i do to keep the popup showed ?
modal_win=dhxWins.createWindow("modal", 0, 0, 580, 380);
modal_win.center();
modal_win.setModal(true);
modal_win.setIcon('modify_s.png');
t=modal_win.too=modal_win.attachToolbar();
t.setIconSize(24);
t.setIconPath('icons/')
t.addButton('save',1,"Salveaza",'clean.png');
t.addButton('cancel',1,"Renunta",'delete2.png');
t.setAlign('right');
t.attachEvent('onClick',function(id){
if (id=='cancel') modal_win.close();
if (id=='save') {
modal_win.pop1.show('produs_existent');
debugger;
};
})
win_move_down_toolbar(modal_win)
f=modal_win.form=modal_win.attachForm();
f.loadStruct('php/load.php?op=new_com&santier='+id_santier+'&e='+nd(), "json");
f.attachEvent("onChange", function (id, value){
if (id=='produs_existent')
f.setItemValue("um_exist",value.split('::')[1]);
});
p=modal_win.pop1 = new dhtmlXPopup({
form: modal_win.form,
id: ["produs_existent"]
});
p.attachHTML("Selectati un produs!!");