General question about java script

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

General question about java script

Postby gerard989797 » Mon Apr 10, 2017 11:30 am

Hello,
i have a general question for CEF.
When i use CEF in order to create a gui for my application, are tge java script files and all html and css files
somehow compiled finally or do i need to ship it along with my application ?

Thank you for answers
gerard989797
Techie
 
Posts: 11
Joined: Sun Apr 09, 2017 5:24 pm

Re: General question about java script

Postby magreenblatt » Mon Apr 10, 2017 11:41 am

On Windows you can include files as BINARY resources in the application rc file which would then be compiled into the exe. On all platforms you can load the files from directory or zip archive using CefResourceManager. See usage in cefclient starting with SetupResourceManager in tests/cefclient/browser/test_runner.cc.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: General question about java script

Postby gerard989797 » Tue Apr 11, 2017 9:37 am

Hello,
i trying to understand the samples from the binary distribution.
Unfortunately, there is no sample demonstrating how to catch/handle dom events
and / or reading/writing dom elements, like edit fields or a table, etc.
I though this what is CEF about: providing an html,css,js based gui for desktop applications.

Are there any c++ examples which are a good guide for this ?
Thank you for help.
gerard989797
Techie
 
Posts: 11
Joined: Sun Apr 09, 2017 5:24 pm

Re: General question about java script

Postby magreenblatt » Tue Apr 11, 2017 11:28 am

The DOM should be manipulated using standard HTML5 technologies -- JavaScript, CSS, etc.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 32 guests