Novated lease - Internet Advertising - Debt Consolidation - Florida Property - Internet Advertising

PDA

View Full Version : Popup windo refusing to open a child popup


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!!!!!!!!!!!!!!

engager
Aug 22nd 2008, 2:12 am
window.onload = report_launch;

try replace with

window.onload = report_launch();

engager
Aug 22nd 2008, 2:19 am
And by the way, may be it's better to assign calling "report_launch();" to onload event of <BODY> tag?