Answer the question
In order to leave comments, you need to log in
Node.js client update?
I’m just starting to delve into node.js, Google didn’t help me (I’m probably asking the wrong way).
On the server side, node.js with express.js, on the client side, .ejs templates (without frameworks, I haven’t reached them yet).
The /main page is rendered to the client with data from MySql (several tables).
The client needs to make a selection of data in one of the tables, for example, by date.
The client gives dates - receives a new result of the request (it is better to double-check the database, suddenly the data has been updated).
Can you please tell me how it will be correct to update the data on the client side?
Update (redraw tables) already on the client side using JS / jquery? Redirect to another page, then direct where to dig? Is there any way to change the / main rendering logic so that when the page is requested (updated), the data for fetching is already taken into account? Or is there something else I don't know?
Thank you very much!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question