javascript ant

RSS or Atom

 

Piles of javascript goodness
 

Recent Articles

Chaining Your JavaScript Methods

 

In a previous post on JavaScript Ant I reviewed some techniques from JavaScript libraries that could prove to be useful in your own scripts. A final technique that I gave a brief mention of, but did not cover in depth, was (object) method chaining. This technique was made popular in several libraries, but none more so than jQuery. In this straightforward tutorial, I will show you how to implement method chaining with little effort.

In case you were unaware, JavaScript, as well as ...

Read

XHR responseXML to a String

You'll likely never have to do this, but recently I did. I had to take the responseXML property of the XHR object and turn it into a string. Now, you'd think this would be easy, but in fact you'd be wrong. Before I show how this is done, let's not forget that if you want an XML document as a ...

Read

Get With This

When I first started programming, the use of the keyword this was somewhat befuddling. It was not until I truly grasped the concept of JavaScript objects that I fully understood the purpose of the keyword. If you still scratch your head when it comes time to use the keyword ...

Read

About Javascript Ant

This site contains a repository of articles pertaining to JavaScript and its usage in modern web browsers.

The articles on this site are organized into one of five topics, and then further organized by level of expertise. For example, an article with a topic of “core/adv.” would contain information about the core JavaScript programing language targeted at a reader with advanced JavaScript knowledge. More information about the topics can found on the articles page.

Additionally, an organized list of JavaScript resources can be found in the resources section of this site.

And if all this is not enough, check out the elsewhere section for noteworthy JavaScript happenings not on javascriptant.com.

 

Recent Comments

  • Posted To: Get With This

    I like this article, and it is useful for me. Could you give me any insight how I can access the javascript variables/functions of a page from outside? Given, the page is currently open in the browser (thus window.content.document is its DOM).

  • Posted To: Chaining Your JavaScript Methods

    Excellent article – a nice alternative to the way I usually create chainable methods. Feed us more JavaScript goodness!

  • Posted To: Chaining Your JavaScript Methods

    Interesting… How can the model be extended to allow for jquery-style plugins?

  • Posted To: JavaScript Library Techniques, Tips and Tricks

    thanks for this valuable post…

  • Posted To: JavaScript Libraries By Comparison

    @Pragma: Great point on the lack of attention for accessibility. However, it’s up to the developer to implement progressive enhancement, and maintain accessible content and behavior, and it is possible with some of these JS libraries. For example, with jQuery, the AJAX behavior re-uses the “normal” server calls (such as …

Recent Javascript Elsewhere

Functional JavaScript
Posted: 07/01/2008 Topic: core
Mascara: ECMAScript 4 → Classic Javascript translator
Posted: 06/10/2008 Topic: tools
Finally, the alternative fix for IE6's memory leak is available
Posted: 06/10/2008 Topic: client
String Performance: Getting Good Performance from Internet Explorer
Posted: 06/10/2008 Topic: core
Spyjax - Your browser history is not private!
Posted: 06/03/2008 Topic: client
The ultimate getElementsByClassName, anno 2008
Posted: 05/27/2008 Topic: client
Reserved Words in JavaScript
Posted: 05/27/2008 Topic: core
Scoping anonymous functions
Posted: 05/09/2008 Topic: core
Event delegation with JavaScript
Posted: 05/09/2008 Topic: client
Pragmatic progressive enhancement
Posted: 05/08/2008 Topic: client