On Feb 21, 10:49 am, "RobG" <[EMAIL PROTECTED]> wrote:
> If you use Scriptaculous and Prototype, you will learn Prototype's
> version of javascript which is quite different to "classic" javascript
> - you will learn very little about the underlying language.
>
> For example, presuming that "cell" refers to a TD element, your line:
>
> var data_row = Element.extend(cell).up('tr');
>
> can be replaced with:
>
> var data_row = cell.parentNode;
Yeah, thank you! In that case I am in an anchor inside a TD. Going up
with up('tr') seems more clear to me because I don't care how many
parents does that element have, I just want to get a reference to the
enclosing row.
> > Is there something I can do to get the appear/fade effect on table
> > rows?
>
> What fade effect would you like - do you want the row to fade, then
> the lower rows to slide up? Or both at once? How fast?
This is a Rails application and I am using Prototype and
script.aculo.us already. The code I use that works in Safari and
Firefox but not in IE is:
Effect.Fade(data_row, {afterFinish: function ()
{ data_row.remove() }});
It would be enough to be able to emulate that. Since the row is
effectively removed from the DOM the rest of the rows already slide up
in the three browsers. It is just the fade effect that is not working
in IE 6.
The workaround I had in mind was to iterate over the text nodes in the
cells and fade them (not tested), which would be your suggestion?
-- fxn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---