Thursday, March 19th, 2009
Category: Bookmarklets
, Dojo
, Utility
<
>p
>Speaking of bookmarklets,
in a recent blog post Nathan Kurtyka discusses a scenario familiar to many Ajax developers:
However, I can’t even begin to think about how much time I’ve wasted hunting through source code hoping there might be some event I can subscribe to (e.g. “What event is published when someone clicks on a Tree widget node?”).
So naturally, he created a little something to scratch that itch:
I created a Dojo bookmarklet that can be used to log all events to the console.
So to not only see how rich Dojo is with event publishing (you probably haven’t been leveraging either), but to also see the bookmarklet in action, head on over Dojo Campus. Just enable Firebug, give the bookmarklet a click, browse the demos.. and behold — events everywhere!!
Check out the blog for the bookmarklet.
- IBM goes open source with Ajax
IBM is partnering with the Open Source Dojo Foundation in its quest to improve Ajax development. Big Blue also donated code to Dojo to help jumpstart...
- EGL Rich UI on IBM i: Do you Dojo?
Taking advantage of the Rich UI features of EGL architecture on the AS/400 can save you time and complexity. Rich internet applications can be...
- Ajax framework released
Simplified Ajax development is the goal of a new framework from Emergetk, released under the General Public License (GPL). It is written in C# and the...
- Sun gets serious about Ajax
Sun Microsystems Inc. demonstrates a commitment to Ajax with its new involvement with to alliances working on Ajax technology, the OpenAJAX Alliance...
- Hot skills: Dojo encourages Ajax innovation
What is it? In April 2006, a reviewer provided a round-up of 50 different Ajax frameworks and toolsets - and the number has certainly increased since...
I think this is the way things are going – Sproutcore and Cappuccino made it clear that a decent observer chain is necessary for JS UI development. Let’s hope there are more enterprising developers like this out there!
If you’d like to do the same with ExtJs, use the following link as a bookmarklet:
<a href="javascript:(function(){
var a,l,o=(Ext?Ext.util.Observable.prototype:false);
if (!o) {
alert('Ext not in page');
return;
}
if (!(l=console?console.log:false)) {
alert('Use Firefox with Firebug');
return;
}
o.fireEvent=o.fireEvent.createInterceptor(function(evt) {
a = arguments;
l('Ext fired event ',evt,' with args ',Array.prototype.slice.call(a, 1, a.length));
});
})();">Log all Ext events</a>
The bookmarklet was rehosted here (since that link is dead): http://pastebin.com/HF1tma4S