Hello -
I''m having a problem using the Live Tree plugin [1], which is designed
to create an Ajax-based tree visualization of an acts_as_tree
model. I am embedding the Live Tree in a partial [id
=''goals''], and
it works fine until I update the partial, such as by calling the
remote function "Merge".
When the _goals.rhtml is loaded, instead of loading the tree in the
partial, a Live Tree is written over the entire window, without style
sheets or javascript headers (so its functionality is impaired, and
the page never finishes loading).
---
<div id=''goals''>
<%= live_tree(:goal_tree, {
:initial_data_root => @root,
:include_parents => true,
:showCheckboxes => showCheck,
:depth => 5,
}) %>
</div>
<%= link_to_remote "Merge", {:url=>"/event_trees/merge/
#{@root.id}", :submit=>"goals",:update =>
''goals'',}, {}%>
---
Does anyone have suggestions about what to do here? This problem has
appeared in the past [2] but was unresolved :(
Thanks!
Dustin
[1] http://www.epiphyte.ca/code/live_tree/doc/index.html
[2] http://groups.google.ca/group/rubyonrails-talk/msg/6c01d200d5f3a1c5
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---