tags:

views:

20

answers:

1

How to open new popup window from portal using java script.

I have jsp page with button , if i click the button need to open new popup window from portal.

onClick="window.open('/html/viewpdf.jsp','mywindow','width=500,height=350,toolbar=no,resizable=yes')">

this doesn't working jsp page.

A: 

Yes , this opening popup window.But in liferay portal just opening http://localhost:8080/web/guest only. not opening the viewpdf.jsp.

my requirment is print the datatable values from the page.So datatable have scrollbar, though doesn't print page not correct.

So that i planned to display the datatable values in the popup window and there print button, it should display the all data.

function callsubmit(){

window.print(); window.opener.document.location = window.opener.document.location.href; window.close();

}

I would like know how to print datatable all values to print.

vinoth