Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
GCF - Communicate with Opener
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
DonaldKerr  
View profile  
 More options Jul 4 2012, 5:46 pm
From: DonaldKerr <donald.k...@dkerr.co.uk>
Date: Wed, 4 Jul 2012 14:46:47 -0700 (PDT)
Local: Wed, Jul 4 2012 5:46 pm
Subject: GCF - Communicate with Opener

I have a web application that relies heavily on the host page (static -
never changes) talking to a popup window. The popup window pages change as
the user navigates around the website.

The host page is IE and has an embedded ActiveX. The ActiveX fires events
and the host page reacts to these events. In turn, the host page makes
changes to the popup page via the reference to that page created by
window.open in the host page.

Users navigate around the website in the popup window. The popup pages are
rendered in IE (some have other embedded ActiveX) with the exception of a
single page which is rendered in GCF.

The problem is that the communications between the host and the popup are
broken due to the way that GCF is implemented.

Is there a way to set up a communications path between the windows that's
reliable and the same for both the IE pages and the GCF page that are in
the popup?

I have looked at the method of having the GCF ActiveX in the host page and
opening the popup page but that seems to render the popup in GCF despite
the tag "<meta http-equiv="X-UA-Compatible" content="chrome=1">" NOT being
included; the popup IS, however, wrapped in an IE window. This does not
seem to be a satisfactory solution.

I have looked at rendering the whole site in GCF but I have too many
ActiveX pages and I cannot load them in the GCF page. I do need to wrap the
site in IE since it's a standalone application on a single computer. This
is required in order to open the pages in kiosk mode (full screen with no
menus).

If anyone understands the above scenario and can offer some advice or
assistance then it would be greatly appreciated.

Many thanks.

Regards,

Donald

  HostPopUp.gif
21K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DonaldKerr  
View profile  
 More options Jul 6 2012, 7:53 am
From: DonaldKerr <donald.k...@dkerr.co.uk>
Date: Fri, 6 Jul 2012 04:53:07 -0700 (PDT)
Local: Fri, Jul 6 2012 7:53 am
Subject: Re: GCF - Communicate with Opener

It would appear that the only real way that this may be achieved is via
cookies in some way. I am assuming that there's no technical way to achieve
a solution otherwise "window.opener" would be available to the popup.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Russell  
View profile  
 More options Jul 18 2012, 2:16 pm
From: Alex Russell <slightly...@google.com>
Date: Wed, 18 Jul 2012 19:16:31 +0100
Local: Wed, Jul 18 2012 2:16 pm
Subject: Re: [google-chrome-frame:3103] GCF - Communicate with Opener

Hi Donald,

Sorry for the slow response. Vacation, etc.

The situation you describe -- the opener sending events to the opened
window -- will indeed be broken by GCF being triggered in the opened window
if the parent isn't a GCF-rendered document.

I think your suggestion below to poll on cookies isn't terrible, and I'm
sorry it's necessary. It doesn't strike me that the normal bag of
window.open()-based tricks will work here to create a channel between the
windows. Nor, I'm afraid, will postMessage as the window with the GCF
document won't be the thing you have a handle to from the parent document.

One possible solution might be to not use the header/meta for this single
document and, instead, host a GCF ActiveX control (iframe-style) full-page
in the popped-up window. That would allow you to keep the scripting
connection between parent/child and still use postMessage/onmessage to
communicate with the contents of the GCF document.

Does that sound feasible?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DonaldKerr  
View profile  
 More options Jul 19 2012, 6:46 am
From: DonaldKerr <donald.k...@dkerr.co.uk>
Date: Thu, 19 Jul 2012 03:46:16 -0700 (PDT)
Local: Thurs, Jul 19 2012 6:46 am
Subject: Re: [google-chrome-frame:3103] GCF - Communicate with Opener

Sounds like a possibility. Will investigate. I am currently working on a
means of passing messages with cookies and, once that's working fully, I'll
move onto your idea. No harm in getting both working then making a choice
as to which suits best.

Thanks for your help.

Regards,

Donald


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DonaldKerr  
View profile  
 More options Jul 30 2012, 2:23 pm
From: DonaldKerr <donald.k...@dkerr.co.uk>
Date: Mon, 30 Jul 2012 11:23:37 -0700 (PDT)
Local: Mon, Jul 30 2012 2:23 pm
Subject: Re: [google-chrome-frame:3103] GCF - Communicate with Opener

Alex,

Do you have any further information on installing and using the GCF ActiveX
control? I can't find much and I'm getting the "Aw, snap" message in IE
with http://src.chromium.org/viewvc/chrome/trunk/src/chrome_frame/host.html

Many thanks.

Regards,

Donald


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Russell  
View profile  
 More options Aug 1 2012, 11:50 am
From: Alex Russell <slightly...@google.com>
Date: Wed, 1 Aug 2012 16:50:37 +0100
Local: Wed, Aug 1 2012 11:50 am
Subject: Re: [google-chrome-frame:3149] GCF - Communicate with Opener
Hi Donald,

I'm seeing the "Aw, Snap!" as well. Will dig into it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Russell  
View profile  
 More options Aug 1 2012, 12:21 pm
From: Alex Russell <slightly...@google.com>
Date: Wed, 1 Aug 2012 17:21:06 +0100
Local: Wed, Aug 1 2012 12:21 pm
Subject: Re: [google-chrome-frame:3149] GCF - Communicate with Opener
Hi Donald,

So while I'm continuing to try to understand what's going on with the
test page you're seeing, the CFInstance wrapper script I wrote *does*
seem to be working for these cases:

http://src.chromium.org/viewvc/chrome/trunk/src/chrome_frame/CFInstan...

The usage is pretty straightforward:

<div id="placeholder">fallback content goes here</div>
<!-- Replace this URL with a local copy of CFInstance.js -->
<script src="http://src.chromium.org/viewvc/chrome/trunk/src/chrome_frame/CFInstan...">
</script>
<script>
        (function(){
                var cfi = new CFInstance({
                        src: "content.html",
                        node: "placeholder",
                        // Styling for the frame.
                        cssText: "border: 1px solid blue"
                });
                cfi.listen("load", function(evt) {
                        // The child document loaded.
                });
        })();
</script>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »