The training continues. How many programmers can write pure native JS without the aid of a framework? Discipline 9 of the series is a lesson about cross-browser compatibility. "Even in the worst case scenario I try extremely hard to find clever solutions that allow me to avoid relying on browser detection. Despite this practice and frame of mind I still believe it’s useful for native JS ninjas to understand how to use browser detection techniques. read more
Blog
Native Javascript Ninjutsu: Navigator object browser detection
Native Javascript Ninjutsu: Window object methods & properties
The training continues. How many programmers can write pure native JS without the aid of a framework? Discipline 8 of the series is another lesson for beginners. Last week's article covered the most useful properties and methods of the document object, so this week I'd like to zoom out a bit and explore the window object. Just like the document object, the window object has a variety of its own properties, objects, and methods, though we'll only go over the most useful and interesting ones. read more
Native Javascript Ninjutsu: Document object methods & properties
Sensei Says (dark ages, to dojos, to disciplines) Javascript used to be a dark and ancient art, looked down upon by many web developers as a dishonorable – even malicious – ‘copy and paste’ language. Macromedia’s Shockwave – which later became Macromedia Flash, which even later became Adobe Flash – pushed audio, video, and interactive motion graphics onto the web in a cross-browser compatible format that all but decimated the need and appeal for Javascript. What little Javascript community there was began to seriously dwindle and die out. And then the frameworks came to rise: Dojo, Yahoo! UI Library, Google Web Toolkit, jQuery, Prototype, MooTools, and many more. With these [...] read more
Native Javascript Ninjutsu: DOMinating iframes
Javascript now seems to be a strong, healthy, and widely accepted language, frequently used and relied upon by web developers across the land. Yet how many of today's programmers can write pure native Javascript without the aid of a framework? How many can perform AJAX requests without a framework? And most importantly, how many can craft fully cross-browser compatible code without a framework?
Now that we've gone over some of the basics about using iframes it makes sense to discuss the relationship between the iframe and its parent page. When both your pages come from the same domain you can do a lot of simple communication between the iframe and the parent page. read more
Native Javascript Ninjutsu: removeNode vs. removeChild
Javascript now seems to be a strong, healthy, and widely accepted language, frequently used and relied upon by web developers across the land. Yet how many of today's programmers can write pure native Javascript without the aid of a framework? How many can perform AJAX requests without a framework? And most importantly, how many can craft fully cross-browser compatible code without a framework? Recently there have been a few occasions in which I needed to remove element nodes from the DOM. Learning how to remove element nodes from the DOM can be very useful for a variety of reasons. read more
