if you do not need a view and your component only displays the form
you can just "return form" and pypass the generic view. It will be
faster. I also suggest you use ajax=True. Always call the component
directly as a test that it is working.

On Aug 4, 6:33 pm, G <glenn.calt...@gmail.com> wrote:
> I think I found a workable (but slightly annoying) solution: create
> several mini-forms that only have the submit button, each with a
> different form name. Then I can just use many
> if form_blah.accepts(request.vars, session, formname='form_blah'):
> clauses. I'd still be interested in knowing if there is a better way.
> Another idea I toyed with was using jQuery to connect the .click
> action of a button to cause a jQuery.post(URL('myfunction'),
> {button_name : "yes"}) to send the button press to myfunction, but I'm
> new to jQuery, so didn't put much time into trying it and don't know
> if it would work.
> Thanks,
> G
>
> On Aug 4, 2:23 am, pbreit <pbreitenb...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Coupla other 
> > approaches:http://www.johnnycode.com/blog/2010/04/08/jquery-form-serialize-doesn......
>
> > I'm surprised Jquery doesn't provide better support for this. Seems like a
> > common pattern.

Reply via email to