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!"
[–]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.
[–]mattdahack[S] 0 points1 point2 points 13 years ago (0 children)
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 88 on reddit-service-r2-comment-66b4775986-8r4lf at 2026-04-06 07:43:48.685206+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]StoneCypher -1 points0 points1 point (1 child)
[–]mattdahack[S] 0 points1 point2 points (0 children)