On 9/2/06, Dominic Son
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> hi guys. was wondeirng if anyone could help -> using acts_as_tree, when
> a user selects a parent, how would i make a child node pop up in another
> textfield/textbox? (and sub child nodes, on and on)...
>
> any help would be appriciated..
This is a little bit vague however...
If the data is not already on the client side when the user clicks the
parent, then you will need to make an AJAX call to the server to get
the children. You could use RJS to insert the popup or you could send
the data back to the client in XML or JSON and let the JavaScript
process it and create the popup contents.
Peter
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---