Hello! I have the following problem.
I have the HTML page "reports.html". It contains a number of hrefs for displaying different reports (in HTML format). All those links refer to the same page "reportsDisplayer.html" but i pass different reportnames to reportsDisplayer by adding them with a question mark to the end of the URL.
e.g. in reports.html:
<a href="reportDisplayer.html?REPORT=xyz.html">xyz</a>
In reportDisplayer.html I save the name of the passed REPORT into the variable reportName by calling the appropriate javascript function.
So far everything is fine. In variable "reportName" i have now for example saved the value "xyz.html".
AND NOW: i would like to use this reportName variable for opening the xyz.html as an object within the reportDisplayer.html site.
If I indicate the report-url (data) statically it works, e.g.:
<object width="100%" height="100%" type="text/html" data="xyz.html" border="0" style="overflow: auto"></object>
But how can I achieve, that the opened object depends on the value saved in the reportName variable? How can I transform it to an URL and integrate it to the <object> tag?
like
<object width="100%" height="100%" type="text/html" data=reportName border="0" style="overflow: auto"></object>
Hope there is at all a solution for this problem without using JSP/PHP..
Thanks already now for your help!
br,
Konrad
I have the HTML page "reports.html". It contains a number of hrefs for displaying different reports (in HTML format). All those links refer to the same page "reportsDisplayer.html" but i pass different reportnames to reportsDisplayer by adding them with a question mark to the end of the URL.
e.g. in reports.html:
<a href="reportDisplayer.html?REPORT=xyz.html">xyz</a>
In reportDisplayer.html I save the name of the passed REPORT into the variable reportName by calling the appropriate javascript function.
So far everything is fine. In variable "reportName" i have now for example saved the value "xyz.html".
AND NOW: i would like to use this reportName variable for opening the xyz.html as an object within the reportDisplayer.html site.
If I indicate the report-url (data) statically it works, e.g.:
<object width="100%" height="100%" type="text/html" data="xyz.html" border="0" style="overflow: auto"></object>
But how can I achieve, that the opened object depends on the value saved in the reportName variable? How can I transform it to an URL and integrate it to the <object> tag?
like
<object width="100%" height="100%" type="text/html" data=reportName border="0" style="overflow: auto"></object>
Hope there is at all a solution for this problem without using JSP/PHP..
Thanks already now for your help!
br,
Konrad