Hi,

I reread the Ajax manual and everything I needed was already there :). The key is to create a hidden form (formlet in this case) and trigger it in the right moment.

I created an updated recipe and an example app: https://github.com/Hobo/hobodoc/blob/master/doc/tutorials/dynamic_ajax_select_menus.markdown

Some questions/notes:

- What's the recommented way of adding code snippets? Using `{: .dryml}` at the bottom seems to break dryml snippets in Github, and using ```xml will probably break the snippet in the Cookbook.

- Should I rename the file so it follows the numbering of the rest of recipes?

- Once the recipe goes live, it would be nice to update the old recipes and add links to the new version. I can do it once we have a public URL.

Warm regards,
Ignacio



El 02/01/13 11:09, Ignacio Huerta escribió:
Hi,

I've used this recipes several times with Hobo 1.0:

-
http://cookbook.hobocentral.net/recipes/33-ajax-filtering-on-a-partially-completed


-
http://cookbook.hobocentral.net/recipes/15-dynamically-populated-select-menus


Now I'd like to do something similar with Hobo 2.0, but
"Hobo.ajaxRequest" is deprecated. I have tried something like this:

$.ajax($('<div>').hjq('buildRequest',{attrs:{"updates":"#my-part"}}))

But, how can I add additional parameters to this call? I have tried
several syntaxes with no luck. On the other hand, it might be better to
use a formlet, what do you think?

Regards,
Ignacio


--
Ignacio Huerta Arteche
http://www.ihuerta.net
Teléfono: 0034 645 70 77 35
Email realizado con software libre

--
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.

Reply via email to