Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 7th, 2004, 07:51 AM
Registered User
 
Join Date: Jan 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem accessing the window.opener.opener

I have 3 html pages:
(1) The main html page- this has a link to launch the sub1 page
(2) The sub1 page- a child of the main html page- has a link to launch the sub2 page
(3) The sub2 page- a child of the sub1 page.

From the sub2 page I want to be able to click a link to close the sub1 page and then the main page as well as the sub2 page.

This all works fine when each screen is left open.

Also, when I open the 3 pages via their links and then before clicking the link to close all pages on the sub2 page I manually close the main html page.
Again, most of the time this is fine.
What it does is the following:
From the sub2 page I print out the following before attempting to close the windows:

Line1: alert("Sub2 [" + window.opener + "]"); [[object]]
Line2: alert("Sub2 closed?: " + window.opener.closed); false
Line3: alert("Main [" + window.opener.opener + "]"); [[object]]
Line4: alert("Main closed?: " + window.opener.opener.closed); true

The problem occurs if I have any other IE browser open at the time of opening the main html page. It doesn't matter what this browser contains. If there is another browser open
and I have followed the sequence of events as above (closing the Main page manually before clicking on the close button in the Sub2 window) When I print out the lines above from the
closeAll() function on Sub2 I get the following:

Line1: [[object]]
Line2: false
Line3: []
Line4: Javascript error:
        The callee (server [not server application]) is not available and disappeared; All connections are invalid. The call did not execute.

It seems in this situation I cannot even query if the Main page is open or not as I could above before invoking on any funcitons in the parent screens.

I would have thought that the window.opener.opener in this case would still be an object or else at least undefined, but it seems to be some sort of empty object. I also tried to check if it is an empty string "" but even trying to perfort this check (if(window.opener.opener=="")) I get the same JavaScript error printed out.

I am using IE5.5.

Any ideas much appreciated.

MOB

Reply With Quote
  #2 (permalink)  
Old January 17th, 2006, 07:11 AM
Registered User
 
Join Date: Jan 2006
Location: , , United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you ever get an answer to this one?

I've got a similar problem:

I'm getting this message:

"The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call did not execute."

Application developed in C#.NET

Scenario1: The homepage has a link (href) to a pdf file. When I click the link, everything's fine - the pdf is displayed.

Scenario2: The homepage has a menu link to an external site. Click the link, the external site is opened in a new window. Return focus to the homepage and click the pdf link. Everything's fine - the pdf is displayed.

Scenario3: The homepage also has a menu link to a popup window showing contact details. Click this link and the popup window is displayed. This is a modeless dialog window. Return focus to the homepage and click the pdf link. The page will not open. In the development environment the code breaks with the above message. This happens regardless of whether the contacts popup window is still open, or has ben closed.

I'm not using a popup blocker, so it's not that.
Reply With Quote
  #3 (permalink)  
Old January 18th, 2006, 05:14 AM
Registered User
 
Join Date: Jan 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It seems that it is problem related to internet explorer.

Perhaps this will solve your problem.

http://forums.devshed.com/javascript...try-37219.html

Rahim Vindhani
http://www.javadeveloper.co.in

Reply With Quote
  #4 (permalink)  
Old January 18th, 2006, 05:25 AM
Registered User
 
Join Date: Jan 2006
Location: , , United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can't access this link:(
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
window.opener for mozilla jun99 Javascript 3 September 1st, 2009 08:57 AM
'window.opener.document' error in IE Colleen Javascript How-To 1 July 25th, 2006 07:57 PM
window.opener problems crmpicco Javascript How-To 2 September 30th, 2005 03:46 AM
window.opener help fs22 Javascript How-To 6 May 9th, 2004 10:50 PM
window.opener.refresh matt.fields Javascript How-To 1 November 3rd, 2003 05:13 AM



All times are GMT -4. The time now is 02:04 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.