Hi, I know how to observe elements with class="test". However, I would
like to know how I would be able to observe elements with
class="test_1", class="test_2" and class="test_3" or
class="first_test", class="second_test" and class="third_test". Here
is my pastie url that observes elements with cla
Hi, I have come up with 2 ways to create a modal dialog. The first way
is to statically create the html with a style of display:none; and
using event handlers to show/hide the html. The second way is to
dynamically create the html using Prototype (new Element(tagName[,
attributes]). Which way is "
Hi, I have a hidden block element absolutely positioned to the bottom
right of my webpage. I am trying to display this block element when I
mouseover that area and hide this block element when I mouseout from
that area using Effects.BlindUp and Effects.BlindDown. At first
glance, my webpage seems t
Hi, I am able to use Effect.fade on Prototype-extended elements. So,
instead of doing the following:
Effect.Fade('id_of_element');
I can do this instead:
$('id_of_element').fade();
However, when I try to use Effect.toggle on Prototype-extended
elements, it doesn't work. This works:
Effect.tog
Hi, does anybody know how I can pause and resume Prototype's
PeriodicalExecuter? Basically, I have a simple example script that
periodically executes every 1 second, but I want there to be a 5
second delay for each 5th time the script is executing. Here is the
link to the example script I posted
Hi, I have a form with multiple text inputs (i.e. ... ) which all have Ajax.Autocompleter initialized. Now when
I remove any of these autocompleting text inputs from the DOM, I want
to stop observing events on these elements. However, Scriptaculous
does not provide a way to unregister all the even
Hi, I created a simple page that demonstrates setOpacity NOT working
consistently between Firefox3, InternetExplorer7, Opera9, and Safari3:
document.observe("dom:loaded", observeElement);
function observeElement() {$('clickMe').observe('click', opacityDiv);}
function opacityDiv() {
va
Hi, I am having trouble with using Element.observe() with $$(). If I
have an element with id="id", I can do this:
$('id').observe('click', function() {alert('clicked');});
However, if I have elements with class="class", I can't do this:
$$('.class').observe('click', function() {alert('clicked')
Hi, I was inspired by
http://www.exit404.com/2005/57/unobtrusive-persistant-scriptaculous-effects
to create a menu that would expand and contract the menu whenever I
click on the menu header. Instead of using Effect.BlindDown and
Effect.BlindUp, I decided to use Effect.toggle to toggle the unord
Hi, if you check the demo for Effect.toggle('slide'), Effect.SlideUp,
Effect.SlideDown using the Opera browser, you will notice that you get
Effect.toggle('blind'), Effect.BlindUp, Effect.BlindDown effect
instead.
http://github.com/madrobby/scriptaculous/wikis/effect-toggle
http://github.com/madr
Hey everybody, I noticed that Scriptaculous doesn't have documentation
on Effect.ScrollTo anymore. (If you look at
http://github.com/madrobby/scriptaculous/wikis,
you will notice that Effect.ScrollTo is faded out and not linked to
any documentation/demo). I guess it is being phased out, although
Hi, I have an onclick event handler that will BlindUp a element
if it is closed and BlindDown the element if it is opened.
However, if I click on the event handling too quickly, the BlindUp and
BlindDown effects do not work well: The text blinds up and down, but
the background-color is no longer
Hi, I am unable to get the height of the tag using
Element.getDimensions although I can get the width of the tag
fine. How can I get the height of the tag? I have my simple
code pasted at http://pastie.org/468828. Here is the snippet of code
below as well:
function alertBodyDim() {
/* $
Hi, I have taken a look at the Prototype API and it says that
document.viewport.getDimensions() should return the size of the
viewport. I have created a simple page with a with width of
100px and height of 100px. I am hoping to alert the height of the
browser window, but I get the height of the
14 matches
Mail list logo