passing string from javascript to cef to add in vector

Discussion of current events and participation in intelligent conversation with other CEF users.

passing string from javascript to cef to add in vector

Postby rahul » Thu Oct 08, 2015 12:17 am

hi, i am new to this framework and i need help to pass string from textbox of my html page to C++ vector
Thanks in advance
rahul
Techie
 
Posts: 11
Joined: Wed Oct 07, 2015 11:59 pm

Re: passing string from javascript to cef to add in vector

Postby amaitland » Thu Oct 08, 2015 4:22 pm

Have you read the JavaScriptIntegration guide yet?

https://bitbucket.org/chromiumembedded/ ... gration.md
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: passing string from javascript to cef to add in vector

Postby rahul » Fri Oct 09, 2015 12:37 am

Thanks for reply
yes, with these only i enabled to transfer my vector values to html page, but i am not getting how to use js callback.
i have created object in java script but could not able to access the object from cef. I have registered my function in context created as:-

CefRefPtr<CefV8Handler> handler = new SimpleApp();
object->SetValue("add",CefV8Value::CreateFunction("add", handler),V8_PROPERTY_ATTRIBUTE_NONE);

but
bool SimpleApp::Execute(const CefString& name,
CefRefPtr<CefV8Value> object,
const CefV8ValueList& arguments,
CefRefPtr<CefV8Value>& retval,
CefString& exception)

function is not getting called .
rahul
Techie
 
Posts: 11
Joined: Wed Oct 07, 2015 11:59 pm

Re: passing string from javascript to cef to add in vector

Postby rahul » Tue Oct 13, 2015 3:58 am

hi everyone
I am getting the string return after executing the function in java script but how can we add this value in already presented vector of string in c++ code.

thanks in advance
rahul
Techie
 
Posts: 11
Joined: Wed Oct 07, 2015 11:59 pm

Re: passing string from javascript to cef to add in vector

Postby rahul » Tue Oct 27, 2015 5:55 am

THANKS EVERYONE for your support my project is completed...

:D :D :D :D
rahul
Techie
 
Posts: 11
Joined: Wed Oct 07, 2015 11:59 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 12 guests