Quick HTML/Javascript question...

Status
You're currently viewing only skylark's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

skylark

Ars Tribunus Militum
2,388
The only way I can think of is to make your picture a file to download. Then the browser's download dialog box will pop up and ask the user if he want to "save" or to "open" the file, and if he choose to open it it 'll be handled according to its file type by the associated app. But I don't think there is a way to make the browser skip the download dialog box, it would imply that you take control of the user's computer. The user may not like it very much.
 

skylark

Ars Tribunus Militum
2,388
You simply put the file's URL in the link's "href" attribute, for example : a href="myfile.bmp". In this example, after the user chose to "open in the current location" in the download dialog, the file will be opened by his .bmp file handler whatever it is.
You have to make sure to translate the file's actual path into a correct URL... I hope this is clear enough otherwise feel free to ask.

[This message was edited by skylark on February 23, 2002 at 13:11.]
 
Status
You're currently viewing only skylark's posts. Click here to go back to viewing the entire thread.
Not open for further replies.