Keith;
Thanks alot for this solution.
It fixed my problem of getting the 'Object doesn't support this
property or method..' message.
I was calling var.readAttribute instead of the correct $
(var).readAttribute, looks like it happens quite a bit but this is
definetely the solution.
Cheers.
On May 2, 10:06 pm, Keith Pitt <[EMAIL PROTECTED]> wrote:
> Gday eggie5,
>
> I think I know where your problem is. These lines here:
>
> var filter=document.createElement('li');
> filter.addClassName('filter');
>
> Your creating an 'li' then trying to add a class name to it by using the
> "addClassName" function.
> That function only gets applied to elements when you grab the element
> via the "$" function. By
> default, DOM elements dont have that method. So I guess you have a few
> options:
>
> var filter = $(document.createElement('li'));
> filter.addClassName('filter');
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---