From Post to API

Is it possible to post a from to an API Endpoint but stay on the Page without JS ? I have a project that requires me to use JSP (without JS). And I want to add data to a list, and keep that list in view.
3 Replies
Sturlen
Sturlen2mo ago
htmx might be up your alley then: https://htmx.org it can help you switch out elements on a page after form submit with the server respone, without having to write lots of js. (though it still needs js to function)
</> htmx - high power tools for html
htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext htmx is small (~14k min.gz’d), dependency-free, extendable, IE11 compatible & has reduced code base sizes by 67% when compared with react
Sturlen
Sturlen2mo ago
example from the page
No description
Bored Student
Bored StudentOP2mo ago
thx looks like i can sneak that in
Want results from more Discord servers?
Add your server