Tutorials Page 136
Clone Anything with JavaScript
One topic or concept that causes confusion when developers start with JavaScript is the idea of passing objects by reference; for example, setting two variables equal to the same object actually creates a reference to that same object. Sending an object to a function and modify...
GitHub-Style Sliding Links
GitHub seems to change a lot but not really change at all, if that makes any sense; the updates come often but are always fairly small. I spotted one of the most recent updates on the pull request page. Links to long branch...
Clone Arrays with JavaScript
Believe it or not, there are reasons we use JavaScript frameworks outside of animations and those sexy accordions that people can't do without. The further you get into high-powered JavaScript applications (assuming you're creating true web applications, not websites), the more the need for basic...
Hiding Your Privates with JavaScript
Believe it or not, there are a lot of people who strongly dislike JavaScript. For one reason or another, they simply can't stand the perceived lack of security and structure within the language. One of those perceived weaknesses is lack of the private designations...
CSS Opacity
CSS provides an excellent means of adding opacity to any element with the
opacity
property. Opacity values must be anywhere from 0 (not visible) and 1 (completely visible). Adding opacity to an element used to be quite a chore -- lots of browser-specific CSS...Poll: JavaScript Var Declaration
Hardcore developers of any language are generally very opinionated when it comes to the specifics of how they code. In the JavaScript community, one subject of heated debate is whether to use the `var` keyword once and separate declarations by line: or use the `var` keyword...
Being a Good Member of the Community
Disclaimer: I've been waiting, a long, long time to write a post like this. Passion may be present... A man stands up with a sheepish smirk, sweat visible. "My name is David Walsh", the studly newcomer said, wearing his Arsenal jersey like a suit of armor. "I'm...
User Agent Parsing with PHP, JavaScript, or Python
Saying the phrase "user agent" or "user agent string" is tantamount to saying a swear word. Developers used to use the user agent to detect if a browser had a given feature, instead of, you know, checking to see if the feature actually existed via...
CSS Columns
One major gripe that we've always had about CSS is that creating layouts seems to be more difficult than it should be. We have, of course, adapted and mastered the techniques for creating layouts, but there's no shaking the feeling that there should be a...
Detecting Mozilla App Install Capabilities with JavaScript
If you follow me on Twitter, you know I'm riveting super excited about the forthcoming Firefox Marketplace. A marketplace where you can download desktop, tablet, and mobile phone applications based on web technologies, from a host with a record as awesome as Mozilla, is...