[thelist] plugin to open Word or PDF docs inside the browser in a small window
Richard Bennett
richard.bennett at skynet.be
Wed Nov 10 12:33:10 CST 2004
On Wednesday 10 November 2004 18:30, Sarah Sweeney wrote:
> If you're not inclined to look at the screenshot, the document (in this
> case a PDF) is open in a small plugin-type window within the browser
> window.
hi,
They are simply using a frameset. You could also use an <iframe> and point the
src to the pdf document.
For people who have the PDF plugin installed the document will show like in
the screenshot, for others it will open a "save file as" dialogue.
To change the source of the iframe, you simply give its name as target value
in the link:
<a href="document.pdf" alt="test pdf document" target="iframeName">PDF
document</a>
<iframe src="plaveholder.html" name="iframeName" id="iframeName" />
So even browsers that don't support iframes, or don't have the plugins will
still show the links, and the download dialogue.
HTH
Richard.
More information about the thelist
mailing list