Your travails motivated me to make this sort of thing a lot easier, because this sort of requirement is something I've run into several times.
If you weren't on the jQuery branch I would have pointed you at http://cookbook.hobocentral.net/recipes/33 Instead, the jquery branch now has the fancy new 'hot-input' tag. (See my other post for details). It should be a lot simpler to use than observe_field, and a lot more useful. cheers, Bryan On Wed, Dec 21, 2011 at 12:45 PM, Bob Sleys <[email protected]> wrote: > 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. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. 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.
