Page 1 of 1

Is there a way to load HTML like `browser.loadContent` ?

PostPosted: Wed Mar 24, 2021 7:31 am
by fmatz
Hi,

I am working with the latest JCEF and would like to show some `on-the-fly` content sites:

.. browser.loadContent("<HTML>Test Content</HTML>");

Is there a way to solve this directly without `data/html,base64` convertings ?

Thanks and regards,
Fried

Re: Is there a way to load HTML like `browser.loadContent` ?

PostPosted: Wed Mar 24, 2021 1:33 pm
by fmatz
Hi,

I am using the DataUri function from the demo and

it works also with `Umlaute`: .. JCefClientBrowser(DataUri.create("text/html", onTheFlyHTML)); .

Great and thanks,
Fried

Re: Is there a way to load HTML like `browser.loadContent` ?

PostPosted: Thu Jun 03, 2021 3:08 am
by fmatz
The best way for me is creating ResourceHandler classes
incl. static defined HTML pages.

Fried