Archives for Prototype XUL

Using Prototype XUL

The examples here are taken from Function page of the Prototype JS api documentation. They have been re-written to reflect the Prototype XUL changes. Hope they help!
argumentNames
var fn = function(foo, bar) {
return foo + bar;
};

argumentNames(fn); //['foo', 'bar']

bind
var fn = function(foo, bar) {
return foo + bar;
};

argumentNames(fn); //-> ['foo', 'bar']

bindAsEventListener
var obj [...]

Prototype XUL Documentation

For the most part the functionality of Prototype XUL works the same as normal prototype. The prototype documentation can be found here. The underlying changes are in the methods that extend Prototype.function. The functions that have been re-written are: argumentNames, bind, bindAsEventListener, curry, delay, defer, wrap and methodize. The core difference in use, is that [...]

Prototype XUL Update

While writing out the Prototype XUL documention I came across a nasty little bug that took me a few hours to fix. I will wrap up the documentation tomorrow. If you downloaded the Prototype XUL 1.6.0.2 file anytime before today, please upgrade (the version number has not change).

Prototype XUL JavaScript Framework 1.6.0.2

Drum roll please… After three attempts/failures, I present to you the newest version of the Prototype XUL library! The previous released version technically never worked. It was something I threw together for a Firefox project that only required the basic of functionality (Ajax.Request, utility functions, etc.). I was under the impression that converting the functions [...]

Prototype XUL JavaScript Framework 1.6.0_rc1

A few days ago I posted about a FireFox bug that affected Function.prototype in the Chrome environment. The two modified prototype libraries that I posted were starting to get a little outdated. I spent the night modifying the most recent version of Prototype 1.6.0_rc1 framework to work in Chrome. I have also removed as many [...]

Prototype XUL JavaScript Library

One of the projects that I have been working on is a FireFox extension. I’m pretty new to the XUL/Extension space, but have a lot of JavaScript experience. My framework of choice has long standing been Prototype. I figured why not make life easy and utilize that functionality in the extension. I soon realized that [...]