Search results for 2014 05 12 rethinking dom traversal

Rethinking DOM Traversal

by Brian Rinaldi

…that point – so let’s look at the typical DOM traversal methods. DOM Traversal Methods Before we begin exploring the various DOM traversal methods, it may be useful to have…

DOM Traversal and Manipulation with Voyeur

by Brian Rinaldi

By Brian Rinaldi Years ago, just about the only thing cool about JavaScript was the DOM traversal and manipulation that jQuery offered. Even today, it remains one of the most…

A DOM Manipulation Class in 100 Lines of JavaScript

by Krasimir Tsonev

</footer> Accessing the first paragraph: dom(‘p’).el Accessing the paragraph in the header node: dom(‘p’, ‘header’).el Passing a DOM element: dom(document.querySelector(‘header’)).el Passing a JavaScript object: var els = dom({ footer: ‘footer’,…

First Look: Getting Started with Facebook’s ReactJS Library

by Mike Hostetler

…{items:this.state.items} ), React.DOM.form( {onSubmit:this.handleSubmit}, React.DOM.input( {onChange:this.onChange, value:this.state.text} ), React.DOM.button(null, ‘Add #’ + (this.state.items.length + 1)) ) ) ); } }); React.renderComponent(TodoApp(null ), mountNode); RenderComponent() creates and renders Component. Functions onChange…

2014 – What Web Developers Will Need to Know

by Brian Rinaldi

…help shed some light on what web developers might need to know for 2014. Specifically, I asked, “Looking into 2014, what do you think will have the most impact on…

Introduction to the Component JavaScript Package Manager

by Brian Rinaldi

…fast! In the land of Component, instead of jQuery, we can use the much more light-weight dom component component install component/dom Check your component.json and make sure it contains “component/dom”…

Uncovering the Native DOM API

by Nicolas Bevacqua

It also fixes inconsistencies in IE8 as well as some other cross-browser fixes. Other than that, querying the DOM is pretty much done natively. Lets turn to manipulation. DOM Manipulation…

Soma.js – Your Way Out of Chaotic JavaScript

by Brian Rinaldi

…instance. A Self-contained Application It is a good practice to use a DOM Element as the root within the application. This is useful to self-contain the application. Any DOM selections…

String Templating Considered Harmful

by rich_harris

…need to listen to DOM events on those nodes. Updating views by inserting freshly rendered HTML into the DOM is like knocking your house down and rebuilding it when all…

Best of JavaScript, HTML & CSS – Week of January 6, 2014

by Brian Rinaldi

…working with the DOM than jQuery. Writing A Better JavaScript Library For The DOM Dr. Axel Rauschmayer discusses the options, including benefits and drawbacks, for dynamically evaluating code in JavaScript….