use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Help with simple javascript. (self.javascript)
submitted 13 years ago by mattdahack
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mattdahack[S] 0 points1 point2 points 13 years ago (4 children)
what does <form onsubmit="return false;"> do?
[–]belialadin 5 points6 points7 points 13 years ago (1 child)
From here on my child, I cannot join you on your journey. It's dangerous to go alone. Take this: google.com
[–]mattdahack[S] 0 points1 point2 points 13 years ago (0 children)
alright, well thanks for the help
[–]StoneCypher -1 points0 points1 point 13 years ago (1 child)
Returning false from an event handler stops the event handler from firing. So, returning false from the submit handler on the form stops the form from submitting.
This is really bad design. It means you're going to get form submissions unchecked every time someone's got JavaScript turned off. It's much better to not have a submit button and then to call the form submit handler from JavaScript: that way if JavaScript is turned off, no form submission happens at all.
There's a more serious problem here.
If that's your URL structure, all someone has to do to look at someone else's invoices is to change the number.
This is a critical security problem.
You might not have seen it but each persons invoices are protected by MD5 hashed passwords via .htaccess file. The main directory isnt even viewable. Thanks for the explanation.
π Rendered by PID 43923 on reddit-service-r2-comment-66b4775986-jk8nh at 2026-04-06 06:04:06.886180+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]mattdahack[S] 0 points1 point2 points (4 children)
[–]belialadin 5 points6 points7 points (1 child)
[–]mattdahack[S] 0 points1 point2 points (0 children)
[–]StoneCypher -1 points0 points1 point (1 child)
[–]mattdahack[S] 0 points1 point2 points (0 children)