Jquery vs Prototype/Scriptaculous

Published on Mar 26, 2009 by Jamie Munro

About two years ago I started learning AJAX and drag and drop.  The first project I applied it to was an existing project that was using Prototype and Scriptaculous.  So, I didn't really have a choice as to what library I was going to use.

Two years later, I do not know Jquery all that well, but I am absolutely falling in love with.  Doing things with Jquery seem to be 10 times easier to me.

I always struggled with the each() function that I seemed to be constantly using with Prototype.  Jquery seems to understand this and simplify things for us.

In this article, I'm going to describe my top reasons why I am becoming a Jquery lover over Prototype.

Read more >

Tags: scriptaculous | jquery | prototype | JavaScript | jQuery

Fixing slow drag and drop with scriptaculous

Published on Feb 18, 2009 by Jamie Munro

Recently on a project I was working on, I was tasked with fixing drag and drop that was terribly slow.  The drag and drop was implemented with scriptaculous on a calendar system.  When you clicked an event to drag it it took about 5 seconds before the page would actually let you drag it!  This was clearly unacceptable and it has to be possible because Google Calendar is lightening fast.

 The first thing I did was download and setup jquery to see if it was related to how scriptaculous was created.  After setting up jquery, it was just as slow.  This lead me to believe that it was a fundamental problem with how the drag and drop was set up in both libraries.

Read more >

Tags: Javascript | Optimization | scriptaculous | jquery | JavaScript | jQuery