Prototype


Wednesday, September 20th, 2006

Adventures in JavaScript testing slides

Category: Presentation, Prototype

Thomas Fuchs has posted his slides on unit testing JavaScript from his talk at RailsConf Europe (large PDF). The presentation covers: The history of JavaScript testing :) His unit test package Benchmarking Tying into rake Behaviour Driven Design based testing Debugging utilities

Posted by Dion Almaer at 10:08 am
4 Comments

+++--
3.7 rating from 37 votes

Wednesday, September 6th, 2006

Script.aculo.us 1.6.4 Released

Category: Prototype

The releases are coming fast and furious for Prototype and script.aculo.us. Thomas Fuchs has sync’d up to the latest Prototype adding features along the way: Update Prototype to V1.5.0_rc1 (read more on Justin Palmer’s blog) Add experimental alternate syntax for unit tests (Behaviour Driven Development-style) Merge assertElementsMatch and assertElementMatches from Prototype’s [4986] unittest.js [Sam Stephenson] Read the rest…

Posted by Dion Almaer at 8:04 am
2 Comments

+++--
3.5 rating from 25 votes

Low Pro – Unobtrusive Scripting for Prototype

Category: Library, Prototype, Rails

We’ve covered the very cool UJS (Unobtrusive Javascript) plugin for Rails previously. Now the creators have extracted the javascript pieces to allow easy unobtrusive scripting with prototype and released it as Low Pro (download here). Low Pro features code from folks like Dean Edwards and Justin Palmer, among others. Its compatible with Prototype 1.5 and Read the rest…

Posted by Rob Sanheim at 7:30 am
5 Comments

+++--
3.7 rating from 16 votes

Tuesday, September 5th, 2006

Prototype Carousel Widget

Category: Prototype, UI

Sebastien Gruhier has written a Prototype version of the YUI Carousel component. This version is lightweight and has a few parameters compared to the more flexible YUI version (that comes with a 200kb price tag).

Posted by Dion Almaer at 5:14 pm
16 Comments

+++--
3.9 rating from 59 votes

Prototype: DOM, Events, and documentation?

Category: Prototype

Justin Palmer is shedding more light on Prototype updates. This time around he covers events and DOM traversal: Events In days past bind was great at accepting additional arguments, however, bindAsEventListener didn’t get this love until now. We can pass those additional arguments to bindAsEventListener with ease: < View plain text > javascript var Clicker Read the rest…

Posted by Dion Almaer at 3:24 pm
4 Comments

+++--
3.8 rating from 34 votes

Wednesday, August 30th, 2006

Script.aculo.us Behaviour Driven Development Testing

Category: Prototype, Testing

Thomas Fuchs has added some new features to the script.aculo.us test library that borrow from Behaviour Driven Development. < View plain text > javascript Test.context("BDD-style testing",{   ‘should automatically add extensions to strings’: function(){     ‘a’.shouldEqual(‘a’);     ‘a’.shouldNotEqual(‘b’);     ‘a’.shouldNotBeNull();     ‘a’.shouldBeA(String);     ‘a’.shouldNotBeA(Number);   } }); Basically, you’re defining Read the rest…

Posted by Dion Almaer at 12:31 pm
4 Comments

++++-
4 rating from 28 votes

Prototype Changes

Category: Prototype

Justin Palmer has updated us with a bunch of recent Prototype updates including: Chainability: A bunch of methods now return their first arg so we can change together methods < View plain text > javascript $(“sidebar”).addClassName(“selected”).show();   $(‘sweet’).observe(‘click’, function(e) {     console.log("%s was clicked", Event.element(e)); }).setStyle({color: ‘red’}); Form and Form.Element methods mixed in to Read the rest…

Posted by Dion Almaer at 12:25 pm
13 Comments

+++--
3.6 rating from 30 votes

Friday, August 25th, 2006

Framework Disagreement: JQuery: (Mis)leading the Pack

Category: JavaScript, Library, Prototype

