Sign in to follow this  
MrWilson

Get Database info in CEF browser

Recommended Posts

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 ' '; 

 

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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!

 

Share this post


Link to post
Share on other sites
On 2/20/2020 at 10:41 PM, MrWilson said:

 

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

 

A couple of the Rage community members are making a free source organization for easy to interpret the API.

Here's an example to use ExecuteJS() 

https://github.com/RageMpOpenSource/Basic-Login/blob/ca392fd722b4bb5de962fdaacab88976910ba213/client_packages/cs_packages/PopUpNotification/PopUpNotification.cs#L21

  • Like 1

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.