G
Guest
I have solved the problem of opening CD-based html pages from my website by
using the "mark of the web" feature. These webpages can have javascript that
runs flash content on the CD. Filenames are passed in the URL for this
purpose.
However, this approach does not work for pdf files (as far as I know, you
can't embed a "mark of the web" in a pdf file).
I thought the solution would be to create a "pdf-setup.htm" file on the CD.
This file is accessed like this:
file:///D:/Media/pdf-setup.htm?FN=Introduction.pdf
This URL is issued by my website (a link), where the CD-ROM that has the pdf
file is in drive D (this is a distance education course).
The pdf-setup.htm file has the "mark of the web", and a javascript that gets
the finename "introduction.pdf" from the URL. It then uses the
window.location function to load the pdf file. Naturally (my bad luck) this
does not work. If I substitute a file name such as test.htm, it works fine
(assuming test.htm has a "mark of the web" in it).
One solution is to "reformat" all of the pdf file content into html files.
This is a huge amount of work. Is there any way to get the javascript to
work, or is there another way to load the pdf file? I am trying to avoid a
major rework of all of the pdf files on our courseware CD's. They are
multi-column and very complex formatting, great with pdf, but not so great
with html without extensive fiddling with tables within tables within
tables...
Any help would be appreciated.
using the "mark of the web" feature. These webpages can have javascript that
runs flash content on the CD. Filenames are passed in the URL for this
purpose.
However, this approach does not work for pdf files (as far as I know, you
can't embed a "mark of the web" in a pdf file).
I thought the solution would be to create a "pdf-setup.htm" file on the CD.
This file is accessed like this:
file:///D:/Media/pdf-setup.htm?FN=Introduction.pdf
This URL is issued by my website (a link), where the CD-ROM that has the pdf
file is in drive D (this is a distance education course).
The pdf-setup.htm file has the "mark of the web", and a javascript that gets
the finename "introduction.pdf" from the URL. It then uses the
window.location function to load the pdf file. Naturally (my bad luck) this
does not work. If I substitute a file name such as test.htm, it works fine
(assuming test.htm has a "mark of the web" in it).
One solution is to "reformat" all of the pdf file content into html files.
This is a huge amount of work. Is there any way to get the javascript to
work, or is there another way to load the pdf file? I am trying to avoid a
major rework of all of the pdf files on our courseware CD's. They are
multi-column and very complex formatting, great with pdf, but not so great
with html without extensive fiddling with tables within tables within
tables...
Any help would be appreciated.