liveBook · Manning

Hx-get attribute

The hx-get attribute configures HTMX to issue an HTTP GET request to a specified URL when its element is triggered.

How 2 Manning books explain it

Django in Action

hx-get is an HTMX attribute that initiates an HTTP GET request when its attached HTML element is interacted with.

How it is used
Drives partial-page updates for lazy loading, live search, infinite scroll, and click-to-edit interactions.
How deep it goes
Explains request triggers, target replacement, Django partial views, and HTMX-aware full-page fallback behavior.
Examples
Demonstrates promoter lazy loading, musician search with infinite scroll, and inline venue-room editing.
What you can do after
Apply it via HTMX and Django views to fetch HTML partials and update targeted page regions without full reloads.

Read how Django in Action explains hx-get attribute →

Quarkus in Action

The hx-get attribute configures HTMX to submit an HTTP GET request to a specified endpoint.

How it is used
Updates a reservation page’s available-cars table without replacing the whole page.
How deep it goes
Shows form and load-triggered GET requests, included parameters, and response targeting; stops short of HTMX internals.
Examples
Uses date inputs to request available cars and a container that refreshes on load or after a reservation.
What you can do after
Apply it via HTMX to request rendered HTML and update a chosen page element.

Read how Quarkus in Action explains hx-get attribute →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.