I have one button, when pressed one new window opens with certain parameters. everything goes fine.
here's the code:
isc.Button.create({
ID: "elBoton",
title: "button",
align: "center",
disabled: true,
autoFit: true,
click: function(){
confForm.validate();
if (confForm.getValidatedValues()){
elBoton.setDisabled(true);
window.open('http://MyWebSite/MyPage.php?parameter=' + confForm.getValue("parameter"),'','scrollbars=no, resizable=no, width=266, height=180, status=no, location=no, toolbar=no, directories=no, menubar=no');
}
}
}
})
I've made one modification to this page, to let the form parameter validates trough a external php page, creating a datasource and then if the response:{status: 0} then I meke the window.open statement.
here comes the problem: everything goes fine, the status returns 0, but in this case, putting the window.open as part of the isc.RestDataSource.create code, the internet explorer fires the popup blocked action. so, new page is not open, instead the frustrating popup blocked message comes alive.
the code is always the same, in the first case with window.open as part of the click button action, goes fine; in the second case with window.open as part or the datasource result the window.open is blocked.
any ideas about how to solve the popup blocked..?
will be really appreciated,
regards,
here's the code:
isc.Button.create({
ID: "elBoton",
title: "button",
align: "center",
disabled: true,
autoFit: true,
click: function(){
confForm.validate();
if (confForm.getValidatedValues()){
elBoton.setDisabled(true);
window.open('http://MyWebSite/MyPage.php?parameter=' + confForm.getValue("parameter"),'','scrollbars=no, resizable=no, width=266, height=180, status=no, location=no, toolbar=no, directories=no, menubar=no');
}
}
}
})
I've made one modification to this page, to let the form parameter validates trough a external php page, creating a datasource and then if the response:{status: 0} then I meke the window.open statement.
here comes the problem: everything goes fine, the status returns 0, but in this case, putting the window.open as part of the isc.RestDataSource.create code, the internet explorer fires the popup blocked action. so, new page is not open, instead the frustrating popup blocked message comes alive.
the code is always the same, in the first case with window.open as part of the click button action, goes fine; in the second case with window.open as part or the datasource result the window.open is blocked.
any ideas about how to solve the popup blocked..?
will be really appreciated,
regards,