*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Consider Paul's rocket mass heater.
 
subject: Member Not Found JS error
 
Similar Threads
How to close the popup window automatically after download completes
object doesn't support the property or method
Check if popup window is already open from parent window?
window.focus() or Adobe plug-in?
Multiple frames + Access is denied