Sign In/My Account | View Cart  
advertisement

Article:
 jQuery and XML
Subject: Write an extension!
Date: 2007-10-15 12:47:25
From: happygiraffe

That last filter() example is a great candidate for a quick jQuery extension:



jQuery.fn.ns = function(namespaceURI) {
return $(this).filter(function() {
return this.namespaceURI == namespaceURI;
});
};


You can probably also do something involving extending the selector syntax, but that would probably be clunky, passing in URLs.


Check out the Plugin Authoring (http://docs.jquery.com/Plugins/Authoring) guide for more info.


No Previous Message Previous Message   Next Message Next Message


Sponsored By: