Displaying 1 result from an estimated 1 matches for "drop_wp".
Did you mean:
drop_fpu
2007 Nov 23
0
Restful droppable delete
...es not work.
This does work:
{{{
link_to_remote("delete", :url => project_wiki_page_path(@project,
page), :method => :delete, :title =>project_wiki_page_path(@project,
page))
}}}
But this doesn''t:
{{{
<script type="text/javascript">Droppables.add("drop_wp", {
onDrop:function(element){
new Ajax.Request(''''+element.title, {asynchronous:true,
evalScripts:true, method:''delete''});
}
});
</script>
}}}
Note that we are using plain prototype here because at the moment the
page is generated on the server w...