Archived entries for prototype
Lightview Version 2
Nick Stakenburg lightview ist nicht mehr nur für Bilder.
With the first released of Lightview I aimed to make overlaying images as elegant as possible, rethinking what we know as Lightbox. With Lightview 2.0 I’m going a step further, doing the same for
video (Quicktime), swf, Ajax, iframe and inline content.
Prototype: Deprecation.js & Event delegation
Zwei Prototype Links aus dem Feedreader:
Deprecation.js: easing the 1.5 → 1.6 transition
Core team member Tobie Langel has developed a script that will warn you of any deprecations or API changes. (…) When your code calls a method that’s been deprecated, replaced, or modified, the script will log a warning or error to your Firebug console. Clicking its hyperlink will take you to the deprecation script itself, which isn’t all that helpful; but the message itself will contain a stack trace that points to the source of the error.
Und Pat Nakajima erklärt Basic event delegation in Prototype.
Unobtrusive Scripting For Prototype
Ich bin ja mittlerweile ein großer Fan von jQuery und verwende prototype nur noch sehr selten, aber Low Pro schaut wie eine sehr coole Erweiterung zu prototype aus.
Low Pro is a set of extensions to the Prototype library that make it easier to implement unobtrusive DOM scripting. (…) It’s essentially a compilation of various tried and tested, previously published techniques adapted for use with Prototype and mainly centres around enhancing event handling and DOM manipulation.
Unter anderem kann man mit Low Pro Code wie diesen schreiben:
Event.addBehavior({
'a.todo:click' : function(e) {
new Ajax.Request('todo/add', ... );
},
'div.feature:mouseover' : function(e) {
this.hide();
}
}); jQuery API Plugin für Dreamweaver
Für die Mausschupser: jQuery API for Dreamweaver MX-CS3.
Prototype und Mochikit sind in Arbeit.
Die Code completion in Dreamweavers Code Ansicht sieht wirklich gut aus.

