Hi,
i have a parent app which is launched from within the valence portal,
Depending on user actions, this parent app is opening a browser window outside of the portal.. (via window.open)
i keep track of all the openend 'child' windows in an array, and now i want to control those windows when i'm closing the tab from the parent app , or even when closing the portal totally..
i've added some logic in the hook.js in the beforecloseapp trigger, but i have the problem that my array which contains all of the opened child windows is not visible/known
how can i solve this ?
i have a parent app which is launched from within the valence portal,
Depending on user actions, this parent app is opening a browser window outside of the portal.. (via window.open)
Code:
wid = 'w' + data.QUOTENR + data.VERSIE; QU10SET.config.arrWopen[wid] = window.open('vvcall.pgm?app=Comaker - DetailOfferte&pgm=vvinit&sid=' + sessionStorage.sid + '&versie=' + data.VERSIE + '"enr=' + data.QUOTENR, wid, 'width='+wwidth+', height=800, scrollbars=yes,resizable=yes,toolbar=no,menubar=no,top=180,left=30,location=no,statusbar=no'); QU10SET.config.arrWopen[wid].focus();
i've added some logic in the hook.js in the beforecloseapp trigger, but i have the problem that my array which contains all of the opened child windows is not visible/known
how can i solve this ?
PHP Code:
if (app.app === "1068") {
var r=confirm("Other Windows from Comaker are still open!!\nclosing this app will also close the other windows!!");
if (r==false) {return false;}
else {
for (w in QU10SET.config.arrWopen) {
if (!QU10SET.config.arrWopen[w].closed) {
QU10SET.config.arrWopen[w].close();
}
};
return true;
};
};
Comment