99
you are viewing a single comment's thread
view the rest of the comments
[-] lupec@lemm.ee 39 points 5 months ago* (last edited 5 months ago)

As a web developer of questionable frontend skills, it kinda looks like something you'd do as a band-aid solution if you had no idea how forms work or how to suppress their default events, which do happen to include the enter key being pressed. Really wild to go about it that route, whatever the intention was lol.

Edit: While typing my other response down this comment thread, I realized for this to happen the developer must have actually suppressed the event correctly so it's even weirder they chose to handle it like this

[-] lurch@sh.itjust.works 11 points 5 months ago

This is what happens, if someone angers the web dev 😜

Probanly didn't get paid or contradicting instructions.

[-] lemann@lemmy.dbzer0.com 10 points 5 months ago

Edit: While typing my other response down this comment thread, I realized for this to happen the developer must have actually suppressed the event correctly so it's even weirder they chose to handle it like this

Probably users were submitting the form too early or something, either way I agree this is a bit of an unusual way to handle this lol

[-] imposedsensation@lemmynsfw.com 4 points 5 months ago

How do forms work and how do you suppress their default events?

[-] Fuck_u_spez_@sh.itjust.works 3 points 5 months ago* (last edited 5 months ago)

To be fair, whoever wrote this didn't even know how quotation marks work grammatically.

[-] lupec@lemm.ee 2 points 5 months ago

So a form is basically a group of fields, think name, email and whatnot. By default, whenever you press enter in one of those, the browser takes whatever content is in the fields and follows some steps but the end result is it reloads the entire page. Nowadays that's not what you want 99% of the time but it's still the default behavior, so you have to instruct the browser not to do so by adding a couple lines of code. Whoever programmed this particular website then thought to inform the user that wasn't going to work on top of presumably suppressing the original behavior.

[-] imposedsensation@lemmynsfw.com 4 points 5 months ago

Almost need to spend as much time learning the norms of modern web development as you do learning the syntax and behavior of Javascript.

this post was submitted on 26 Jan 2024
99 points (96.3% liked)

Software Gore

4786 readers
4 users here now

Welcome to /c/SoftwareGore!


This is a community where you can poke fun at nasty software. This community is your go-to destination to look at the most cringe-worthy and facepalm-inducing moments of software gone wrong. Whether it's a user interface that defies all logic, a crash that leaves you in disbelief, silly bugs or glitches that make you go crazy, or an error message that feels like it was written by an unpaid intern, this is the place to see them all!

Remember to read the rules before you make a post or comment!


Community Rules - Click to expand


These rules are subject to change at any time with or without prior notice. (last updated: 7th December 2023 - Introduction of Rule 11 with one sub-rule prohibiting posting of AI content)


  1. This community is a part of the Lemmy.world instance. You must follow its Code of Conduct (https://mastodon.world/about).
  2. Please keep all discussions in English. This makes communication and moderation much easier.
  3. Only post content that's appropriate to this community. Inappropriate posts will be removed.
  4. NSFW content of any kind is not allowed in this community.
  5. Do not create duplicate posts or comments. Such duplicated content will be removed. This also includes spamming.
  6. Do not repost media that has already been posted in the last 30 days. Such reposts will be deleted. Non-original content and reposts from external websites are allowed.
  7. Absolutely no discussion regarding politics are allowed. There are plenty of other places to voice your opinions, but fights regarding your political opinion is the last thing needed in this community.
  8. Keep all discussions civil and lighthearted.
    • Do not promote harmful activities.
    • Don't be a bigot.
    • Hate speech, harassment or discrimination based on one's race, ethnicity, gender, sexuality, religion, beliefs or any other identity is strictly disallowed. Everyone is welcome and encouraged to discuss in this community.
  9. The moderators retain the right to remove any post or comment and ban users/bots that do not necessarily violate these rules if deemed necessary.
  10. At last, use common sense. If you think you shouldn't say something to a person in real life, then don't say it here.
  11. Community specific rules:
    • Posts that contain any AI-related content as the main focus (for example: AI “hallucinations”, repeated words or phrases, different than expected responses, etc.) will be removed. (polled)


You should also check out these awesome communities!


founded 1 year ago
MODERATORS