Andy E

United Kingdom

whattheheadsaid.com

Age: 31

I'm mainly a JavaScript coder, with some experience in other languages.

If I helped you a lot, dontations are welcome via GitTip, but just a thanks, an up vote or the green check is enough :-)

2d
awarded Great Answer
Jan
28
revised Raise 10 to a power in javascript, are there better ways than this
added 18 characters in body
Jan
27
awarded Nice Answer
Jan
26
comment How to add maxlength for HTML5 input type="number" element?
@Pacerier: did something in my answer imply that I thought otherwise? As you can see, I offered the closest possible solution that can be achieved using only HTML, along with an additional suggestion that uses JavaScript where the OP might have wanted to prevent the user typing more characters than permitted.
Jan
23
comment REGEX: Splitting by commas that are not in single quotes, allowing for escaped quotes
@greggles: I'm not aware of any interpretations of CSV that allow single quotes as a string enclosure. It's not in RFC 4180 either, but PHP does let you set the enclosure to single quotes according to the docs.
Jan
20
comment Detect model of iOS device using Javascript or HTML?
Thanks, but this isn't really helpful. Detecting iOS is easy, detecting iPhone or iPad is easy too. Differentiating between the iPhone 5 and iPhone 6 is the real problem because pages displayed in a UIWebView may report incorrect screen dimensions.
Jan
20
comment How do I find out command line arguments of a running program?
@Pacerier: I'm not sure to be honest ;-) I think it came from digging around the WMI docs and playing around because I needed to use WMI for something at the time.
Jan
19
answered How to reload select tag options at the onClick event in Javascript?
Jan
18
awarded Guru
Jan
17
revised Javascript IN operator compatibility
deleted 112 characters in body
Jan
16
awarded Notable Question
Jan
15
awarded Enlightened
Jan
14
revised How can I move a div smoothly, without using .animate()?
edited title
Jan
14
awarded Notable Question
Jan
13
awarded Notable Question
Jan
10
awarded Good Answer
Jan
2
revised How to tell if a DOM element is visible in the current viewport?
Simplified code since Fx 9.0 added support for contains()
Dec
31
answered programmatic steps in chrome console in debugging mode
Dec
31
comment How to get value of Paragraph element contained in <div> in HTML using JavaScript
I will, purely on the JavaScript code in his example, but either one of us could be right and it's certainly not worth debating so I'll say no more about it ;-)
Dec
31
comment How to get value of Paragraph element contained in <div> in HTML using JavaScript
or just querySelector if you're accessing the first returned element anyway.
1 2 3 4 5