Open Pdf In New Window |
5/15/2013 12:17:35 PM |
PHPRunner General questions | |
K
KennyB author
I have created a PDF from the ADD screen Before record added event and it works perfectly. IT iwll even open up. I would like to have this PDF open in a New tab or a new window. |
|
![]() |
Sergey Kornilov admin 5/15/2013 |
window.open is a Javascript function and won't work from PHP event. |
K
|
KennyB author 5/15/2013 |
window.open is a Javascript function and won't work from PHP event. When and where do you want to open that PDF file?
|
![]() |
Sergey Kornilov admin 5/15/2013 |
This is the issue. On the server side you can only redirect user to another URL. |
K
|
KennyB author 5/15/2013 |
This is the issue. On the server side you can only redirect user to another URL. Opening an URL in new window/tab requires Javascript and needs to be initiated by the user manually.
|
![]() |
Sergey Kornilov admin 5/15/2013 |
I think the best you can do is to display a link to this document after record was added and this link can be open in new tab/window. User still needs to click it though. |