This is weird... when FF renders this HTML for me it is putting the divs
inside each other like the following.  I have never seen this behavior
before (but explains why the code is working like it is):
        <div id="OUT">
            <div class="out out1">
                <div class="out out2">
                        ...
                        </div>
                </div>
        </div>    

-----Original Message-----
From: prototype-scriptaculous@googlegroups.com
[mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of kstubs
Sent: Wednesday, August 25, 2010 12:48 PM
To: Prototype & script.aculo.us
Subject: [Proto-Scripty] invoke method update

I'd expect all div.out containers to be updated with the value
"testing", but just getting the first one.  What is wrong with the
following code?

Expected:
testing
testing
testing
testing

Actual:
testing

The code:
        <ul>
            <li><button onclick="$
('OUT').select('div.out').invoke('update','testing');">Test</button></
li>
        </ul>
        <div id="OUT">
            <div class="out out1"/>
            <div class="out out2"/>
            <div class="out out3"/>
            <div class="out out4"/>
        </div>

-- 
You received this message because you are subscribed to the Google
Groups "Prototype & script.aculo.us" group.
To post to this group, send email to
prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to