|
Not logged in [Login - Register] |
You Are Not Registered Or Not Logged In |
Corsa Sport » Message Board » General Chat » HTML/JS Help... » Post Reply
|
Dom |
posted on 7th Jul 04 at 13:09 |
paul, the exampl you posted will work fine mate :) and like you say, just pop it into a seperate ASP file and call it or you could pop it into a function/routine and call it from that :thumbs: | |
Ian |
posted on 7th Jul 04 at 12:55 |
The problem you have is that MIME types are interpretted by the browser, and its up to that to decide what to do with them. What you're doing there is telling it that its basically a foreign ContentType and that data will follow - this is your best of the bad situation as the most the browser can usually do with this is download it somehwere - there will be no app set up to handle it. The problem there of course is that you need to get a filename and file extension in the downloaded file, I'm sure there must be some other hacks somewhere to supply that. | |
PaulW |
posted on 7th Jul 04 at 11:34 |
Or if anyone can help me with headers in asp?? code: I found that as an example, but I aint sure how to implement it. I suppose the best way would be to call a seperate file (ie, when a download link is clicked, instead of linking straight to the file, it will open something like http://blahblah.com/filedl.asp?download=\lrc\it\p433.doc than that page runs through the above header to download the file instead of opening it?? & also closes itself, so it opens up as _blank & then closes once headers have been processed?? arrrrgggg I aint ever worked with HTTP headers before, so I'm lost! [Edited on 07-07-2004 by PaulW] [Edited on 07-07-2004 by PaulW] | |
PaulW |
posted on 7th Jul 04 at 10:24 |
I've seen it done on other sites, but I can't remember for the life of me where... |