[jQuery] Re: Form Plugin issue with multiple submit buttons

2009-10-03 Thread Evgeny

perfect, thanks I got it fixed.

On Oct 3, 6:39 am, Mike Alsup  wrote:
> > Sure, here it is. Thank you!
>
> >http://test.nmrwiki.org/wiki/index.php?title=Special:People&command=/...
>
> Ok, so here is the source for one of your forms:
>
> Administrator (1)
> 
>     
>     
>     
>     
>     
>     
>     
>         
>         
>     
> 
>
> That is not valid markup.  If you look at Firebug you will see that
> Firefox did not interpret this markup the way you had intended:
>
> Administrator (1)
> 
>      type="hidden" value="/people/moderate/" name="command"/>
>     
>     
>     
>     
>     
>         
>         
>     
> 
>
> So the Form Plugin did not bind your submit inputs because they are
> not children of the form in the DOM.
>
> Mike


[jQuery] Re: Form Plugin issue with multiple submit buttons

2009-10-03 Thread Mike Alsup

> Sure, here it is. Thank you!
>
> http://test.nmrwiki.org/wiki/index.php?title=Special:People&command=/...
>

Ok, so here is the source for one of your forms:

Administrator (1)













That is not valid markup.  If you look at Firebug you will see that
Firefox did not interpret this markup the way you had intended:

Administrator (1)












So the Form Plugin did not bind your submit inputs because they are
not children of the form in the DOM.

Mike


[jQuery] Re: Form Plugin issue with multiple submit buttons

2009-10-02 Thread Evgeny

Sure, here it is. Thank you!

http://test.nmrwiki.org/wiki/index.php?title=Special:People&command=/people/moderate/

there are many identical forms with different data.
javascript submission goes to a different url -> to wsgi application,
which is set in the script
/pywiki/media/scripts/people.js
my server side wsgi app receives form data, but is missing the clicked
button.

non-js submission goes through the original url so I've omitted form
action,
that part works fine.

I've looked at the jquery.forms.js - there seem to be two submit
handlers chained -
second one accepts the clicked element, and it's never called in my
case.

Thanks again.
Evgeny.

On Oct 2, 8:02 pm, Mike Alsup  wrote:
> > I've used $(#myform).ajaxForm(options)
> > method to make the form submittable with ajax.
>
> > the problem is that no matter what button I click the
> > form data is the same and  element is not
> > included
> > into the form data, as if it were not a "successul control".
>
> > so at this point form doesn't work as expected.
>
> > is there a way to convey information of which button was clicked
> > with the form plugin?
>
> Please post a link to your page.  There is likely something wrong with
> the markup.


[jQuery] Re: Form Plugin issue with multiple submit buttons

2009-10-02 Thread Mike Alsup

> I've used $(#myform).ajaxForm(options)
> method to make the form submittable with ajax.
>
> the problem is that no matter what button I click the
> form data is the same and  element is not
> included
> into the form data, as if it were not a "successul control".
>
> so at this point form doesn't work as expected.
>
> is there a way to convey information of which button was clicked
> with the form plugin?


Please post a link to your page.  There is likely something wrong with
the markup.