| Author |
HTML Link to a Quicktime file displays garbage characters in IE
|
harsha vardhany
Greenhorn
Joined: Jun 03, 2009
Posts: 3
|
|
HTML Link opening a page that Redirect to a Quicktime .MOV file displays garbage characters in IE when Target is _blank.
I have a .jsp page that does a redirect to a Quicktime .mov file. When I create a link to this .jsp page, if the link opens in the same window (i.e. no Target defined on the anchor tag), all is good and IE displays the Quicktime movie just fine. However if I set the Target of the link to "_blank" which opens a new window, IE displays garbage characters on the screen (as if you open a binary file). The URL in both cases (with or withotu target) is correct (i.e. http://localhost/movies/myMovie.mov). Any suggestions please...Thanks in Advance.
|
harsha..
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
Have you set the content type properly?
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
harsha vardhany
Greenhorn
Joined: Jun 03, 2009
Posts: 3
|
|
content type is on my jsp page is like below
<META http-equiv="Content-Script-Type" content="text/javascript">
|
 |
Amit Ghorpade
Bartender
Joined: Jun 06, 2007
Posts: 2561
|
|
"harsha vardhan y " welcome to Javaranch
Rob is asking about the content-type not the content-script-type.
And please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.
|
SCJP, SCWCD.
|Asking Good Questions|
|
 |
harsha vardhany
Greenhorn
Joined: Jun 03, 2009
Posts: 3
|
|
content type is sets like below .
res.setContentType("text/html; charset=UTF-8");
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
Then it's logical the browser tries to render it as HTML. Internet Explorer sometimes ignores the content type and uses the extension only, that could be why it was working with the "normal" link. Try using the proper content type, which is video/quicktime for Quicktime movies.
|
 |
 |
|
|
subject: HTML Link to a Quicktime file displays garbage characters in IE
|
|
|