Andy E

United Kingdom

whattheheadsaid.com

Age: 31

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

Mar
2
answered Empty files uploaded in Android Native browser
Feb
24
comment How can I highlight the line of text that is closest to the mouse?
@Alex: the example I wrote was merely a proof of concept, there should be no reason why it couldn't be adapted to account for scroll offset.
Feb
23
comment What does jQuery.fn mean?
@slier: yes, pretty much.
Feb
20
awarded Yearling
Feb
16
revised Javascript regex, replace all characters other than numbers
added 1 character in body
Feb
14
awarded Notable Question
Feb
10
awarded Generalist
Feb
5
comment Unique identifier for HTML elements
@risto I think the main problem is that the DOM is rarely completely static and predictable from the root to the target element. Any changes to the DOM render your previously-gotten xpath useless and it's safer to just rely on class names, unique IDs or using selectors relative to elements with those attributes.
Feb
2
awarded Enlightened
Feb
2
awarded Nice Answer
Feb
1
awarded Popular Question
Jan
29
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
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
1 2 3 4 5