Jump to content

Get Database info in CEF browser


Recommended Posts

Posted

Hey all, Been struggling to for awhile on this. 

 

I'm building an ingame CEF browser that shows stats of a vehicle that are stored in a database table called "configvehicle". On the browser you can select the name of the vehicle on the left and the data will show on the right.

 

How can you call data into a CEF browser? It doesnt seem to like <?php ?> at all. I want to output the data in html format $output ' '; 

 

 

Posted (edited)

Use javascript and trigger a ExecuteJS from the clientside to interact with the CEF. Fetch the database values from the server-side and then pass those arguments in the CEF by (again) ExecuteJS

Edited by $kylar
  • Like 1
Posted
10 minutes ago, $kylar said:

Use javascript and trigger a ExecuteJS from the clientside to interact with the CEF. Fetch the database values from the client-side and then pass those arguments in the CEF by (again) ExecuteJS

 

Much love dude thanks. I'll give that ago!

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...