I am trying to allow a user to view a PDF in a new window. I
currently have this working using the following:
<a href="./pdf.do?paramete r=01121980" target="top"><b >pdf</b></a>
The problem with the above solution is the back/forward buttons and
all the other browser options. Because of this, I am trying to get
the following solution to work:
<a href="#" onclick="popUp( './pdf.do?paramete r=01121980')">< b>pdf</b></a>
function popUp(url)
{
window.open(url , "PDF",
"width=500,heig ht=500,status=n o,toolbar=no,me nubar=no");
}
When I use this implementation, I get a window asking if I'm sure I
want to download the file (which I do not get from the first
implemenation). I click yes, and it says it was unable to download
the file. Just as an experiment, I have taken the url that ends up in
the location bar from the working method and pasted it in a new
browser window. That gives me the same error as the popup function
method. I'm stuck. Any help would be appreciated.
Thanks,
Mike
currently have this working using the following:
<a href="./pdf.do?paramete r=01121980" target="top"><b >pdf</b></a>
The problem with the above solution is the back/forward buttons and
all the other browser options. Because of this, I am trying to get
the following solution to work:
<a href="#" onclick="popUp( './pdf.do?paramete r=01121980')">< b>pdf</b></a>
function popUp(url)
{
window.open(url , "PDF",
"width=500,heig ht=500,status=n o,toolbar=no,me nubar=no");
}
When I use this implementation, I get a window asking if I'm sure I
want to download the file (which I do not get from the first
implemenation). I click yes, and it says it was unable to download
the file. Just as an experiment, I have taken the url that ends up in
the location bar from the working method and pasted it in a new
browser window. That gives me the same error as the popup function
method. I'm stuck. Any help would be appreciated.
Thanks,
Mike
Comment