javascript Programming Glossary: don't
How do JavaScript closures work? http://stackoverflow.com/questions/111102/how-do-javascript-closures-work said If you can't explain it to a six year old you really don't understand it yourself. Well I tried to explain JavaScript closures.. of these will refer to the same x and the same tmp they don't make their own copies. you Fascinating tell me more Here the..
Access / process (nested) objects, arrays or JSON http://stackoverflow.com/questions/11922383/access-process-nested-objects-arrays-or-json 1 .name What if the property names are dynamic and I don't know them beforehand If the property names are unknown or we..
Get escaped URL parameter http://stackoverflow.com/questions/1403888/get-escaped-url-parameter decoded should be æøΓ₯ the characters are Norwegian . I don't have access to the server so I can't modify anything on it...
jQuery Mobile: document ready vs page events http://stackoverflow.com/questions/14468659/jquery-mobile-document-ready-vs-page-events will be bound again. This is best solution because you don't have processing overhead like when removing events with off..
How do I “think in AngularJS” if I have a jQuery background? http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background view. 2. Don't augment jQuery with AngularJS Similarly don't start with the idea that jQuery does X Y and Z so I'll just.. is why I always recommend that new AngularJS developers don't use jQuery at all at least until they get used to doing things.. easy solution then feel free to reach for the jQuery. But don't let jQuery become a crutch or you'll never master AngularJS...
Does it matter which equals operator (== vs ===) I use in JavaScript comparisons? http://stackoverflow.com/questions/359494/does-it-matter-which-equals-operator-vs-i-use-in-javascript-comparisons My advice is to bypass the question entirely and just don't use the String constructor to create string objects. share..
How to parse JSON in JavaScript http://stackoverflow.com/questions/4935632/how-to-parse-json-in-javascript obj JSON.parse json alert obj.count For the browsers that don't you can implement it using json2.js . As noted in the comments..
JavaScript equivalent to printf/string.format http://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format Ajax library provides a version of String.Format but we don't want the entire overhead of that framework. javascript printf..
Why don't self-closing script tags work? http://stackoverflow.com/questions/69913/why-dont-self-closing-script-tags-work don't self closing script tags work What is the reason browsers do..
How can I get query string values in JavaScript? http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript plugins query string share improve this question You don't need jQuery for that purpose. You can use vanilla JavaScript..
Object comparison in JavaScript [duplicate] http://stackoverflow.com/questions/1068834/object-comparison-in-javascript return true if arguments.length 1 return true Die silently Don't know how to handle such case please help... throw Need two or..
jQuery Mobile: Markup Enhancement of dynamically added content http://stackoverflow.com/questions/14550396/jquery-mobile-markup-enhancement-of-dynamically-added-content jQuery Mobile needs to do as less enhancing as possible. Don't enhance whole page if only one component need's to be styled...
How do I “think in AngularJS” if I have a jQuery background? http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background jquery angularjs share improve this question 1. Don't design your page and then change it with DOM manipulations In.. and then finally go about designing your view. 2. Don't augment jQuery with AngularJS Similarly don't start with the.. it to fit right in with ngClick ngClass et al. Summary Don't even use jQuery. Don't even include it. It will hold you back...
Generating random numbers in Javascript in a specific range? http://stackoverflow.com/questions/1527803/generating-random-numbers-in-javascript-in-a-specific-range So in order to find x we would do x Math.random max min Don't forget to add min back so that we get a number in the min max..
JavaScript unit test tools for TDD http://stackoverflow.com/questions/300855/javascript-unit-test-tools-for-tdd Run on multiple clients at once Supports NodeJS testing Don't need to run server clients on development computer no need for.. browsers operating systems Run on multiple clients at once Don't need to run server clients on development computer no need for.. browsers cons Can not break your build through ant maven Don't notice the test fail before commit No IDEplug in http ejohn.org..
Chrome: Disable same origin policy http://stackoverflow.com/questions/3102819/chrome-disable-same-origin-policy browser disable web security From the chromium source Don't enforce the same origin policy. Used by people testing their..
How do I get the name of an object's type in JavaScript? http://stackoverflow.com/questions/332422/how-do-i-get-the-name-of-an-objects-type-in-javascript about how messy things might get depending on your needs. Don't assume anything if you don't understand exactly what you are..
How to execute a JavaScript function when I have its name as a string http://stackoverflow.com/questions/359788/how-to-execute-a-javascript-function-when-i-have-its-name-as-a-string args ... ... javascript share improve this question Don't use eval unless you absolutely positively have no other choice...
What is console.log and how do I use it? [duplicate] http://stackoverflow.com/questions/4743730/what-is-console-log-and-how-do-i-use-it technologies safari developer tools.html Internet Explorer Don't forget you can use compatibility modes to debug IE7 and IE8..
addEventListener vs onclick http://stackoverflow.com/questions/6348494/addeventlistener-vs-onclick and ready to rock element .on 'click' function do stuff Don't run out and get a framework just for this one thing though...
JavaScript query string http://stackoverflow.com/questions/647259/javascript-query-string project query object Edit The link seems to be broken now. Don't know what happened to the plug in. But https github.com sousk..
Best practice: escape, or encodeURI / encodeURIComponent http://stackoverflow.com/questions/75980/best-practice-escape-or-encodeuri-encodeuricomponent query string share improve this question escape Don't use it as it has been deprecated since ECMAScript v3. encodeURI.. to get http www.google.com a 20file 20with 20spaces.html Don't call encodeURIComponent since it would destroy the URL and return..
|