How to transfer data from a C ++ application to Javascript

I am developing a jQuery based pivot table.

The goal is not a web application, but a desktop application (C ++). In my opinion, the data is extracted by the application from the database, then transferred to the html page, and then displayed through the turntable plugin.

There is no web server, and the web page containing the plugin cannot access the database.

So how to transfer data efficiently? I saw other questions here about this, but I think we have a different scenario. Of course, I can write the data in a txt / xml / js file, but I have experienced this for a huge amount of data, writing files will be very expensive.

+3
source share
3 answers

http , , http- . javascript , "" .

python, , ruby ​​ webrick javascript v8 node.js. ( , )

, , ( , , , ..).

+1

You may be able to use named pipes to transfer data to a static page.

It might also be better to just make your C ++ program a simple web server that will open the port and generate a web page when the user goes to http: // localhost: 8080 .

0
source

Source: https://habr.com/ru/post/1793421/


All Articles