<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d8211560\x26blogName\x3dTech+Tips,+Tricks+%26+Trivia\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://mvark.blogspot.com/search\x26blogLocale\x3den\x26v\x3d2\x26homepageUrl\x3dhttp://mvark.blogspot.com/\x26vt\x3d-5147029996388199615', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tech Tips, Tricks & Trivia

by 'Anil' Radhakrishna
An architect's notes, experiments, discoveries and annotated bookmarks.

Search from over a hundred HOW TO articles, Tips and Tricks


Dig deeper into jQuery with "jQuery Succinctly"


jQuery Succinctly by Cody Lindley is an ebook that Syncfusion is offering as a free download (requires registration).

I've been working with jQuery on & off for the last four years and this book made me realize there is so much more to my favorite JavaScript library. The book lives up to the title as it covers the practical aspects of jQuery  in a straight-forward manner in just 100 pages with 100 code samples. This is a gem of a book - the best technical book I've read this year (I read about one a month) and one of the best books I've read on jQuery (jQuery in Action and  Learning jQuery are the others I read earlier)

It meets all the expectations I have of a good technical book - author is an expert on the topic, it's written in plain-English with no fluff and it provides a number of take-aways that you can apply at work. I had several 'aha' moments while reading through the facts like these -

The nth-child() filter doesn't have a zero index

The default context used by the jQuery function when selecting DOM elements is the document element (e.g. $('a', document)). This means that if you do not provide the jQuery function (e.g. jQuery()) with a second parameter to be used as the context for the DOM query, the default context used is the document element, more commonly known as <body>. 

One might incorrectly assume that the text() method only returns the text node of the first element in a wrapper set. However, it will actually join the text nodes of all elements contained in a wrapper set and then return the concatenated value as a single string.

Many of the samples are well-commented & display DOM manipulation wizardry. I'm sure I'll run into ocassions where I can put the tricks mentioned in this book to good use.

It would be nitpicking to say there are a few typos here & there. This book is a great resource for intermediate & advanced jQuery developers.

Labels:

Tweet this | Google+ it | Share on FB

« Home | Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »

»

Post a Comment