How to interact with bank data with Javascript

0

I was looking to put together a chart with HTML Canvas using Javascript as well. The required data is in the MySQL database. However, how can I interact and access this data from the Javascript bank, since it is not safe to use that language for the connection to the bank? Would a JSON page be an appropriate solution?

    
asked by anonymous 09.01.2018 / 17:45

1 answer

0

The best way is to send an ajax request to your API, your API queries the database, and returns a JSON response. From the moment you are in possession of your JSON, just do whatever you want with the data.

    
09.01.2018 / 18:22