File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Member Not Found JS error

 
Reese Doherty
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have encountered an issue since installing Adobe Reader 7. Previously I was able to open a PDF in a popup window and then click on a link which would open another PDF in the same popup window (ie replacing the old content). However now when i click on the second link I get a Member Not Found JS error. I am forced to close the popup manually before I can load the second PDF.
Any ideas what i could do to my JS function to resolve this? My function contains the following

var features =
'width=' + newWidth +
',height=' + newHeight +
',menubar=' + 'yes' +
',scrollbars=' + 'yes' +
',toobar=' + 'no' +
',resizable=' + 'yes' +
',left=' + newLeft +
',top=' + newTop ;


var window1= window.open("","WIN",features);
window1.document.open();
window1.focus();
window1.document.write(output);
window1.document.close();

Thanks a lot
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try

if(window1 && !window1.closed)window1.close();

Eric
 
Reese Doherty
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid the error still arises with that additional code
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic