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()
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
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
Hi, I am unable to get the height of the body tag using
Element.getDimensions although I can get the width of the body tag
fine. How can I get the height of the body 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 div 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
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 class=test and
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
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:
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. input type=text
name=list_1 id=list_1 ... input type=text name=list_5
id=list_5) 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
10 matches
Mail list logo