From a documentlist the user activates links to see the document in a popup.
The link (JSP):
The function:
works as expected in Mozilla, Firefox but only partially in Internet Explorer. The command
throws an error in IE (objectError) if the window is already there and contains no HTML neither XHTML but something loaded with mime-type "applicatio n/pdf". Bringing the existing window manually to foreground it shows the expected new document.
What do I wrong? It looks like the reference to the window is ruined after loading the pdf.
Many Thanks for any help.
mumpi
The link (JSP):
Code:
<a href='javascript:var w=windowOpenDok("${docURLPDFFromTiff}","document",0.5,0.8);w.focus();'>
Code:
function windowOpenDok (url,name,relWidth,relHeight) {
var x = window.open (
url,
name,
"height=" + Math.floor(screen.availHeight * relHeight) + ",width=" + Math.floor(screen.availWidth * relWidth) + ",resizable=yes,scrollbars=yes,toolbar=yes,status=yes",
false
);
return x;
}
Code:
w.focus();
What do I wrong? It looks like the reference to the window is ruined after loading the pdf.
Many Thanks for any help.
mumpi
Comment