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
On jeudi 31 décembre 2009, kimbaudi wrote:
> 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". H
You can comma up your classes in the observer...
$$('.test_1','.test_2','#some_id','.test_3').each(...
});
HTH
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: "Frédéric"
To:
Sent: Thursday, December 31, 2009 10:30 AM
Subject: Re: [Proto-Scripty] How can I obser
Sorry, but I'm afraid your "simple-but-not-smart way" addresses the problem
because I am observing elements with class, not id.
On Thu, Dec 31, 2009 at 2:30 AM, Frédéric wrote:
> On jeudi 31 décembre 2009, kimbaudi wrote:
>
> > Hi, I know how to observe elements with class="test". However, I wou
On jeudi 31 décembre 2009, Paul Kim wrote:
> Sorry, but I'm afraid your "simple-but-not-smart way" addresses the
> problem because I am observing elements with class, not id.
Oups, sorry. But I guess there is a way to parse all classes defined in
CSS?
--
Frédéric
--
You received this me
That is a great solution if I have a few elements with class that starts
with "test_" or ends with "_test". But what if I have 1,000 elements that
start with "test_" or ends with "_test"? Do you really want me to do this:
$$(.'test_1', 'test_2', ... 'test_1000') or $$('first_test', 'second_test',
.
RE. post 1.
http://pastie.org/762383
There is a pastie to show u how!..
Re post 2.
I don't want -you- to do anything. You are the one with the problem and you
asked how to get round it - so i showed you. It is up to you how you write your
scripts / html in a way that does not require you to hav
Sorry, I was just suggesting a hypothetical. I don't have 1000 listeners and
I understand that doing so will eat memory on the client. I was hoping that
there was a solution where I can find all the elements that have a class
that starts with "test_" and Javascript will be able to add an onclick
ob
Okay, I found the solution to adding onclick observer to elements with a
class that either has a prefix of "test_" or a suffix of "_test". In case
anyone is interested, here is a pastie to add onclick observers to elements
with a class that has a prefix of "test_": http://pastie.org/762432. And
he
you can regex in your class with []
There is documentation on how to do so on the prototype api website
Alex Mcauley
http://www.thevacancymarket.com
- Original Message -
From: Paul Kim
To: prototype-scriptaculous@googlegroups.com
Sent: Thursday, December 31, 2009 11:49 AM
Sub
Dear All
*WISHING YOU A***
[image: image00154.gif]
*2010*
*HAVE A ROCKING YEAR AHEAD** *
* *
*
*
*
*
*FROM:-*
*Mahendra Varandani
9990869026
*
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to t
I was able to fix the problem. Turns out it was related to the
hasLayout bug in IE7 (http://www.satzansatz.de/cssd/
onhavinglayout.html). Basically, the structure of the problem looked
like as follows:
--
.
...
Since div#next_section was set to position: rel
I have a site that is working well in FF3 and IE7 but when I test it
in IE8 all calls to setOpacity don't have any impact. If I set the
browser to IE7 compatibility mode it works fine.
Has another else every experienced this problem? Did you find a
solution?
--
You received this message becaus
I do not experience your problem of having Element.setOpacity not working in
IE8 w/o compatibility mode. Here is a pastie that demonstrates
Element.setOpacity working in IE8: http://pastie.org/762888. If you view
this in IE8 w/o compatibility mode, you will notice that the setOpacity
makes the blac
Hi All,
I wan't to have a small section of a web page that occasionally fades
in and out between two div contents.
Here is my first noddy attempt (below).
When I run this in Firefox (3.5.6) the CPU (Core 2 Duo 2.6) idles away
at 1%.
When I run this in IE (8.0) both CPU cores hit 50% during each
15 matches
Mail list logo