try {
$$(".showing").each(function(value, index) {
value.visualEffect("blind_up");
});
On Oct 24, 10:57 am, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On 24 Oct 2008, at 09:22, Garrett Berneche wrote:
>
>
>
> > How do I figure that out?
>
> Firebug can show you that (in the bit where you see responses to
> requests). I can't remember if the magic proxy object that comes back
> from page.select allows you to do visual_effect. You may just have to
> call the method directly (ie page.select('foo') {|element|
> element.blindUp} or something like that)
>
> Fred
>
> > On Oct 24, 5:48 am, Frederick Cheung <[EMAIL PROTECTED]>
> > wrote:
> >> On Oct 23, 8:02 pm, Garrett Berneche <[EMAIL PROTECTED]>
> >> wrote:
>
> >>> I am trying to collapse a section of the table. I have a css class
> >>> "showing" that just denotes that a row needs to be hidden in exactly
> >>> this situation. In my RJS file I am trying to use the following
> >>> code,
> >>> but it doesn't seem to be working. Any ideas as to why?
>
> >>> page.select('.showing').each do |row| row.visual_effect :blind_up
> >>> end
>
> >>> I know that the class is there (the code above is copied from the
> >>> browser source) and I know the RJS is being executed (other code in
> >>> it runs great.) My thought is that I am using page.select
> >>> incorrectly.
>
> >> What does the generated javascript look like ?
>
> >> Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---