Tayana
Aug 21st 2008, 3:42 am
I have an java web application that is launched and ran as a popup window. I also run pdf reports that are being shown on same popup page. what i want is to show the reports on a new window. I'm using window.open which i used for opening the application window but its not opening the new window on IE and firefox. this is how i am doing it currently:
function report_popup(url, name, height, width) {
var top=((screen.height-(screen.height/1.618))-(height/2));
var left=((screen.width-width)/2);
var args= "height=" + height + ",width=" + width +
",top=" + top + ",left=" + left;
popup = window.open(url, name, args);
popup.focus();
}
function report_launch() {
report_popup("..faces/report/ReportsPage.jsp",
"Reports", 700, 800);
}
window.onload = report_launch;
The application window is poping ok but any subsequent popups are not, is it something wrong in my script or maybe i have to implement it in a different way.
Your help please!!!!!!!!!!!!!!
function report_popup(url, name, height, width) {
var top=((screen.height-(screen.height/1.618))-(height/2));
var left=((screen.width-width)/2);
var args= "height=" + height + ",width=" + width +
",top=" + top + ",left=" + left;
popup = window.open(url, name, args);
popup.focus();
}
function report_launch() {
report_popup("..faces/report/ReportsPage.jsp",
"Reports", 700, 800);
}
window.onload = report_launch;
The application window is poping ok but any subsequent popups are not, is it something wrong in my script or maybe i have to implement it in a different way.
Your help please!!!!!!!!!!!!!!