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
Chrome Frame BHO and WebBrowserControl -calling C# methods
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
 
VM  
View profile  
 More options Sep 28 2011, 11:44 am
From: VM <mathews.v...@gmail.com>
Date: Wed, 28 Sep 2011 08:44:28 -0700 (PDT)
Local: Wed, Sep 28 2011 11:44 am
Subject: Chrome Frame BHO and WebBrowserControl -calling C# methods
 I am using WebBrowser control & Chrome Frame BHO.  Everything works
fine with the Chrome engine doing rendering when the page has the meta
tag.  Now I want to call a C# method from the javascript running in
the browser and vice versa.  This can be done using the
ObjectForScripting and window.external objects when IE is the
rendering engine.  But when the chrome frame tag is present in the
page this approach does not work.

A sort of hack I could come up with to call the C# code from to write
some code in Navigating method to call a C# method and cancelling the
navigation.  The problem with this approach is that there is no way to
pass back and data to the calling java script method.

Any thoughts on accomplishing this.


 
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.
Amit Joshi  
View profile  
 More options Sep 28 2011, 1:14 pm
From: Amit Joshi <a...@chromium.org>
Date: Wed, 28 Sep 2011 10:14:00 -0700
Subject: Re: [google-chrome-frame:2474] Chrome Frame BHO and WebBrowserControl -calling C# methods

You can use window.externalHost to post async messages.  Check out this
thread:
http://groups.google.com/group/google-chrome-frame/browse_thread/thre...


 
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.
Robert Shield  
View profile  
 More options Sep 28 2011, 1:14 pm
From: Robert Shield <robertshi...@chromium.org>
Date: Wed, 28 Sep 2011 13:14:07 -0400
Local: Wed, Sep 28 2011 1:14 pm
Subject: Re: [google-chrome-frame:2474] Chrome Frame BHO and WebBrowserControl -calling C# methods

If you host the CF ActiveX control for rendering inside the WebBrowser
control, you could use its postMessage method (see
chrome_tab.idl<http://src.chromium.org/svn/trunk/src/chrome_frame/chrome_tab.idl>)
to send data to javascript running inside Chrome Frame and, for the other
direction, script inside Chrome Frame can use
window.externalHost.postMessage().


 
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.
VM  
View profile  
 More options Sep 29 2011, 12:35 am
From: VM <mathews.v...@gmail.com>
Date: Wed, 28 Sep 2011 21:35:30 -0700 (PDT)
Local: Thurs, Sep 29 2011 12:35 am
Subject: Re: Chrome Frame BHO and WebBrowserControl -calling C# methods
Can the CF ActiveX be used such that thr page renders in chrome based
on the meta tag in the page?  If do, sre you aware of any sample code
that ties WebBrowser control to the CF Active X object.

-Vinu

On Sep 28, 1:14 pm, Robert Shield <robertshi...@chromium.org> wrote:


 
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.
VM  
View profile  
 More options Sep 29 2011, 12:38 am
From: VM <mathews.v...@gmail.com>
Date: Wed, 28 Sep 2011 21:38:03 -0700 (PDT)
Local: Thurs, Sep 29 2011 12:38 am
Subject: Re: Chrome Frame BHO and WebBrowserControl -calling C# methods
Can this be done using the CF BHO or will I have to use the CF Active-
X control for this?

-Vinu

On Sep 28, 1:14 pm, Amit Joshi <a...@chromium.org> wrote:


 
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.
Amit Joshi  
View profile  
 More options Sep 29 2011, 12:59 am
From: Amit Joshi <a...@chromium.org>
Date: Wed, 28 Sep 2011 21:59:43 -0700
Local: Thurs, Sep 29 2011 12:59 am
Subject: Re: [google-chrome-frame:2478] Re: Chrome Frame BHO and WebBrowserControl -calling C# methods

Are you hosting Chrome Frame BHO inside your own container?  In that case
the postMessage/window.externalHost will work but there are certain
assumptions Chrome Frame BHO makes about its container that may be
problematic.  Browse Chrome Frame source code (say: Bho::SetSite
http://src.chromium.org/svn/trunk/src/chrome_frame/bho.cc) for specifics.

As Robert has suggested, IChromeFrame interface from chrome_tab.idl is
available in BHO mode and can be accessed as shown
in IEEventSink::ConnectToChromeFrame here:
http://src.chromium.org/svn/trunk/src/chrome_frame/test/ie_event_sink.cc


 
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.
lestat.min...@gmail.com  
View profile  
 More options Feb 11, 5:32 am
From: lestat.min...@gmail.com
Date: Mon, 11 Feb 2013 02:32:47 -0800 (PST)
Local: Mon, Feb 11 2013 5:32 am
Subject: Re: Chrome Frame BHO and WebBrowserControl -calling C# methods

Can you tell me how do you add the control on the form?
I get always a message error about axHost when I try.

Do you add some reference more?

Thanks a lot!

El miércoles, 28 de septiembre de 2011 17:44:28 UTC+2, VM escribió:


 
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 »