MN wrote: > i have a restful path for my application: > > get '/search/type/:user_type/name/:search_for_name' >
Using standard form GET query parameters is restful, too. If adding an option for query parameters is possible/easy you should try that. > > > and with iui i like to make a form with two input fields > And those two input fields need to be put into the URL path? > but how i can do it? It's probably easiest to patch iUI to do this. Use either the iui-0.40-dev1 zip release or the latest version from Mercurial. You should be able to add a couple of lines to the submitForm routine to assemble your 'restful path' in the "action" string that is currently coming from form.action and being passed to iui.showPageByHref(). > i like that my form uses the input values and create a get? > > is there some automatic way? > Not yet. If you create an Issue for this in the issue database, we'll at the very least think about creating an extension hook so you can do this without modifying iui.js itself. > i think the showPageByHref is the right function for it? > Yes. (as explained above) -- Sean --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" 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/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
