Questions tagged [scriptaculous]

Script.aculo.us is a set of JavaScript libraries built on top of the Prototype framework

Script.aculo.us is a set of JavaScript libraries built on top of the Prototype framework.

Script.aculo.us offers an animation framework, drag & drop, Ajax control, DOM utilities and unit testing. It's being superseded by , which at the time of this writing is still in beta test.

Useful links

Related tags

368 questions
5
votes
4 answers

How To Elegantly Handle JSON Objects in Responses From Ajax Requests?

I'm really new to using JSON to handle my Ajax Request and Response cycle. I've previously used just plain old parameters passed as POST data and I've rendered straight HTML in the response which was then placed into the DOM. As I've looked at…
Noah Goodrich
  • 24,875
  • 14
  • 66
  • 96
5
votes
2 answers

Scriptaculous draggable on iOS

How would you setup touch events to the draggable class, so that it works on iOS (iPad's, iPhone's, etc)? I have read How can I make a jQuery UI 'draggable()' div draggable for touchscreen?, which has lots of options for jQuery, but not sure how to…
fanfavorite
  • 5,128
  • 1
  • 31
  • 58
4
votes
1 answer

jQuery UI Drag 'n' Drop Ghosting Effect

I'm trying to mimic the "ghosting" functionality from Scriptaculous with jQuery UI. I've found the demo and could get DnD working, but the option to ghost an item as it's being dragged seems to be missing. All this does is: When you drag an item,…
Echilon
  • 10,064
  • 33
  • 131
  • 217
4
votes
1 answer

Protecting prototype.js based XHR requests against CSRF

Django has been updated to 1.3, and in fact ever since 1.2.5, it has extended the scheme to pass a Cross Site Request Forgery protection token to XMLHttpRequests. The Django folks helpfully provide an example for jQuery to apply a specific header to…
Lloeki
  • 6,573
  • 2
  • 33
  • 32
4
votes
1 answer

How to extend the scriptaculous autocompleter?

The autocompleter in script.aculo.us expects that the server response is a
    list. Is there some way for me to extend or replace this behaviour so it can take server response that is an XML or JSON document instead? Is there also a way to extend…
Spoike
  • 119,724
  • 44
  • 140
  • 158
4
votes
4 answers

Preventing JavaScript click event with Scriptaculous drag and drop

I have some elements on a page which are draggable. These same elements have a click event which navigates to another page. I'm trying to determine the best way of preventing the click event from firing if the user is dragging but still allow the…
4
votes
1 answer

Effect is not defined when using Scriptaculous

It seems I've installed Scriptaculous incorrectly, but I can't figure out what's wrong. Here's a sample to show the problem: