I was testing CEF3(R475) on Linux Ubuntu 11.10 and found that JavaScript "alert(' ')" function doesn't work, but I think this is not the problem of method CefFrame::ExecuteJavaScript() itself. This could be platform dependent problem because JavaScript "window.open( )" function works fine. How can I solve this problem to make alert message box pup-up ?
To make it more clear , here are part of code from cefclient.cpp
- Code: Select all
void RunJavaScriptExecuteTest(CefRefPtr<CefBrowser> browser) {
browser->GetMainFrame()->ExecuteJavaScript(
"alert('JavaScript execute works!');", "about:blank", 0);
}
- Code: Select all
void RunPopupTest(CefRefPtr<CefBrowser> browser) {
browser->GetMainFrame()->ExecuteJavaScript(
"window.open('http://www.google.com');", "about:blank", 0);
}
By the way, I did not find CefJSBindingHandler::OnJSBinding() method in CEF3 , if I need to get return from JavaScript program, how can I approach ?
BR
George