Prototype


Tuesday, March 6th, 2007

MyPunchbowl Upgrades Event System

Category: Prototype, Scriptaculous, Showcase

MyPunchbowl, the event planner that may kill evite, has pushed a new version, now with 150% more Ajax. We asked Matt Douglas (Punchbowl team) to tell us what is new, and he replied: All Sign in and Sign up windows are done in a modal dialog. Note the cool Ajax zoom effect we chose to Read the rest…

Posted by Dion Almaer at 8:56 am
1 Comment

+++--
3 rating from 19 votes

Friday, February 2nd, 2007

Plotr: Charting library via canvas with Prototype

Category: Canvas, Prototype

Bas Wenneker has written Plotr, a charting engine in Prototype that uses canvas. Example < View plain text > javascript var dataset = {         ‘myFirstDataset’: [[0, 1], [1, 0.8], [2, 2.3], [3, 1.3], [4, 2.56]],         ‘mySecondDataset’: [[0, 0.5], [1, 0.5], [2, 2], [3, 1], [4, 1.4]],   Read the rest…

Posted by Dion Almaer at 9:14 am
19 Comments

++++-
4 rating from 39 votes

Prototype 1.5 Documentation in PDF

Category: Prototype

Remember when we all complained at the lack of docs for Prototype? The prototype team has new docs as a nice PDF download for us thanks to Josh Clark.

Posted by Dion Almaer at 7:09 am
2 Comments

++++-
4.2 rating from 32 votes

Thursday, February 1st, 2007

Prototype Reference Widget

Category: JavaScript, Library, Prototype

Wolfgang Bartelme (designer of this site) took the work by Justin Palmer and friends and created a Prototype Reference widget.

Posted by Dion Almaer at 12:04 am
4 Comments

++++-
4 rating from 27 votes

Thursday, January 25th, 2007

Moon Lander

Category: Prototype, Showcase

Ben Nolan (Behaviour.js) has whipped up some Ajax Fu to create a simple Moon Lander using Prototype and the Canvas tag. Take a peak at the game code to see how elegantly Ben did this. Who said JavaScript is hard?

Posted by Dion Almaer at 8:54 am
14 Comments

+++--
3.2 rating from 46 votes

Friday, January 19th, 2007

Prototype 1.5, now with Documentation

Category: Examples, JavaScript, Library, Prototype

It is documentation Friday. The new site prototypejs.org has launched, and the call for documentation help rang through to some people. This new documentation includes: Tips and Tutorials (e.g. Ajax, Extending the DOM) API Reference Blog There is still room for a lot more help, so join in.

Posted by Dion Almaer at 8:54 am
17 Comments

+++--
3.3 rating from 85 votes

Thursday, January 18th, 2007

Prototype 1.5.0: Changeset 5969

Category: Announcements, Prototype

Prototype 1.5.0 is here… kinda… in secret… in Changeset 5969. (Chances are as soon as Rails 1.2 ships, we will see this announced)

Posted by Dion Almaer at 4:14 pm
11 Comments

+++--
3.4 rating from 45 votes

Tuesday, January 16th, 2007

MyPunchbowl: Plan your superbowl party with Ajax

Category: Prototype, Scriptaculous, Showcase

MyPunchbowl has launched just in time for you to plan your superbowl party with it instead of evite. Matt Douglas and his team have put together a highly interactive and rich party planner, currently focused on the at-home party space. Not only does MyPunchBowl had the rich editing of a party, but it does all Read the rest…

Posted by Dion Almaer at 10:37 am
8 Comments

+++--
3.7 rating from 28 votes

ResizingTextArea Prototype Component

Category: Component, Prototype, Rails

Richard McMahon has wrapped the oft-seen resizable text areas in a simple Prototype component ResizingTextArea: JavaScript var ResizingTextArea = Class.create(); ResizingTextArea.prototype = { defaultRows: 1, initialize: function(field) { this.defaultRows = Math.max(field.rows, 1); this.resizeNeeded = this.resizeNeeded.bindAsEventListener(this); Event.observe(field, “click”, this.resizeNeeded); Event.observe(field, “keyup”, this.resizeNeeded); }, resizeNeeded: function(event) { var t = Event.element(event); var lines = t.value.split(‘\n’); var newRows Read the rest…

Posted by Dion Almaer at 7:52 am
10 Comments

+++--
3.4 rating from 42 votes

Tuesday, January 9th, 2007

Custom DOM Attributes vs. Class CSS styles

Category: Articles, Prototype

Pete Forde isn’t a huge fan of the practical but not pure use of class=”noncssmarker” and has written about Attributes > Classes: Custom DOM Attributes for Fun and Profit. In this article Pete discusses the high level value of attributes, but then goes a lot further and he patches Prototype to make it just as Read the rest…

Posted by Dion Almaer at 10:40 am
29 Comments

++++-
4 rating from 34 votes

Tuesday, January 2nd, 2007

Prototype docs – Developer Notes Updated, O’Reilly Resources

Category: Books, Prototype, Rails

Apparently Santa was listening to my request for more docs in this last post: Sergio Pereira has updated his outstanding developer notes for Prototype to cover 1.5rc2. Scott Raymond and Sergio also worked together to create the Prototype Quick Reference, a PDF that expands on Sergio’s web site. The PDF will also be updated to Read the rest…

Posted by Rob Sanheim at 8:02 am
7 Comments

+++--
3.8 rating from 24 votes

Friday, December 29th, 2006

Ninja Words: Online Dictionary

Category: Prototype, Showcase

Ninjawords is a simple dictionary service that uses Ajax to ping resources to retrieve dictionary content. To feel lucky in this app, you click random.

Posted by Dion Almaer at 8:00 am
10 Comments

+++--
3.6 rating from 32 votes

Prototype Sucks 2.0

Category: Framework, Prototype, Testing

Another day, another article bashing the Javascript toolkit everyone loves to hate – Prototype. The complaints can be narrowed down to a few points: “it breaks the ‘for in’ loop” – no it doesn’t – you were probably using ‘for in’ where you shouldn’t have. Javascript is a flexible, powerful freedom language, and its _okay_ Read the rest…

Posted by Rob Sanheim at 4:03 am
19 Comments

+++--
3.2 rating from 63 votes

Monday, December 25th, 2006

Porting Prototype Enumerable functions to Mootools Array objects

Category: JavaScript, Library, Prototype

Are you a Mootools user and you wish that you could use the Enumerable coolness from Prototype? Bas Wenneker has ported the functions over, and has written up the experience. I really like the Prototype Framework and the functionality that comes with it, but I like Mootools even more because it’s so damn small and Read the rest…

Posted by Dion Almaer at 8:20 am
2 Comments

+++--
3.8 rating from 33 votes

Friday, December 22nd, 2006

QuickMuse: Ajaxified Poetry

Category: Dojo, Prototype, Showcase

Fletcher Moore has created QuickMuse, a site that is using Ajax techniques to capture and regurgitate — in real time, with all the warts intact — the process of writing prose and poetry. Watch the playback of poems as they were written. Poet Charles Bernstein put this to best use so far, but if you Read the rest…

Posted by Dion Almaer at 8:00 am
1 Comment

+++--
3.4 rating from 25 votes

Monday, December 18th, 2006

New Chat Prototype using Comet and Prototype

Category: Chat, Comet, Prototype, Showcase

Chris Chabot has recently announced a new chat prototype based on a comet iframe connections for real time messaging, ajax for posting messages and sending commands, prototype.js and script.aculo.us as javascript framework, and bases of the newly written dhtml components. As a side effect of this project, the library & socket daemon framework used by Read the rest…

Posted by Dion Almaer at 7:45 am
19 Comments

+++--
3.6 rating from 74 votes