jquery Programming Glossary: imo
What's the difference in the :not() selector between jQuery and CSS? http://stackoverflow.com/questions/10711730/whats-the-difference-in-the-not-selector-between-jquery-and-css hand here. That shouldn't be much of a problem though IMO as you should rarely ever need to use combinators within the..
How can I give control back (briefly) to the browser during intensive JavaScript processing? http://stackoverflow.com/questions/210821/how-can-i-give-control-back-briefly-to-the-browser-during-intensive-javascript isn't usually that useful when iterating over things IMO. I am sure there are still things that could be done to make..
How to set the image src using jQuery http://stackoverflow.com/questions/2183347/how-to-set-the-image-src-using-jquery jquery image src share improve this question IMO slice is more appropriate than substring or replace . Try this..
Easiest way to convert json data into objects with methods attached? http://stackoverflow.com/questions/2838219/easiest-way-to-convert-json-data-into-objects-with-methods-attached it's not desirable. Apart from appearing slightly hacky IMO you're attaching methods to each instance of your fruit and..
Firebug: “The 'charCode' property of a keyup event should not be used. The value is meaningless.” http://stackoverflow.com/questions/3568106/firebug-the-charcode-property-of-a-keyup-event-should-not-be-used-the-value jQuery keyup keydown handlers will spit endless warnings. IMO jQuery should not bother copy this property. In the only case..
Allowing javascript function to accept any number of arguments http://stackoverflow.com/questions/3583044/allowing-javascript-function-to-accept-any-number-of-arguments want plus they're named making this much more maintainable IMO. Here's an edited version of the plugin to demonstrate this..
How to eliminate post-render “flicker”? http://stackoverflow.com/questions/463670/how-to-eliminate-post-render-flicker other display styles. But this solution is nice and clean IMO and in my tests entirely eliminates the flicker effect. javascript..
livequery performance http://stackoverflow.com/questions/4818020/livequery-performance selectors provided per event type. A better alternative IMO to both of those is the delegate docs method which uses event..
jQuery Upload Progress and AJAX file upload http://stackoverflow.com/questions/4856917/jquery-upload-progress-and-ajax-file-upload is typeof Blob http www.w3.org TR FileAPI Another better IMO way is to use FormData . This allows you to 1 name a file like..
jquery .live('click') vs .click() http://stackoverflow.com/questions/4944293/jquery-liveclick-vs-click are both deprecated . You can perform both with .on which IMO is a much clearer syntax. To replace bind selector .on 'click'..
Get element width in px http://stackoverflow.com/questions/5525049/get-element-width-in-px is not really possible or logically understandable IMO . I made a little demo and for me it outputs the width in pixels..
API design and jQuery http://stackoverflow.com/questions/6063874/api-design-and-jquery The distinction from properties should have been immediate IMO. .map key val but .map val key and the this values are different... standard selectors ought to have been kept out of Sizzle IMO. Javascript based selector engines should become obsolete in.. jQuery runs its own width and height methods instead. IMO the spec attributes should have been given priority especially..
How to prevent page scrolling when scrolling a DIV element? http://stackoverflow.com/questions/7600454/how-to-prevent-page-scrolling-when-scrolling-a-div-element by setting its .scrollTop property . An alternative and IMO better approach would be to only selectively disable the browser's..
Backbone js: How to remove extra tag in view? http://stackoverflow.com/questions/7663895/backbone-js-how-to-remove-extra-tag-in-view
Learning jQuery and Getting Better at Javascript http://stackoverflow.com/questions/787271/learning-jquery-and-getting-better-at-javascript I would recommend would be JQuery in Action its the best IMO and recently I found a link that makes the first chapter free..
What's the difference in the :not() selector between jQuery and CSS? http://stackoverflow.com/questions/10711730/whats-the-difference-in-the-not-selector-between-jquery-and-css not as of this writing so jQuery still has kind of the upper hand here. That shouldn't be much of a problem though IMO as you should rarely ever need to use combinators within the not selector but that's just my take on it . 2 1 Although this..
How can I give control back (briefly) to the browser during intensive JavaScript processing? http://stackoverflow.com/questions/210821/how-can-i-give-control-back-briefly-to-the-browser-during-intensive-javascript it a bit cleaner since the index of the current object really isn't usually that useful when iterating over things IMO. I am sure there are still things that could be done to make this even better but that is left as an exercise for the reader...
How to set the image src using jQuery http://stackoverflow.com/questions/2183347/how-to-set-the-image-src-using-jquery or else i will accept the slice solution straight away. javascript jquery image src share improve this question IMO slice is more appropriate than substring or replace . Try this jQuery #imageID .attr 'src' jQuery #imageBlock .css 'background..
Easiest way to convert json data into objects with methods attached? http://stackoverflow.com/questions/2838219/easiest-way-to-convert-json-data-into-objects-with-methods-attached jquery share improve this question Yes it would work but it's not desirable. Apart from appearing slightly hacky IMO you're attaching methods to each instance of your fruit and seeds where you should instead be using the prototype chain...
Firebug: “The 'charCode' property of a keyup event should not be used. The value is meaningless.” http://stackoverflow.com/questions/3568106/firebug-the-charcode-property-of-a-keyup-event-should-not-be-used-the-value anything with it. Consequently any page you create with jQuery keyup keydown handlers will spit endless warnings. IMO jQuery should not bother copy this property. In the only case you actually want to use it code keypress ”you can just use..
Allowing javascript function to accept any number of arguments http://stackoverflow.com/questions/3583044/allowing-javascript-function-to-accept-any-number-of-arguments
How to eliminate post-render “flicker”? http://stackoverflow.com/questions/463670/how-to-eliminate-post-render-flicker you may need different variations on the third line for other display styles. But this solution is nice and clean IMO and in my tests entirely eliminates the flicker effect. javascript jquery html ajax dom share improve this question ..
livequery performance http://stackoverflow.com/questions/4818020/livequery-performance to process all events on the page to see if they match the selectors provided per event type. A better alternative IMO to both of those is the delegate docs method which uses event delegation just like .live but lets you constrain it to a..
jQuery Upload Progress and AJAX file upload http://stackoverflow.com/questions/4856917/jquery-upload-progress-and-ajax-file-upload what it comes down to is this xhr.send file Where file is typeof Blob http www.w3.org TR FileAPI Another better IMO way is to use FormData . This allows you to 1 name a file like in a form and 2 send other stuff files too like in a form...
jquery .live('click') vs .click() http://stackoverflow.com/questions/4944293/jquery-liveclick-vs-click still looking at it. I should point out that live and bind are both deprecated . You can perform both with .on which IMO is a much clearer syntax. To replace bind selector .on 'click' function ... and to replace live document .on 'click' selector..
Get element width in px http://stackoverflow.com/questions/5525049/get-element-width-in-px using an id not a class as getting the width of two elements is not really possible or logically understandable IMO . I made a little demo and for me it outputs the width in pixels for a single span element with a width of 100 for me it..
API design and jQuery http://stackoverflow.com/questions/6063874/api-design-and-jquery of the jQuery function perhaps. the .attr you mentioned. The distinction from properties should have been immediate IMO. .map key val but .map val key and the this values are different. non standard selectors ought to have been kept out of.. val but .map val key and the this values are different. non standard selectors ought to have been kept out of Sizzle IMO. Javascript based selector engines should become obsolete in a number of years and people hooked on the proprietary selectors.. attributes via the props argument when creating a new element. jQuery runs its own width and height methods instead. IMO the spec attributes should have been given priority especially since width and height can be set via css . ' img ' css width..
How to prevent page scrolling when scrolling a DIV element? http://stackoverflow.com/questions/7600454/how-to-prevent-page-scrolling-when-scrolling-a-div-element the DIV and then manually scrolling the DIV with JavaScript by setting its .scrollTop property . An alternative and IMO better approach would be to only selectively disable the browser's scrolling in order to prevent the page scroll but not..
Backbone js: How to remove extra tag in view? http://stackoverflow.com/questions/7663895/backbone-js-how-to-remove-extra-tag-in-view
Learning jQuery and Getting Better at Javascript http://stackoverflow.com/questions/787271/learning-jquery-and-getting-better-at-javascript and from there you can learn its libraries like jQuery. Book I would recommend would be JQuery in Action its the best IMO and recently I found a link that makes the first chapter free online just to give you a little taste. Trust me worth the..
|