Click here to Skip to main content
16,016,460 members
Home / Discussions / Web Development
   

Web Development

 
QuestionBinaryWrite and the "Action canceled" page Pin
Chris Losinger30-Jun-06 5:31
professionalChris Losinger30-Jun-06 5:31 
AnswerRe: BinaryWrite and the "Action canceled" page Pin
Shog930-Jun-06 15:56
sitebuilderShog930-Jun-06 15:56 
GeneralRe: BinaryWrite and the "Action canceled" page Pin
Chris Losinger30-Jun-06 20:15
professionalChris Losinger30-Jun-06 20:15 
GeneralRe: BinaryWrite and the "Action canceled" page Pin
Shog91-Jul-06 5:48
sitebuilderShog91-Jul-06 5:48 
GeneralRe: BinaryWrite and the "Action canceled" page Pin
Chris Losinger1-Jul-06 6:37
professionalChris Losinger1-Jul-06 6:37 
GeneralRe: BinaryWrite and the "Action canceled" page Pin
Shog91-Jul-06 6:59
sitebuilderShog91-Jul-06 6:59 
GeneralRe: BinaryWrite and the "Action canceled" page [modified] Pin
Chris Losinger1-Jul-06 7:11
professionalChris Losinger1-Jul-06 7:11 
GeneralRe: BinaryWrite and the "Action canceled" page Pin
Shog91-Jul-06 7:37
sitebuilderShog91-Jul-06 7:37 
Chris Losinger wrote:
it's just doing a ShellExecute on a URL i provide.

Hah! And here i thought i was trying something totally crazy...

Yeah, that'll do it. Well, the obvious bit at least - it'll open a new window, or re-use an existing one (if one exists and the user's IE settings allow). As to why it leaves a nav canceled page for JPG but not the rest, i don't know for sure... but i suspect it has something to do with how IE sniffs MIME types (which it does, even when you specify x-msdownload). By the way: you do realize that using ShellExecute will open the user's default browser for all URLs, right? So potentially Firefox or Opera instead of IE...

So now, you really have two choices (short of modifying the app): Send the proper MIME type for JPG files (so they open in the browser rather than a separate app), or change your link to avoid the ShellExecute() call (since if the embedded browser tries to open it directly, it'll just download the file (possibly asking the user whether to ask or save first - again, depending on user and system settings).


----
Scripts i’ve known...
CPhog 1.0.0.0 - make CP better.
Forum Bookmark 0.2.5 - bookmark forum posts on Pensieve
Print forum 0.1.2 - printer-friendly forums
Expand all 1.0 - Expand all messages
In-place Delete 1.0 - AJAX-style post delete
Syntax 0.1 - Syntax highlighting for code blocks in the forums

AnswerRe: BinaryWrite and the "Action canceled" page Pin
Edbert P2-Jul-06 15:33
Edbert P2-Jul-06 15:33 
GeneralRe: BinaryWrite and the "Action canceled" page Pin
Chris Losinger2-Jul-06 16:10
professionalChris Losinger2-Jul-06 16:10 
QuestionHow to retrieve data stored on a different server... Pin
aspwizkid29-Jun-06 20:46
aspwizkid29-Jun-06 20:46 
QuestionBeginner Question about Firefox Controls Pin
Richard Andrew x6429-Jun-06 9:26
professionalRichard Andrew x6429-Jun-06 9:26 
QuestionOpening new windows from ASP Pin
mjackson1129-Jun-06 8:29
mjackson1129-Jun-06 8:29 
AnswerRe: Opening new windows from ASP Pin
ketankumar29-Jun-06 21:01
ketankumar29-Jun-06 21:01 
GeneralRe: Opening new windows from ASP Pin
mjackson1130-Jun-06 2:41
mjackson1130-Jun-06 2:41 
QuestionDesign Patterns Pin
shireenkhera@gmail.com29-Jun-06 7:44
shireenkhera@gmail.com29-Jun-06 7:44 
AnswerRe: Design Patterns Pin
Guffa29-Jun-06 8:26
Guffa29-Jun-06 8:26 
QuestionHow to write flash games Pin
Brent Lamborn29-Jun-06 4:35
Brent Lamborn29-Jun-06 4:35 
AnswerRe: How to write flash games Pin
Axel Seitz30-Jun-06 13:45
Axel Seitz30-Jun-06 13:45 
QuestionRaising "Save..Open" dialog [modified] Pin
zefferno29-Jun-06 3:33
zefferno29-Jun-06 3:33 
AnswerRe: Raising "Save..Open" dialog Pin
Guffa29-Jun-06 4:06
Guffa29-Jun-06 4:06 
GeneralRe: Raising "Save..Open" dialog Pin
eggsovereasy29-Jun-06 10:32
eggsovereasy29-Jun-06 10:32 
GeneralRe: Raising "Save..Open" dialog Pin
Guffa29-Jun-06 13:27
Guffa29-Jun-06 13:27 
GeneralRe: Raising "Save..Open" dialog Pin
eggsovereasy29-Jun-06 15:19
eggsovereasy29-Jun-06 15:19 
AnswerRe: Raising "Save..Open" dialog Pin
Guffa29-Jun-06 19:05
Guffa29-Jun-06 19:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.