Hi,
I would like to open a page in a new browser window out of a controller.
In the end there are too pages. The first one is the only view of the main controller. It contains a list of documents which can be selected. By clicking on a document another window should open containing a pdf document (using PDF Plugin of IE).
For security reasons it is not possible to use javascript. The URL of the pdf document is not allowed to be displayed anywhere in the browser. That is why I would like to realize a frameset one the second page. The second page is a simple BSP page not a view.
I need something like:
navigation->goto_page_open_in_new_window( url = 'myPage.htm' )
Thanks for your help.
in order to open a new window you must issue window.open (JavaScript) which must have a URL as its argument. If anyone knows another way, please post it here.
But you can hide the URL. Put the window.open command in a function within a JavaScript file, and simply refer to the file in your HTML, like this:
<script type="text/javascript" language="javascript" src="myfile.js">
</script>
The source code of the file myfile.js is not visible.
Add a comment