4 ms·
Really interesting and actionable, thanks for the information and for the example code! I don't have any web development expertise, and it's not where my inter
by codyd51 3y ago
Really interesting and actionable, thanks for the information and for the example code!
I don't have any web development expertise, and it's not where my interests lie, so I've been following a "google it and move on as quickly as possible" approach. That said, since I'm now making web tools, I do have an intellectual responsibility to learn the platform. I reached for jQuery just because I had a vague sense that it was a "web development thing", and didn't bother to learn the fundamentals of what exactly it was bridging, and whether those bridges were still relevant in today's browser landscape. I appreciate the callout, and will use it as an opportunity to learn more about the web platform.
Like you realised, I thought JavaScript was appropriate because I wanted to ensure that the user wouldn't be navigated to a new page when they submitted the form. I appreciate the quite tidy approach you've shared that achieves this when JS is available, and still does something reasonable when it's not!
- meheleventyone 3y agoYou might like HTMX which essentially does the above with some declarative tags and a small JS library. It’s surprisingly powerful.