One of the best Facebook features is the ability to invite friends to events. The most annoying part about this system is the inability to invite more then 100 friends at a time (Facebook: wheres the invite all!?). In the past I have clicked one by one and sent invites in blocks of 100. Today [...]
Archives for JavaScript
Weebly Puzzle
This site attracts a decent amount of JavaScript folks so I thought this would be relevant and maybe even helpful. I read news.ycombinator.com everyday (or several times a day). If you are into the startup world, you should as well. It has by far the best startup news and a great community. The feedback and [...]
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 [...]
Firefox Extension – Preference Handeling
I wrote a class to deal with preference handling in the PriceAdvance Firefox extension. I found the Mozilla documentation to be difficult to understand. So, I decided to share the class. Theres a little bug in Firefox that took me two days and borderline suicide to figure out… Extensions can have a default preference file [...]
JavaScript Rich Text Editors
For the past week I have been working on this custom JavaScript rich text editor for the CollegeHumor article writer. Our current editor is using FCKeditor, which has been decent but has only recently become compatible with all browsers. For the re-write we messed around with the ever so popular TinyMCE, which in my opinion [...]
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 [...]
script.aculo.us 1.8.0 Released Today
A new version of script.aculo.us was released today. The biggest change is the upgrade to prototype 1.6 final, which I have been running since its release. There were a few other minor updates, you can read the full change log.
Posts