Thx Mike!
I was on 1.0.3 v.95 looks like .96 or .97 fixed it.
On Apr 25, 11:22 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> Are you using the latest version of the form plugin?
>
> http://dev.jquery.com/browser/trunk/plugins/form/jquery.form.js?forma...
>
> Mike
>
> > So if I have form a, b, c
Are you using the latest version of the form plugin?
http://dev.jquery.com/browser/trunk/plugins/form/jquery.form.js?format=txt
Mike
So if I have form a, b, c, and I click form b's submit button it
works. But if I then click on form a's submit button, it submits form
b.
I thought that both of these methods were working, but there is a
snag. The first form that gets submitted persists for all subsequent
submits.
So if I have form a, b, c, and I click form b's submit button it
works. But if I then click on form a's submit button, it submits form
b.
Any ideas?
Hi Buzz,
ajaxSubmit is the function that actually uses the options and so they
must be passed in by the caller. If you call it yourself, you must
pass the options. When you use ajaxForm it binds the form's submit
event and invokes ajaxSubmit for you, passing in the options that it
has captured
Thx Mike that worked. I guess I am confused (ignorant ) on why
attaching the options to the form using:
$('#myForm1').ajaxForm(options);
does not work when using ajaxSubmit to submit the form:
$('#myForm1').ajaxSubmit();
but when using this pattern the form does have the options att
My suggestion is to use a "proxy link". When the link is pressed it
"clicks" the button.
Something like this:
$(function() {
$('input.proxy').each( function() {
$('' + this.value+ '')
.attr( 'class', this.className )
.click
Some designers spec links instead of buttons. I could strip down a
button using css; but using an is easier.
On Apr 18, 5:12 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote:
> Why would you need to use anchors?
>
> On 4/18/07, Buzzterrier <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Thanks Aaron that
Oops, yeah, you've got to pass the options arg. You could just prep
it with ajaxForm and then use the submit event.
$('form.photoForm').ajaxForm(options);
...
$('input.btnPhotos').click(function(){
$(this.form).submit();
return false;
});
That should work.
Mike
On 4/18/07, Buzzterrie
Why would you need to use anchors?
On 4/18/07, Buzzterrier <[EMAIL PROTECTED]> wrote:
Thanks Aaron that worked! I would still like to get this to work with
anchors, because I know I will need to do so in the future.
Take care.
On Apr 18, 3:59 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote:
Thanks Aaron that worked! I would still like to get this to work with
anchors, because I know I will need to do so in the future.
Take care.
On Apr 18, 3:59 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote:
> Try this:
>
> Change:
>
>
>
> To:
>
>
>
> Delete:
>
> //create a click even and add su
Hi Mike,
Thanks for the response. When I use this method, it does hit
ajaxSubmit() but my options object is void. Aaron's method works,
but I know I will have a requirement to do this same type of thing,
with anchors instead of submit buttons.
I tested this on your formTest.html example and go
Try this:
Change:
To:
Delete:
//create a click even and add submit behavior to all inputs that has
the btnPhotos class elements
$("input.btnPhotos").click(
function(){
this.form.submit();
});
because it's no longer necessary
On 4/18/07, Buzzterrier <[EMAIL PROTECTED]>
Hi Buzz,
Try replacing this line:
this.form.submit();
with this:
$(this.form).ajaxSubmit();
Mike
On 4/18/07, Buzzterrier <[EMAIL PROTECTED]> wrote:
Hello,
I am using the forms plugin, and have a page that dynamically creates
multiple forms for editing photos. Each form has a button, tha
13 matches
Mail list logo