zhlihappy / javachromiumembedded

Automatically exported from code.google.com/p/javachromiumembedded
0 stars 0 forks source link

Is it possible to invoke javascript functions from java and vice-versa ? #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am new to both jcef and cef.

I am looking for functions using which I can call javascript functions from 
jcef and vice-versa.

Before, I venture, I wanted to know..If it is possible at all !.

Please comment.

I went through docs published about the future of jcef. In of them, it is 
mentioned "CefRegistrar" will do the job.

It might be some time before all such things brought in place. 

As of now, even a crude version of such feature will be of help to my work?.

Hence, the doubt.

Original issue reported on code.google.com by kscr...@gmail.com on 19 Mar 2014 at 8:26

GoogleCodeExporter commented 9 years ago
Just found that it is possible to send messages to java world from javascript.
sample page url: http://www.magpcss.org/pub/jcef_binding_1750.html

How do I send messages from java to javascript ?. Is it already supported ?

Original comment by kscr...@gmail.com on 19 Mar 2014 at 9:58

GoogleCodeExporter commented 9 years ago
Just found and patched the original CefBrowser_N.cpp/.h/.java with 
"ExecuteJavaScript" code from the patches.

Should work.

Original comment by kscr...@gmail.com on 19 Mar 2014 at 11:02

GoogleCodeExporter commented 9 years ago
Please ask questions on the CEF forum instead of the issue tracker: 
http://magpcss.org/ceforum/

Original comment by magreenb...@gmail.com on 19 Mar 2014 at 11:09