F
fb
A page I created includes a piece of javascript, shown at the foot of
this posting, that opens up a new browser and displays a PDF File. The
servlet "previewCompetencyLevel" generates the PDF and sends it with a
content type of "application/pdf".
The code works fine with Firefox.
However, with IE, instead of opening a new browser and displaying the
PDF, it opens up a new browser AND a "File Download" dialog box, which
is not what I want.
Can someone tell me why IE operates differently to FireFox and what I
can do to get the functionality I want with IE?
Thanks,
Frank.
--- code excerpt start ---
<a href="#"
onClick="window.open('/humanresources/previewCompetencyLevel?abilityDegree=3&parentAbilityId=186&abilityLevelId=306',
'previewWindow', 'resizable=yes'); return false;">View</a>
--- code excerpt end ---
this posting, that opens up a new browser and displays a PDF File. The
servlet "previewCompetencyLevel" generates the PDF and sends it with a
content type of "application/pdf".
The code works fine with Firefox.
However, with IE, instead of opening a new browser and displaying the
PDF, it opens up a new browser AND a "File Download" dialog box, which
is not what I want.
Can someone tell me why IE operates differently to FireFox and what I
can do to get the functionality I want with IE?
Thanks,
Frank.
--- code excerpt start ---
<a href="#"
onClick="window.open('/humanresources/previewCompetencyLevel?abilityDegree=3&parentAbilityId=186&abilityLevelId=306',
'previewWindow', 'resizable=yes'); return false;">View</a>
--- code excerpt end ---