Prototype


Monday, April 17th, 2006

Ajax in Rails Slides

Category: Prototype, Ruby

Thomas Fuchs has published his Ajax in Rails slides from the Canda on Rails showcase. Once you download the PDF you can skip through to the RJS goodness that came in Rails 1.1. In there you will see how you can just write Ruby, and the JS that gets generated. This is all based on Read the rest…

Posted by Dion Almaer at 11:54 am
10 Comments

+++--
3.9 rating from 42 votes

Tuesday, April 11th, 2006

Prototype: Easing Ajax’s Pain

Category: Programming, Prototype

If you’re just starting off in the vast world of Ajax, you might be wondering why so many people are using something as difficult as a manual XMLHttpRequest connection. Of course, Ajax wouldn’t be as wide-spread as it is if everyone had to write all of that code out by hand each time. Enter one Read the rest…

Posted by Chris Cornutt at 7:08 am
17 Comments

++++-
4 rating from 34 votes

Wednesday, April 5th, 2006

Script.aculo.us 1.6 Released

Category: JavaScript, Library, Prototype

Script.aculo.us has a new 1.6 release that mirrows the Rails 1.1 release, just as Thomas Fuchs said it would. script.aculo.us 1.6 marks the switch over to Prototype 1.5 (1.4 will no longer be supported), which has really great new features and has undergone some refactoring to take advantage of the Prototype 1.5 niceties. Other new Read the rest…

Posted by Dion Almaer at 11:31 am
5 Comments

+++--
3.6 rating from 31 votes

Wednesday, March 29th, 2006

Dollar E: A document.createElement Wrapper

Category: JavaScript, Prototype

Prototype is quickly becoming one of the most widely used Javascript libraries on the web, and with good reason. It sets up a simple interface making common Javascript tasks as simple as a single line of code. Of course, there are some things that Prototype still hasn’t gotten around to yet – such as this Read the rest…

Posted by Chris Cornutt at 7:38 pm
38 Comments

+++--
3.9 rating from 92 votes

Tuesday, March 28th, 2006

Ruby on Rails 1.1 released – RJS Template, Easy XML Serialization, and More

Category: Books, Examples, Library, Prototype, Ruby

Ruby on Rails 1.1 has been released with an impressive set of new features for a point release. For a comprehensive list of new features, check out Scott Raymond’s post or the official annoucement. The Ajax related features include: RJS templates – Javascript generation in Ruby for common Ajax updates. Now in addition to .rhtml Read the rest…

Posted by Rob Sanheim at 11:52 am
8 Comments

+++--
3.7 rating from 59 votes

Friday, March 24th, 2006

Ajax Timeouts with Prototype

Category: Programming, Prototype

Network problems are only one of the difficulties that can plague Ajax applications, but they can be the most difficult to deal with. How can you check, with a Javascript call, to see if the remote host you’re using is down? A simple call to the server won’t work – the connection would just sit Read the rest…

Posted by Chris Cornutt at 9:32 am
6 Comments

+++--
3.4 rating from 48 votes

Tuesday, March 14th, 2006

Ajax Templating – Separation of Layout and Logic

Category: PHP, Programming, Prototype

In this informative blog entry, BorkWeb.com shares a method for creating a templating system generated wholely with Ajax and PHP. While Ajax is the cause for the article, the heavy focus is on templating. For the past few years I have been using XTemplate as my templating library (I’m a PHP buff) and have been Read the rest…

Posted by Chris Cornutt at 8:26 am
4 Comments

++++-
4.1 rating from 47 votes

Friday, March 10th, 2006

Prototype Gets Some Serious Syntactic Sugar

Category: Programming, Prototype

According to this post on Encytemedia.com, everyone’s favorite Javascript library, prototype, has gotten some new “syntactic sugar” when it comes to dealing with Element objects. I’ve hoped for a while that Prototype would implement something similar to what JQuery has going on for DOM elements. The current Element object in Prototype is packed full of Read the rest…

