cigno5e5
03-08-2004, 08:22 AM
someone know how to open a new window and start a file download via javascript?
|
Click to See Complete Forum and Search --> : how to start a download in a separate window? cigno5e5 03-08-2004, 08:22 AM someone know how to open a new window and start a file download via javascript? Vladdy 03-08-2004, 08:40 AM ... and why a simple: <a href="filetodownload.ext" type="appropriateMIMEtype">Download...</a> would not do??? cigno5e5 03-08-2004, 08:47 AM ok, i'm an idiot :D i must to specify my environment! I'm using jsp. In a form the user do submit to server...and my java code create an appropriate MIME type response writing the file to download. This response i would to open in another window. Principally the problem is that the user do submit to a form! sorry. Excuse me for my superficiaility...and for my very bad english!!!! Vladdy 03-08-2004, 09:31 AM jsp as far as I remember is Java Server Pages and just a way to produce HTML or other type of server output, so server side technology has no bearing on what is happenning on the client side. I do not understand what the new window is for. The browser automatically opens a "Save As.." dialog when the MIME type is not recognized/supported. cigno5e5 03-08-2004, 09:38 AM exactly! i would confirm about this!! So i cannot redirect to another window from server!! i need (no, the USER need) another window!!!!!! anyway thanks! my problem has not direct solution!!! Vladdy 03-08-2004, 09:56 AM Originally posted by cigno5e5 i need (no, the USER need) another window!!!!!! I can not understand why. cigno5e5 03-08-2004, 10:00 AM because my dev team has developed a little framework (using java struts) to "link" user actions to follow a predeterminated programmer defined workflow... we cannot insert download (the response has a particular mime type) into our workflow! webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |