cef and xhr callbacks

180 views
Skip to first unread message

Andreas

unread,
Feb 15, 2014, 4:29:19 AM2/15/14
to cef...@googlegroups.com
Hi!

Thank you for you effort to create this library.

I have a newbie question regarding Cef and XHR callbacks:

In my program I use a GO program as simple HTTP Server for serving XHR Json callbacks and for static content (JS Libs, HTML, CSS etc). The GUI client uses AngularJS with XHR Callbacks.

I chose this architecture, because for me it's much easier to build a Client GUI with HTML5/CSS. My application is not intended to run in the internet.

Is it possible to put all this in a cef2go standalone program and to make the XHR Callbacks internal.

The XHR/HTTP Server should not be reachable from outside the standalone program.

Andreas

Czarek Tomczak

unread,
Feb 15, 2014, 7:17:21 AM2/15/14
to cef...@googlegroups.com
Hi Andreas,

I have created an example on how to embed an internal http server and Chromium browser in a standalone program. See the http_server_windows.go example. To run it type "build.bat http_server". I have updated README, added section "Communicate between Go and Javascript".

-Czarek

Andreas

unread,
Feb 15, 2014, 10:00:36 AM2/15/14
to cef...@googlegroups.com
Hi Czarek!

Thank you for the example. A good starting point.

A native Javascript integration in the future would be really great.

Andreas

Reply all
Reply to author
Forward
0 new messages