JCEF custom window open

Having problems with building or using the JCEF Java binding? Ask your questions here.

JCEF custom window open

Postby Tiph » Tue Aug 12, 2014 11:59 am

Hi,

what i would like to do is :

Create a jframe (what ever) create a browser put it in the jframe (that is okay).

Now i would like to set the javascript variable "window.opener" to link it with the javascript variable "window" of an another browser.

Thanks

Environement :
javachromiumembedded 3.1750.1738.91
Windows 7 x64
JDK 1.7.0_67 x64
Tiph
Techie
 
Posts: 13
Joined: Mon Aug 11, 2014 12:01 pm

Re: JCEF custom window open

Postby magreenblatt » Wed Aug 13, 2014 3:40 am

Tiph wrote:Now i would like to set the javascript variable "window.opener" to link it with the javascript variable "window" of an another browser

This value is only available for windows created using window.open JS or targeted links. CefLifeSpanHandler.onBeforePopup does not fully support custom popup windows yet.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF custom window open

Postby Tiph » Wed Aug 13, 2014 3:45 am

Tanks for you reply.

What about using V8 to get this value ? and put it in an another ?
Tiph
Techie
 
Posts: 13
Joined: Mon Aug 11, 2014 12:01 pm

Re: JCEF custom window open

Postby magreenblatt » Wed Aug 13, 2014 4:24 am

It may be possible, but I'm not sure how easy it would be.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: JCEF custom window open

Postby Tiph » Wed Aug 13, 2014 5:05 am

I would like to know where in (JCEF or CEF ?) is created the window when calling window.open in JS.

It look like CEF create a window in pure Windows and not a JFrame.

My goal is to have a handle on the browser and the window after calling window.open.

Tanks
Tiph
Techie
 
Posts: 13
Joined: Mon Aug 11, 2014 12:01 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 32 guests