Posted by Chris Cornutt at 8:48 am
2 Comments

+++--
3.8 rating from 31 votes

Monday, March 6th, 2006

Effect.Reappear: Adding News Updater Portlet to Ajaxian.com

Category: Articles, Editorial, Prototype, UI

We wish we had more time to put Ajax features on to Ajaxian.com itself. We will get there! We did recently add a simple bit of Ajax, and a few people emailed us asking about it. The feature is the rotating set of sponsors that we have on the rightbar. This portlet uses Script.aculo.us effects Read the rest…

Posted by Dion Almaer at 10:18 am
8 Comments

+++--
3.9 rating from 63 votes

Monday, February 27th, 2006

Ajax Scaffold Generator

Category: Prototype, Ruby, Showcase

Richard White has created an Ajax Scaffold Generator for Ruby on Rails. This takes the default scaffolding that Rails produces, and turns it up a notch. Now your admin pages can do a lot of CRUD on the same page. The latest 2.0 version of the tool features: The generated scaffold code looks production ready: Read the rest…

Posted by Dion Almaer at 9:58 am
2 Comments

++++-
4 rating from 82 votes

Ajax Multiplayer Chess

Category: Comet, Games, Prototype, Showcase

Piotr Dachtera has created a full interactive multiplayer chess server based on Ajax (using Prototype and Script.aculo.us). There is a lot going on in the game such as: Built-in chat Drag and drop of pieces Animation of pieces as they move

Posted by Dion Almaer at 8:32 am
14 Comments

++++-
4.2 rating from 92 votes

Friday, February 24th, 2006

Creating sortable lists with PHP and AJAX

Category: PHP, Programming, Prototype, UI

phpRiot has posted a tutorial that pairs PHP and Ajax together (the perfect combination?) to create sortable lists. ou might have been in a situation before where you had a list of items in your database that needed to be output in a specific order. These items could be anything: perhaps a listing of your Read the rest…

Posted by Chris Cornutt at 11:16 am
9 Comments

+++--
3.7 rating from 140 votes

Wednesday, February 22nd, 2006

Painless JavaScript Using Prototype

Category: Programming, Prototype

In this new post on the “Javascript & DHTML Tutorials” blog from SitePoint, Dan Webb demonstrated how to use the Prototype library to make “painless Javascript” for your site. Personally, I think the jury’s out on the whole ‘fun’ JavaScript thing, but nevertheless Prototype is a really well executed JavaScript library which, although the situation Read the rest…

Posted by Chris Cornutt at 8:05 am
2 Comments

++++-
4 rating from 35 votes

Monday, February 20th, 2006

Jonathan Snook’s Prototype Cheat Sheets

Category: Prototype

Jonathan Snook has posted some graphics (“cheat sheets”) over on his blog today – various sized disections of the popular Prototype Javascript framework. In getting to know Prototype a little better, I decided to go through the latest version of the Prototype library (1.5.0_pre0) and detail every method and property that was available. In doing Read the rest…

Posted by Chris Cornutt at 12:08 pm
4 Comments

++++-
4.4 rating from 35 votes

Saturday, February 18th, 2006

Lightbox.js with moo.fx

Category: JavaScript, Prototype, Toolkit

Sean McBride at alwasybeta has a detailed entry describing their modification of the lightbox.js tool we covered earlier. For use at alwaysbeta, Sean integrated moo.fx, added a close button, did some general code cleanup, and added an attractive Apple-like spinner graphic for the loading image. In the process, Sean found some bugs in moo.fx that Read the rest…

Posted by Rob Sanheim at 5:28 pm
8 Comments

++++-
4.1 rating from 113 votes

Friday, February 17th, 2006

Flash without Flash with Script.aculo.us

Category: JavaScript, Prototype, UI

Thomas Fuchs linked to a site that many thought was Flash, but in fact was just using Script.aculo.us. The site is christofwagner.com and shows off portfolio of the artist.

Posted by Dion Almaer at 10:42 am
8 Comments

+++--
3.8 rating from 29 votes