For a project a developer sent us a .js file with code similar to this:  var myList = [1,2,3]; var a,b,c;  [a,b,c] = myList;   It works in Opera 10.30, Firefox 3.6.x but it's not ok for Opera 10.60 and Chrome.  It's just curiosity, do you h...
So the old JavaScript aficionado and the young jQuery wizard in me are having a little disagreement. Sorry for the long setup, but the heart of the issue is whether to embed onClick code directly in my HTML or to go jQuery-style and and use bind() or...
I'm pretty familiar I guess with both Zend and PEAR PHP coding standards, and from my previous two employers no TAB characters were allowed in the code base, claiming it might be misinterpreted by the build script or something (something like th...
From searching SO, this question was already asked, almost a year ago now.  So now with the new FF, Opera, IE, is it finally time to start developing sites with HTML5 or is it still a little premature and will cause compatibility issues?   Is using...
It is mentionned on the ECMAScript standard here that :     ... These features are not considered part of the core ECMAScript   language. Programmers should not use or assume the existence of these   features and behaviours when writing new ECMAScrip...
Because of a "religious war" at my current work place I have decided to research the history of the ASI feature of javascript.  But I am having trouble finding out why and when ASI was introduced to javascript.  It seems like it has been a fe...
I have the following function in JavaScript and when running it through JSLint, it yelled at me, as I call it.  function getPos(event, element) {     var x = event.clientX,         y = event.clientY,         currentElement = element;      do {...
Having this JS code:  document.getElementById('e1').addEventListener('click', function(){alert('1');}, false); document.getElementById('e2').addEventListener('click', function(){alert('2');}, false); do...
Years ago I used to design with JavaScript disabled browsers in mind. How important is it nowadays?  Is it really something you need to worry about?  I've never come across a user in real life who has JavaScript disabled.  Anyone got any figures?...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.