Hi Kevin,

Have you seen this tutorial? I think it describes what you need with
Hobo 2.0: http://hobocentral.net/tutorials/dynamic_ajax_select_menus

        <field-list: replace>
          <do part="shipping">
            <field-list fields="name, country, city">
              <country-view:><hot-input ajax /></country-view:>
              <city-view:>
                <if test="&this_parent.country">
                  <select-one options="&this_parent.country.cities"/>
                </if>
                <else>
                  <select disabled><option>First choose a
country</option></select>
                </else>
              </city-view:>
            </field-list>
          </do>
        </field-list:>

Warm regards,
Ignacio

El 27-04-2015 a las 17:36, kevinpfromnm escribió:
> Interesting.  It looks like it might fit the bill, though it seems to
> not work out of the box with a select-many.
> 
> On Monday, April 27, 2015 at 9:03:15 AM UTC-6, Bryan Larsen wrote:
> 
>     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/tutorials/dynamic_ajax_select_menus>, 
>     - http://cookbook.hobocentral.net/tagdef/hobo_rapid/forms/formlet
>     <http://cookbook.hobocentral.net/tagdef/hobo_rapid/forms/formlet>, 
>     - http://cookbook.hobocentral.net/tagdef/hobo_rapid/inputs/hot-input
>     <http://cookbook.hobocentral.net/tagdef/hobo_rapid/inputs/hot-input>
> 
>     On Mon, Apr 27, 2015 at 10:55 AM, kevinpfromnm <[email protected]
>     <javascript:>> 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] <javascript:>.
>         To post to this group, send email to [email protected]
>         <javascript:>.
>         Visit this group at http://groups.google.com/group/hobousers
>         <http://groups.google.com/group/hobousers>.
>         For more options, visit https://groups.google.com/d/optout
>         <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]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[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