JavaScript Tutorials
12 Incredible CodePen.IO Demos
Whenever I need to put my ego in check, I go to Chris Coyier's new CodePen.IO site. CodePen.IO is an incredible showcase of HTML, CSS, and JavaScript, displaying the talents of developers creating effects that 99% of the world's front-end developers couldn't create.
Create and Retrieve Nested Objects with jQuery
The ability to create and retrieve nested objects by objectified string path is incredibly useful. Not only do you not need to do the manual string of object/property checks to avoid "{x} is not defined" errors, but if you create your method properly, you can also...
Synchronous Exec in Node.js
Everyone loves NodeJS in part because it embraces a non-blocking philosophy; interactions are asynchronous and thus, theoretically, allow for faster all-around processing. When creating a simple script for my upcoming redesign, I found the asynchronocity ... annoying. I was quickly sinking into callback hell with the...
IFRAME Permission Denied Solution
I was recently rolling my own AJAX upload script, posting a form to a hidden IFRAME and using the load event to know when the upload was complete. When the upload completed, I wanted to access the IFRAME content so I could verify that the upload...
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...
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...
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...
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...
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...