why alert not displayed ?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

why alert not displayed ?

Postby mohsenti » Sun Nov 29, 2015 4:26 pm

Hi all
I develop simple example to run some javascript code with CefFrame::ExecuteJavaScript but some of code work and some not work for example I can run
Code: Select all
frame->ExecuteJavaScript("document.write('xxx');", frame->GetURL(), 0);

but I can't run
Code: Select all
frame->ExecuteJavaScript("window.alert('Failed to get V8 enter!');", frame->GetURL(), 0);

what is problem ?
I test codes in OnLoadEnd event and OnContextCreated , result is same.

a sample attached to post.

my os is Ubuntu 14.04.

thank you
Attachments
sample.zip
(4.47 KiB) Downloaded 347 times
mohsenti
Newbie
 
Posts: 7
Joined: Sun Nov 29, 2015 4:16 pm

Re: why alert not displayed ?

Postby magreenblatt » Mon Nov 30, 2015 2:21 pm

On Linux you need to implement CefJSDialogHandler.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 72 guests