1st: Are you sure $( element_id ) returns an element, element_id must
be element id or element it self.
2nd: the code must be $( element_id ).insert(foo)
insert(element, { position: content }) <- what is written in the
manual is strange (+ there weren't no examples :( )
It's so if you use Element.insert(element, { position: content }) but
when using extended element you can just
$(element).insert({position: content }); as position can be before,
after, top, bottom, and content is in your case foo
you can also write $(element).insert(foo) witch is same as $
(element).insert({bottom: foo})
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---