Skip to content

typical pipeline with parserino #17

Answered by trikko
aferust asked this question in Q&A
Mar 16, 2024 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

For passing data from server to client you can use a hidden node with a custom data- attribute. Something like:

...
<div id="mydata" data-content="">
...
auto json = ....;
auto node = doc.byId("mydata");
node.setAttribute("data-content", json.toString);

For passing data from client to server you can use a webservice, of course.

fetch("https://yourserver/dothis")
.then((response) => response.json())
.then((json) => console.log(json));

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@trikko
Comment options

@aferust
Comment options

@trikko
Comment options

@aferust
Comment options

@trikko
Comment options

Answer selected by trikko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants