Hello, I would like to create a hyperlink in one of my data items in my report to open a new window and show the detail description in this window. Does anyone have a html/js script I can use to help me or please direct me to some help sites I can find out? Thank you in advance.
I added html tags to my report.
<html> Click to open new window <html>
The HTML has this expression ' <a href="javascript:openwindow()"> '
My next step is to pass a data item into openwindow() function. So, I modified the calling html and in the function openwindow(vDataItem).
' <a href="javascript:openwindow(' + DataItem + ')"> '
I am getting errors and cannot open a new window. I think its my quotes syntax. Have tried different ways but unable to get it right. Could you please give me some tips where my error might be? Thank you.
--------------------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript">
function openwindow()
{
OpenWindow=window.open("", "newwin", "height=250, width=250,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<TITLE>Title Goes Here</TITLE>")
OpenWindow.document.write("<BODY BGCOLOR=pink>")
OpenWindow.document.write("<h1>Hello!</h1>")
OpenWindow.document.write("This text will appear in the window!")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
}
</SCRIPT>
I've got this working though not pretty ..
" <a href='javascript:openwindow(" + " "" " + [dataItem] + " "" " + ") '> "