chubaka wrote:
> ...
>
> ----------------
> var blas = document.getElementsByClassName( 'foo-class', 'foo-id' );
> blas.each
> (
>  function( bla )
>  {
>  var subbla = Element.childrenWithClassName( bla, 'subbla-class',
> true );
>  }
> );
> --------------
>
>
> This scheme worked well till script.aculo v1.6.4
> Since v1.6.5 I'll receive this error message:
>
> "Element.childrenWithClassName is not a function"
>
> How can/must I rewrite the code?
The method getElementsByClassName() is now available to any node:

var blas = $('foo-id').getElementsByClassName('foo-class');
blas.each(function( bla ) {
  var subbla = bla.getElementsByClassName('subbla-class');
});

Regards,
Ken Snyder

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to