Showing posts with label HTMX. Show all posts
Showing posts with label HTMX. Show all posts
Monday, September 26, 2022
HTMX: Events and Triggers - Django CRUD, part 5
Refreshing dependent fragments with data is a very common use case in enterprise applications. In this example, data is changed in editable form. If data is saved to DB successfully through Django backend, we raise HTMX event and with HTMX trigger refresh dependent readonly table to display the latest data.
Wednesday, September 21, 2022
HTMX: Saving Form Changes - Django CRUD, part 4
I explain how to run POST request through HTMX attribute on HTML form tag to save form changes to the backend. You will see how to report validation errors through HTMX response.
Sunday, September 11, 2022
HTMX: Fetch Edit Form Data - Django CRUD, part 3
HTMX makes it possible to call the backend from HTML without JavaScript. You can add HTMX attribute to HTML tag, for example, button, and call backend endpoint. HTMX can process HTML fragment response and inject it into the Web page. This allows achieving partial page refresh, without full page reload.
Saturday, August 6, 2022
The old old coolness - HTMX | Execute HTTP request directly from HTML tag
Developing a modern Web app with Django and Tailwind? Thinking of using React, Vue, or another fancy JS library for UI implementation? I would recommend spending some time and trying HTMX. With HTMX you can execute partial requests and return HTML content to replace web page regions. HTMX properties are defined directly on HTML tags, this makes it easy to use and flexible.
Subscribe to:
Comments (Atom)