This book looks at using the htmx JavaScript library to add logic and server interaction to HTML. Mark Volkmann shows how it provides the effect of using a front-end SPA framework without writing front-end code, and lets developers use any server-side programming language and framework to build server applications with endpoints that simply return snippets of HTML.
The book looks at how to dynamically update portions of the current web page from HTTP responses, and add interactivity with JavaScript and libraries such Alpine and _hyperscript.
Author: Mark Volkmann Publisher: Pragmatic Bookshelf Date: September 2024 Pages: 186 ISBN: 978-8888650769 Print: B0D9N35GKP Kindle: B0DGZL98ZQ Audience: JavaScript Web developers Level: Intermediate Category: Web design and development

Topics include:
- Rethink web application design; write code in any language that simply responds to requests with htmx snippets.
- Dynamically update portions of the current web page directly from the server.
- Implement common patterns such as lazy loading, input validation, CSS transitions, active search, optimistic updates, pagination, infinite scroll, polling, and click-to-edit.
- Add interactivity with JavaScript and libraries such as Alpine and _hyperscript.
- Use the htmx JavaScript API to simplify DOM operations.
- Make your web apps more secure: escape user-supplied content, use Subresource Integrity hashes, and enforce a Content Security Policy.
- Go beyond the basic HTTP request/response pattern with WebSockets and server-sent events.
For recommendations of books on web development see Web Design And Development - Top Pick CSS And HTML Books and Web Design And Development - More Books in our Programmer's Bookshelf section.
For more Book Watch just click.
Book Watch is I Programmer's listing of new books and is compiled using publishers' publicity material. It is not to be read as a review where we provide an independent assessment. Some, but by no means all, of the books in Book Watch are eventually reviewed.
To have new titles included in Book Watch contact BookWatch@i-programmer.info
Follow @bookwatchiprog on Twitter or subscribe to I Programmer's Books RSS feed for each day's new addition to Book Watch and for new reviews.
Code: The Hidden Language of Computer Hardware and Software 2nd Ed
Top Book 2023 Author: Charles Petzold Publisher: Microsoft Press Date: August 2022 Pages: 480 ISBN: 978-0137909100 Print: 0137909101 Kindle: B0B123P5GV Audience: General Rating: 5 Reviewer: Mike James Code! We all need to know about it.
|
Machines Like Me
Author: Ian McEwan Publisher: Vintage, 2019 Pages: 304 ISBN: 978-1529111255 Print: 1529111250 Kindle: B07HR6SGQ9 Audience: General Rating: 4.5 Reviewer: Mike James A novel about a synthetic human has become so much more relevant recently and guess what - it features Alan Turing.
| More Reviews |
|