this post was submitted on 12 Feb 2026
17 points (60.2% liked)

JavaScript

2661 readers
15 users here now

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] SpaceNoodle@lemmy.world 36 points 2 days ago* (last edited 2 days ago) (1 children)

I remember when webservers served content, and didn't just pass me megabytes of bloated spaghetti and say "here, YOU run this."

[–] kalkulat@lemmy.world -4 points 2 days ago (2 children)

Static pages are fine if you don't want to interact with them. Books have been around since the 1400s.

But they won't let you search a whole book for particular name, place, term. Or take your input and calculate answers for you? Or let you create music or art? etc. etc.

[–] fushuan@lemmy.blahaj.zone 10 points 2 days ago* (last edited 2 days ago) (1 children)

You don't need that to search. In fact, you send the search query and get the response back.

Yes, they let you search the term, it's called asking the librarian to tell you which page.

Forms that send a post request to the server and the server serves you the page with the answer is how it works. Ajax is cool, sure, but don't tell us lies, or don't talk with confidence without knowing.

[–] RaphaelSchmitz@feddit.org 1 points 2 hours ago (1 children)

You ask the librarian how often the word "arrow" is in Lord of the Rings, and they have to tell you?

[–] mech@feddit.org 1 points 2 hours ago

Not sure what your point is, but that functionality could be built into a website without running any code clientside.

[–] SpaceNoodle@lemmy.world 9 points 2 days ago (1 children)

Y'all forget about forms? And, uh, programs?

[–] Droechai@piefed.blahaj.zone 2 points 2 days ago

I remember doing indexes in html with hyperlinks