until then I don''t have any problem with .rjs rendering , but I am
using
a plugin which build a network tree
<div id= "network_tree"
<%= live_tree :network, { :initial_data => @root,
:initial_data_options => { :depth => 1 }, :allow_click_branch => true
} %>
</div
this helper generating script in my page
<div id= "network_tree"
<script type="text/javascript">
//<![CDATA[
var network=new LiveTree("network",{ allowClickBranch:true,
dataUrl:"/profils/network_live_tree_data",
initialData:{id:''22'',lib:''22 :
aabe307'',name:''22 : aabe307''}
});network.render();
//]]>
</script>
</div
I need to render this tree again from an .rjs , I trying writing the
rails code in partial, and using page.replace.html to replace the
innerHTML, I also tried the page.replace.. no way... if I try with a
another partial with simple HTML code , it''s ok, so I believe I am
doing
something wrong in rendering this helper.... but I have no idea why ?
any clue will be aprpciated
thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---