1π
β
I think youβre over-thinking the issue. This is a solved problem and almost all websites use it today: use AJAX. JQuery has a builtin ajax feature that makes sending ajax requests very easy.
On the server side, create an url endpoint. Ideally you will have unique endpoints for each resource that you store in your database. For example:
http://mywebsite.com/book/?uid=124234
This url would theoretically provide a CRUD interface for the book with ID 124234. You can update this object by issuing a POST request. Or you can get all of its data by issuing a GET request.
I hope this helps.
π€systemizer
0π
If you are making use of Django for your framework, then I would suggest looking at django-socketio
π€Reinbach
- [Answer]-Serving django app with apache2+mod_wsgi
- [Answer]-Loading new page after button is clicked (not duplicate)
Source:stackexchange.com