Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript Integration #26

Open
sidneibjunior opened this issue Jan 20, 2016 · 5 comments
Open

Javascript Integration #26

sidneibjunior opened this issue Jan 20, 2016 · 5 comments

Comments

@sidneibjunior
Copy link

Is there support for java x javascript integration, like org.eclipse.swt.browser.Browser provides through evaluate and execute methods ?

Do you have any idea about how to implement the integration?

@wjywbs
Copy link
Owner

wjywbs commented Jan 29, 2016

Sorry for the late reply. To run javascript from c++, this and this are examples. You'll need to implement a JNI call to send javascript string to the c++ side.

#4 has some discussions of it.

@sidneibjunior
Copy link
Author

Thanks for the reply.
I forked https://github.com/Faeriol/javacef and implemented the Java > Javascript calling ("browser->GetMainFrame()->ExecuteJavaScript()") on branch 2272
Now I'll try to implement the Javascript > Java calling, which seems to be done through CefMessageRouterBrowserSide::Handler class.

@minteliuwm
Copy link

I now have the same problem,can you tell me how to solve it?I want to Javascript -> Java calling.

@nedtwigg
Copy link

nedtwigg commented Aug 1, 2016

J2V8 is a great project for interfacing the V8 javascript engine with Java. https://github.com/eclipsesource/J2V8

My dream is that it and JavaCEF will get combined somehow someday.

@oawang
Copy link

oawang commented May 16, 2018

me too, I want to Javascript -> Java calling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants