Well I got this working but not very Hoboish I'm sure there is a better
and easier way but for now at least this works.
<%= select_tag "project_select",
options_from_collection_for_select(@current_organization.projects,
"id", "list_name", @current_project.id),
{:include_blank => true} %>
<script type="text/javascript">
//<![CDATA[
$('#project_select').change(function() {
$("#project_select").hjq_spinner({message: "Loading..."});
var data = 'id=' + $("#project_select option:selected").val();
$.ajax({
url : '/projects/select',
type : 'GET',
success: function(request){$("#project_select").hjq_spinner("remove")},
data : data
})
});
//]]>
</script>
Thanks again and please don't think I don't appreciate all the work done
here.
Bob
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/hobousers/-/gYzwyIx1s0gJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.