Bill Robertson's Blog

Workaround using Script.aculo.us script library and Atlas

I'm using a drag and drop script library for a project up at work.  http://script.aculo.us/ is where you can find more information about it.  It was real easy to set up and customize, but when I integrated it into an Atlas website I am doing, it stopped working when I called Sortable.create( ... ).  I tracked it down and logged a bug report at http://dev.rubyonrails.org/ticket/5301.

Within the day they responded, but they closed it out.

  • status changed from new to closed.
  • resolution set to wontfix.

This just isn't going to happen.

It is a great product, so don't be discouraged with it.  Here are the steps I used to modify their script files to get it to work.

  1. Open all script.aculo.us javascript files in the draggable/dragndrop library. 
  2. Do a global Find and Replace on "$(" with "_$("
  3. You will need to search for "$_$(" because there is a "function $$(" that should not be modified.  (I didn't have any uses of "function $$(" so probably check for that too.)

I hope this is helpful.

Leave a Comment

(required) 

(required) 

(optional)

(required)