Displaying 1 result from an estimated 1 matches for "resource_detail".
Did you mean:
resource_details
2009 Apr 24
2
passing a value to a js function via button_to_function
...tion ''Show'',''showresource1()'',:class =>"ui-button
ui-state-default ui-corner-all", :id => resource.id %></td>
js:
<script type="text/javascript" charset="utf-8">
function showresource1()
{
jQuery("#resource_details").load(
''http://localhost:3000/resources/show/4'').dialog(''open'');
}
</script>
I can open the dialog and load this static URL, but am stumped re
passing resource.id from the button_to_function down to the js function.
Any help would be Much Appreci...