sfba.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for the San Francisco Bay Area. Come on in and join us!

Server stats:

2.3K
active users

#htmx

7 posts6 participants1 post today
Aral Balkan<p>New Kitten release 🎉</p><p><a href="https://kitten.small-web.org" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">kitten.small-web.org</span><span class="invisible"></span></a></p><p>• New: Lovely new icons¹ and new callouts in Kitten Settings²</p><p>• New: Markdown now supports attributes and bracketed spans³</p><p>• New: client-side `kitten` global with `trigger` function for triggering events on the server from the client. (Useful when streaming client-side JavaScript when using Kitten’s Streaming HTML⁴ workflow. e.g., when you have to use a client-only web API like the Clipboard API but you want to keep all your logic on your server-side page.⁵)</p><p>• Fixed: The bound render function returned by `KittenComponent` class’s `component` getter now correctly awaits asynchronous templates. (In Kitten, you don’t have to care whether your templates contain promises. Kitten handles all that for you.)</p><p>Enjoy! :kitten:💕</p><p>¹ <a href="https://kitten.small-web.org/reference/#icons" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">kitten.small-web.org/reference</span><span class="invisible">/#icons</span></a></p><p>² <a href="https://mastodon.ar.al/@aral/114381983893061099" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">mastodon.ar.al/@aral/114381983</span><span class="invisible">893061099</span></a></p><p>³ <a href="https://kitten.small-web.org/reference/#markdown-support" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">kitten.small-web.org/reference</span><span class="invisible">/#markdown-support</span></a> (also see <a href="https://mastodon.ar.al/@aral/114381462302862256" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">mastodon.ar.al/@aral/114381462</span><span class="invisible">302862256</span></a>)</p><p>⁴ <a href="https://kitten.small-web.org/tutorials/streaming-html/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">kitten.small-web.org/tutorials</span><span class="invisible">/streaming-html/</span></a></p><p>⁵ e.g., See how I use this to implement a copy to clipboard button in the database page of Kitten’s Settings: <a href="https://codeberg.org/kitten/app/src/branch/main/web/%F0%9F%90%B1/settings%F0%9F%94%92/db/index.page.js#L33" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/kitten/app/src/br</span><span class="invisible">anch/main/web/%F0%9F%90%B1/settings%F0%9F%94%92/db/index.page.js#L33</span></a> Of course, you don’t have to use this and you can just write client-side JavaScript or use the built-in Alpine.js integration. e.g., how I do it on the (older) settings/identity page: <a href="https://codeberg.org/kitten/app/src/branch/main/web/%F0%9F%90%B1/settings%F0%9F%94%92/identity/index.page.js#L7" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/kitten/app/src/br</span><span class="invisible">anch/main/web/%F0%9F%90%B1/settings%F0%9F%94%92/identity/index.page.js#L7</span></a></p><p><a href="https://mastodon.ar.al/tags/Kitten" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Kitten</span></a> <a href="https://mastodon.ar.al/tags/SmallWeb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SmallWeb</span></a> <a href="https://mastodon.ar.al/tags/web" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>web</span></a> <a href="https://mastodon.ar.al/tags/dev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dev</span></a> <a href="https://mastodon.ar.al/tags/markdown" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>markdown</span></a> <a href="https://mastodon.ar.al/tags/icons" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>icons</span></a> <a href="https://mastodon.ar.al/tags/PhosphorIcons" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PhosphorIcons</span></a> <a href="https://mastodon.ar.al/tags/HTML" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTML</span></a> <a href="https://mastodon.ar.al/tags/CSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS</span></a> <a href="https://mastodon.ar.al/tags/JavaScript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>JavaScript</span></a> <a href="https://mastodon.ar.al/tags/StreamingHTML" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>StreamingHTML</span></a> <a href="https://mastodon.ar.al/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://mastodon.ar.al/tags/WebSocket" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebSocket</span></a> <a href="https://mastodon.ar.al/tags/NodeJS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NodeJS</span></a></p>
Scott Galloway<p>New blog post:<br>Using SweetAlert2Alert2 loading indicator for HTMX indicators<br>How to replace hx-indicator behaviour with the nice Sweet<br><a href="https://www.mostlylucid.net/blog/usingsweetalertforhxindicators" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">mostlylucid.net/blog/usingswee</span><span class="invisible">talertforhxindicators</span></a><br><a href="https://hachyderm.io/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://hachyderm.io/tags/sweetalert2" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sweetalert2</span></a></p>
Marc<p>Quick <a href="https://mamot.fr/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> question: I want to hx-disabled-elt to disable a form when in flight. targeting "this" doesn't work, each inputs/buttons/etc must be targeted directly. Currently I have hx-disabled-elt="find input, find textarea" but only the first input is disabled (as described by the documentation I must say). Thing is I have 4 inputs I want to disable in this form, do I really have to target each of them individually or is there a trick to disable them all at once? Edit: Yes: with a fieldset X)</p>
dazfuller :rickwhoah:<p>Okay, some more progress with the <a href="https://mstdn.social/tags/HTMX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTMX</span></a> app this morning.</p><p>Implemented the middleware to handle <a href="https://mstdn.social/tags/Azure" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Azure</span></a> Entra based authentication, so the app is now secure. Only one issue is that the token it produces has an invalid key, so need to figure that out at some point. But I can get my claims and I need to be authentication to access. So it's good for now.</p>
dazfuller :rickwhoah:<p>Had a go at rewriting a small <a href="https://mstdn.social/tags/DotNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DotNet</span></a> Blazor app into a <a href="https://mstdn.social/tags/GoLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>GoLang</span></a> web app with <a href="https://mstdn.social/tags/HTMX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTMX</span></a> yesterday so I could learn.</p><p>Had to rethink some of the way it’s put together to make it a bit smoother an experience, but it went really well and works really nicely. Going to keep on it so I have it feature complete with logging and auth</p>
Jason Punyon<p>added some more examples to <a href="https://htmx-local.glitch.me" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">htmx-local.glitch.me</span><span class="invisible"></span></a> <a href="https://fosstodon.org/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a></p>
Adam Johnson :django: :python:<p><a href="https://fosstodon.org/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> tip:</p><p>Use htmx.logAll() to log all htmx events to the console. Great for debugging which events are triggering or not!</p>
Webdev Weekly<p>Datastar: Web Framework for the Future?</p><p><a href="https://chrismalek.me/posts/data-star-first-impressions/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">chrismalek.me/posts/data-star-</span><span class="invisible">first-impressions/</span></a></p><p>Discussions: <a href="https://discu.eu/q/https://chrismalek.me/posts/data-star-first-impressions/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discu.eu/q/https://chrismalek.</span><span class="invisible">me/posts/data-star-first-impressions/</span></a></p><p><a href="https://mastodon.social/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a></p>
Scott Galloway<p>New blog article</p><p>Showing Toast and Swapping Content with HTMX (And ASP.NET Core)</p><p><a href="https://hachyderm.io/tags/aspnetcore" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>aspnetcore</span></a> <a href="https://hachyderm.io/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://hachyderm.io/tags/aspnet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>aspnet</span></a></p><p><a href="https://www.mostlylucid.net/blog/showingtoastandswappingwithhtmx" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">mostlylucid.net/blog/showingto</span><span class="invisible">astandswappingwithhtmx</span></a></p>
Isaac Levin<p>Discover how to integrate htmx with ASP.NET Razor Pages to add interactivity to your web applications. This guide simplifies the process, making it accessible for all developers. <a href="https://fosstodon.org/tags/ASPNet" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ASPNet</span></a> <a href="https://fosstodon.org/tags/WebDevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDevelopment</span></a> <a href="https://fosstodon.org/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> </p><p> <a href="https://isaacl.dev/gg5" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">isaacl.dev/gg5</span><span class="invisible"></span></a></p>
Nicolas Delsaux<p>Un exemple complet et assez propre de ce qu'on peut faire avec Spring Boot et htmx <a href="https://dimitri.codes/spring-boot-htmx-intro/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">dimitri.codes/spring-boot-htmx</span><span class="invisible">-intro/</span></a> <a href="https://framapiaf.org/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://framapiaf.org/tags/tutorial" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tutorial</span></a> <a href="https://framapiaf.org/tags/spring" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>spring</span></a> <a href="https://framapiaf.org/tags/boot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>boot</span></a></p>
Abishek Muthian<p>HTMX and Hyperscript has made web development fun again for me. Wanted to refactor the JSON input for countries, plan id etc. with select fields and validation in <a href="https://openpaymenthost.com" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">openpaymenthost.com</span><span class="invisible"></span></a> (FOSS payments host); I got it done without React or having to write JavaScript.</p><p>Thanks to u/Trick_Ad_3234 on r/htmx for improving my hyperscript.</p><p><a href="https://fosstodon.org/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://fosstodon.org/tags/hyperscript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>hyperscript</span></a> <a href="https://fosstodon.org/tags/buildinpublic" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>buildinpublic</span></a> <a href="https://fosstodon.org/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a></p>
Marc<p>I'm trying to write a not so complicated form with <a href="https://mamot.fr/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a> <a href="https://mamot.fr/tags/askama" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>askama</span></a> and <a href="https://mamot.fr/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> and I'm having a brain fart: at this point I don't even know if I'm fighting askama or htmx 😂 and I don't know where I can ask a question at the intersection of these two kinda "fringe" technologies... 😬 (nothing wrong with either of them, it's a me problem)</p>
caio<p>Would it be possible to "toggle" requests with <a href="https://floss.social/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a>? Like, first click makes the request, second one doesn't, third one makes a new request and so on... 🤔 </p><p><a href="https://floss.social/tags/lazyweb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lazyweb</span></a> <a href="https://floss.social/tags/lazydev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lazydev</span></a></p>
Gonçalo Valério<p>"Less htmx is More"</p><p><a href="https://unplannedobsolescence.com/blog/less-htmx-is-more/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">unplannedobsolescence.com/blog</span><span class="invisible">/less-htmx-is-more/</span></a></p><p><a href="https://s.ovalerio.net/tags/html" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>html</span></a> <a href="https://s.ovalerio.net/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://s.ovalerio.net/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://s.ovalerio.net/tags/http" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>http</span></a></p>
Webdev Weekly<p>Less Htmx Is More</p><p><a href="https://unplannedobsolescence.com/blog/less-htmx-is-more/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">unplannedobsolescence.com/blog</span><span class="invisible">/less-htmx-is-more/</span></a></p><p>Discussions: <a href="https://discu.eu/q/https://unplannedobsolescence.com/blog/less-htmx-is-more/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discu.eu/q/https://unplannedob</span><span class="invisible">solescence.com/blog/less-htmx-is-more/</span></a></p><p><a href="https://mastodon.social/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>javascript</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a></p>
Chris Woody Woodruff<p>Server-driven web apps are making a comeback—and htmx with ASP.NET Razor Pages is leading the charge. Less JS, more speed, and a whole lot simpler. The future looks familiar (in a good way): <a href="https://woodruff.dev/the-future-of-server-driven-web-apps-why-htmx-and-asp-net-are-just-getting-started/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">woodruff.dev/the-future-of-ser</span><span class="invisible">ver-driven-web-apps-why-htmx-and-asp-net-are-just-getting-started/</span></a></p><p><a href="https://mastodon.social/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://mastodon.social/tags/ASPNETCore" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ASPNETCore</span></a> <a href="https://mastodon.social/tags/RazorPages" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RazorPages</span></a> <a href="https://mastodon.social/tags/WebDevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDevelopment</span></a> <a href="https://mastodon.social/tags/ServerDriven" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ServerDriven</span></a> <a href="https://mastodon.social/tags/FutureOfWeb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FutureOfWeb</span></a></p>
Matt Layman<p>🐍 On this Building SaaS with <a href="https://mastodon.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> and <a href="https://mastodon.social/tags/Django" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Django</span></a>, we did some template work to build a UI for the bulk task delete feature. With a bit of <a href="https://mastodon.social/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a>, we added a confirmation step to the deletion process. <a href="https://www.youtube.com/watch?v=7bTihRro5Q0" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">youtube.com/watch?v=7bTihRro5Q0</span><span class="invisible"></span></a></p>
Chris Woody Woodruff<p>htmx makes Razor Pages more interactive—but don’t skip the security checklist. From CSRF protection to request validation, here’s how to keep your htmx apps locked down: <a href="https://woodruff.dev/keeping-your-htmx-apps-safe-security-best-practices-for-asp-net-developers/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">woodruff.dev/keeping-your-htmx</span><span class="invisible">-apps-safe-security-best-practices-for-asp-net-developers/</span></a></p><p><a href="https://mastodon.social/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://mastodon.social/tags/ASPNETCore" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ASPNETCore</span></a> <a href="https://mastodon.social/tags/RazorPages" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RazorPages</span></a> <a href="https://mastodon.social/tags/WebSecurity" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebSecurity</span></a> <a href="https://mastodon.social/tags/DevTips" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DevTips</span></a> <a href="https://mastodon.social/tags/SecureCoding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SecureCoding</span></a></p>
Chris Woody Woodruff<p>Is htmx acting up in your Razor Pages app? Don’t panic—just debug it like a boss. From browser tools to smart logging, here are some tips to make debugging way less painful: <a href="https://woodruff.dev/debugging-htmx-in-asp-net-razor-pages-tips-tricks-and-tools/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">woodruff.dev/debugging-htmx-in</span><span class="invisible">-asp-net-razor-pages-tips-tricks-and-tools/</span></a></p><p><a href="https://mastodon.social/tags/htmx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>htmx</span></a> <a href="https://mastodon.social/tags/ASPNETCore" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ASPNETCore</span></a> <a href="https://mastodon.social/tags/RazorPages" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RazorPages</span></a> <a href="https://mastodon.social/tags/WebDevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDevelopment</span></a> <a href="https://mastodon.social/tags/DebuggingTips" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DebuggingTips</span></a></p>