That's one of those things that's supposed to be easier in Hobo 2; you
should be able to do it without Javascript.

Check out hot-input, which is designed for this scenario.   It's a fairly
thin wrapper around formlet, which is what's doing the actual work.

- http://cookbook.hobocentral.net/tutorials/dynamic_ajax_select_menus,
- http://cookbook.hobocentral.net/tagdef/hobo_rapid/forms/formlet,
- http://cookbook.hobocentral.net/tagdef/hobo_rapid/inputs/hot-input

On Mon, Apr 27, 2015 at 10:55 AM, kevinpfromnm <[email protected]>
wrote:

> It's a relatively common pattern, one input that's narrowed in scope based
> on another input's selection(s).  Prior to hobo 2, one could do something
> like this:
>
>       Hobo.ajaxRequest(window.location.href, ['part-name'],
>         { params: Form.serialize(this.up('form')), method: 'get', message:
> "Updating...", asynchronous: false });
>
> Apply that to any event you'd like on an input in a form and you can
> update another part of the form.
>
> But with 2.0, the only documented way to interface with ajax is through a
> form or link update.  I've ran through it once, creating a form and copying
> the inputs over into a hidden form and then submitting that.
>
> Before I repeat that effort, I figured that there had to be a better way,
> something closer to what 1.3 had and wanted to see if anyone had
> suggestions.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/hobousers.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to