Skip to content

How do I update without page refresh? #312

Answered by lovasoa
3n-mb asked this question in Q&A
Discussion options

You must be logged in to vote

Hello !
Currently SQLPage supports neither server sent events nor websockets.

Your best option if you want to get something running quickly is to create a separate sql file with 'shell-none' as component and to poll it regularly and insert the result in the web page using JavaScript. You can include your own js in your page using the javascript top level property of the shell component.
You can also customize the form submission button behavior in your own JavaScript, but there is no built-in feature in SQLPage to help you with that.

If you want to avoid polling, then you can use postgres' LISTEN/NOTIFY system, where you do the NOTIFY from SQLPage and set up a third party server where you…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@3n-mb
Comment options

@3n-mb
Comment options

Answer selected by 3n-mb
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