[thelist] CD-ROM question

Kirk Kristlibas info at avaloniksocietymedia.com
Mon Nov 21 16:29:16 CST 2005


Hi Phil,
I saw this post, and I'm in the same exact boat.  Did you ever get the 
solution?
Kirk

Hi,

I have a question regarding javascript -

I am building an image library which runs through a web browser from a
CD-ROM (yes, I know - not my idea..). I have built the interface and I'm
thinking of an easy way for people to click on an image and download it
to their desktop. The images are jpegs, so pointing to it through an
anchor tag opens it in new window instead of forcing the dowload.

In PHP I used to use the header() function, set the content-type to
"application/octet-stream" and open the file in the page - this would
force the browser to download the jpeg - but obviously from a CD I can't
use server-side technology.

Does anyone know of a way javascript could do a similar thing? perhaps
document.open() or similar?

Cheers,

Phil 


More information about the thelist mailing list