Something like that yes. Of course if action is missing current behavior will apply.
Br's, Marius On Aug 25, 12:34 pm, Timothy Perrett <timo...@getintheloop.eu> wrote: > Marius, > > So to clarify, your proposing: > > <lift:MySnippet form="post" action="???"> > > Cheers, Tim > > On 25/08/2009 10:24, "marius d." <marius.dan...@gmail.com> wrote: > > > > > Well you can put a regular lift form that submits to itself in terms > > or URI, do the computation in your processing function and redirect- > > with-state to your new page. > > > So this would imply a redirect which one can say that it is suboptimal > > as it implies one additional request. Personally I see no reason why > > not allowing for non-ajax form to have a different user-specified > > action attribute. So IMO we could add this support quite easily. If > > someone thinks that we shouldn't do this, I'd love to see the > > arguments. > > > Br's, > > Marius > > > On Aug 25, 10:38 am, Ulises <ulises.cerv...@gmail.com> wrote: > >> Hey people, > > >> I'm trying to have a form be submitted to a different page (so, not a > >> POST/GET back). The scenario is a search form which renders on a front > >> page as well as on the search page. > > >> E.g.: > > >> /index > >> should include a form that submits to /search > > >> /search > >> form that submits to itself > > >> Any hints on how to do this/were to look to learn how to do this? I > >> guess that the form on the front page could be just static HTML > >> however I'm not entirely sure how /search would deal with the form > >> submission from a static form ... > > >> Cheers, > > >> Ulises --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---