[SOLVED] choice of inline frame or new window for report output
Currently the reports in this company all display in an inline frame within the launch page. This is very limiting. I would like to give the users a choice of having the reports display in either the inline frame or in a separate window.
Can this be done without JavaScript?
There are no JavaScript coders here, so if it can only be done with JavaScript, I would appreciate it if the JavaScript code would be posted here.
Thank you,
JohnThis message has been edited. Last edited by: Kerry,
WF 7.7.03, Windows 7, HTML, Excel, PDF
June 10, 2009, 03:07 PM
Francis Mariani
John,
I'm not going to discuss whether or not this is a good idea - I'm sure someone else will, I'm going to provide a possible solution.
The form target attribute specifies where the form result will go. You can alter this using JavaScript, based on the selection in a form object like a radio button or a select list.
You would add a form object where the user selects the output destination - the inline frame, a new window or a named window. (If a new window is selected, the form will always open a new window; if a named window is selected, the form will open a new named window if it doesn't exist - if it does exist, the form result goes in the already opened window).
You would then add execution of a JavaScript function to the form using the onSubmit attribute.
Add the function to the HTML page, before the body tag.