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
37
votes
9 answers

Ways to add javascript files dynamically in a page

I have seen Scriptaculous.js file to include its required javascript files dynamically. Is there any better approach to include javascript dynamically. For example, I would like to include my js files like,
Nazmul
  • 6,658
  • 12
  • 49
  • 61
18
votes
6 answers

Crossbrowser equivalent of explicitOriginalTarget event parameter

Does anyone know of crossbrowser equivalent of explicitOriginalTarget event parameter? This parameter is Mozilla specific and it gives me the element that caused the blur. Let's say i have a text input and a link on my page. Text input has the…
matte
  • 1,196
  • 4
  • 12
  • 21
14
votes
4 answers

document.createElement('script')... adding two scripts with one callback

I need to add prototype and then add scriptaculous and get a callback when they are both done loading. I am currently loading prototype like so: var script = document.createElement("script"); script.src =…
user199085
  • 897
  • 2
  • 8
  • 8
11
votes
7 answers

jQuery UI vs. Scriptaculous?

Which is better for UI development. Are there any differences between the two UI toolkits?
mars-o
  • 1,595
  • 4
  • 22
  • 36
10
votes
2 answers

Use both jquery.js and scriptaculous.js files?

Is there any way to use both the jquery and scriptaculous js files together? I was trying to implement the autocomplete feature of the cakephp framework which required the js files,prototype.js,scriptaculous.js,effects.js and controls.js. I also use…
Angeline
  • 2,311
  • 22
  • 67
  • 106
8
votes
4 answers

auto_complete_for: prevent the first item from being auto-selected

The auto_complete_for dealio from script.aculo.us is great an all, but is there a way for me to selectively disable the fact that it always auto-selects the first item in the list? The problem is that, if I want to type my own entry that is new, and…
jefflunt
  • 32,075
  • 7
  • 80
  • 122
8
votes
5 answers

How to use javascript onclick on a DIV tag to toggle visibility of a section that contains clickable links?

Hi I've got a DIV section that has only its title visible initially. What I would like to achieve is that when the visitor clicks anywhere on the area of toggle_section the toggle_stuff div toggles between visible/hidden.
Miro Solanka
  • 733
  • 2
  • 6
  • 13
7
votes
7 answers

What are the best strategies for using multiple AJAX libraries?

What experience can you share about using multiple AJAX libraries? There are useful features in Prototype, some in jQuery, the Yahoo library, etc. Is it possible to include all libraries and use what you want from each, do they generally all play…
Edward Tanguay
  • 176,854
  • 291
  • 683
  • 1,015
6
votes
5 answers

How to create a sortable interface with 'acts as nested set' in RubyOnRails

I've been implementing some nice interactive interfaces that can sort lists in my m rails app for models that use acts_as_list. I have a sort function that gets called and sets the position for each record afterr each drag and drop using the …
Streamline
  • 1,858
  • 4
  • 30
  • 50
6
votes
6 answers

Problems with mouseout event

I'm using JavaScript to hide an image and show some text thats hidden under it. But, when the text is shown if you scroll over it, it fires the mouseout event on the container, that then hides the text and shows the image again, and it just goes…
Juan
  • 3,405
  • 26
  • 32
6
votes
2 answers

Android Web Development...Div width (more likely inner text) is changing in pixels based on device zoom

I developed an application that interfaces with an institution's emergency alert system. How it works is, when there is an alert, on all of the institution's web pages it displays a scrolling marquee at the top of the page that is put there by…
Riley
  • 148
  • 5
6
votes
4 answers

Drag and drop: jQuery UI or Scriptaculous?

I am in the middle of the road whether to use jQuery UI or Scriptaculous for drag and drop. I am using Ruby on Rails, and Scriptaculous support in Ruby on Rails is superb with the existence of scriptaculous_helper.rb. But I have already use jQuery…
Joshua Partogi
  • 15,141
  • 14
  • 49
  • 72
6
votes
2 answers

mouseover and mouseout events firing on children

The code:
6
votes
6 answers

Script.aculo.us Autocompleter problem in IE

I'm struggling with a problem with the Script.aculo.us Autocompleter control in IE (I've tried it in IE6 & 7). The suggestions fail to appear for the first character is entered into the text box after the page has been loaded. After that initial…
Nick Higgs
  • 1,592
  • 1
  • 15
  • 21
5
votes
0 answers

How do I make window.onbeforeunload wait for animation?

Consider the following JavaScript code, with an animation library (i.e. scriptaculous) to boot. window.onbeforeunload = function(event) { document.body.fade(); } Leaving the page is instantaneous and doesn't wait for the animation to complete.…
1
2 3
24 25