[Rails] Master-Details with Ajax
purplehaze
roman.ilin at gmail.com
Wed Dec 14 12:46:39 GMT 2005
I have in my rhtml file an master-detail data structur
<ul id="master">
<li><%= link_to_remote 'aaa', :update=>'details'... %></li>
<li><%= link_to_remote 'bbb', :update=>'details'... %></li>
<li><%= link_to_remote 'ccc', :update=>'details'... %></li>
...
</ul>
<div id="details"></div>
In details goes show, edit and another actions.
If I update somewhat in details I will be sure that it goes updated in
master too.
Also I put
<script>
new Ajax.Updater('master_item_id', "/organization/get_tree_node/org_id",
{asynchronous:true, evalScripts:true});
</script>
to bottom of my updated detail
In Firefox master-item all works perfect, but IE says 'Unknown
JavaScript Error'
Any Ideas to this problem?
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list