File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Member Not Found JS error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Member Not Found JS error" Watch "Member Not Found JS error" New topic
Author

Member Not Found JS error

Reese Doherty
Greenhorn

Joined: Dec 07, 2006
Posts: 8
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
try

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

Eric
Reese Doherty
Greenhorn

Joined: Dec 07, 2006
Posts: 8
I'm afraid the error still arises with that additional code
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Member Not Found JS error