Justin Palmer has taken issue to some of the statements made by jQuery and writes JQuery: (Mis)leading the Pack as a retort of sorts to “Why JQuery’s Philosophy is Better”. He makes some good points about: DOM Insertion Chainability CSS Selectors/Xpath Plugin Development Automatic Looping Ajax Updating Adding a class to an element Adding a Read the rest…

Posted by Dion Almaer at 11:27 am
2 Comments

+++--
3.8 rating from 44 votes

Tuesday, August 22nd, 2006

Gucci Relaunches on Script.aculo.us

Category: Prototype, Showcase

Gucci has relaunched a very dynamic site on top of script.aculo.us instead of the usual Flash. It does feel somewhat like a flash site, with minimal navigation, and a lot of horizontal scrolling. When I first launched it on my Mac 30″ monitor it mazimed the width which was quite a show! (I am not Read the rest…

Posted by Dion Almaer at 12:33 pm
16 Comments

+++--
3.8 rating from 70 votes

Prototype Extension: Dynamic Script Pattern Support

Category: Prototype

Cody Swann was working on a web application that was using the Dynamic Script Pattern, which Dojo has excellent support for, but Prototype didn’t. Cody then extended Prototype to support ScriptSrcTransport similarly to how Dojo does it. The code below support the Simple, Polling and JSONP and JSON Callbacks described in the Dojo book. < Read the rest…

Posted by Dion Almaer at 11:02 am
6 Comments

++++-
4 rating from 19 votes

New Scriptaculous Homepage

Category: Prototype

script.aculo.us has a new face, that should help you find what you need and want in short order. The new front page also has the side effect that you can timewaste at work by dragging the bubbles all over. If they let you drop as well as drag, people would be there for hours :)

Posted by Dion Almaer at 10:33 am
11 Comments

+++--
3.8 rating from 25 votes

Tuesday, August 15th, 2006

Script.aculo.us 1.6.2 Released

Category: Prototype

Thomas Fuchs and co. have released script.aculo.us 1.6.2. This is mainly a bugfix “go ahead and grab it” release: Fix a problem in the drag and drop logic if an reverting/drag ending draggable was initialized for a new drag (for example by clicking repeatedly) for all cases where the default start/revert/end-effects are used, fixes #4706 Read the rest…

Posted by Dion Almaer at 10:54 am
Comment here

+++--
3.9 rating from 40 votes

Wednesday, August 9th, 2006

SXSW Panel Picker

Category: Conferences, Prototype, Scriptaculous, Usability

SXSW is letting the people help decide which panel submissions are going to make it into the 2007 event. Lindsey Simon, for SXSW, put together this web page showing the submissions and allowing users to pick up to ten panels. Choosing a panel causes it to appear in the list of Picks, and the list Read the rest…

Posted by Michael Mahemoff at 2:34 pm
Comment here

+++--
3.6 rating from 24 votes

Friday, August 4th, 2006

Ajax Design Methodology: A Guide

Category: Design, Prototype

Adam Howitt has put together an 8-page PDF on Ajax design. In the guide which you can download from the link below I’ll cover the process I have developed in the course of implementing two AJAX applications as a developer for Duo Consulting in Chicago. This approach has made it easier for me to work Read the rest…

Posted by Michael Mahemoff at 3:51 am
5 Comments

+++--
3.6 rating from 22 votes

Thursday, July 27th, 2006

Prototypify: Running Prototype code with legacy code

Category: JavaScript, Library, Prototype

Aaron Newton, Product Manager at CNET sent us an email about his issues of using Prototype in production at a large company like CNET: I’ve made a lot of use of Prototype but using it has been a bit of a controversy here at our network. Specifically, the extensions that are inherent in Prototype often Read the rest…

Posted by Dion Almaer at 2:55 pm
16 Comments

+++--
3 rating from 8 votes

Tuesday, July 11th, 2006

Tuesday Morning Roundup

Category: JavaScript, Prototype, RichTextWidget, Ruby, Scriptaculous, Tip, WebKit

some stuff on Prototype, Safari and trailing commas, an Ajax design pattern, and a slide library

Posted by Rob Sanheim at 8:00 am
5 Comments

+++--
3.5 rating from 26 votes