markivs
05-15-2003, 04:00 PM
I have a link in my page. When the user clicks on it, it is supposed to open a pdf file in a new window. But I am having issues with it. I am using IE6.0
This works:
<a href="http://blah:8088/buy/common/pdfdata.pdf?page=0&GroupName=BuyList" target="somepage">pdf</a>
This dose not:
<a href="javascript:testFunc('http://blah:8088/buy/common/pdfdata.pdf?page=0&GroupName=BuyList');">pdf</a>
function testFunc(url) {
window.open(url,'somepage');
}
So when I click on the link, a new IE window opens up and immediately a message window opens and asks if I want to open or save the file. Clicking on save or open buttons dosen't do any good. For some reason IE thinks I am trying to download the pdf.
Any idea why ? Your help will be appreciated.
Thanks.
Mark
This works:
<a href="http://blah:8088/buy/common/pdfdata.pdf?page=0&GroupName=BuyList" target="somepage">pdf</a>
This dose not:
<a href="javascript:testFunc('http://blah:8088/buy/common/pdfdata.pdf?page=0&GroupName=BuyList');">pdf</a>
function testFunc(url) {
window.open(url,'somepage');
}
So when I click on the link, a new IE window opens up and immediately a message window opens and asks if I want to open or save the file. Clicking on save or open buttons dosen't do any good. For some reason IE thinks I am trying to download the pdf.
Any idea why ? Your help will be appreciated.
Thanks.
Mark