[jQuery] Re: Use a link to submit a form w/ the form plug-in

2007-06-10 Thread Mike Alsup
Great technique, Karl! On 6/10/07, Karl Rudd <[EMAIL PROTECTED]> wrote: This has come up a number of times. My suggestion is to use a "proxy link". When the link is pressed it "clicks" the button. That way you don't need to modify any of the backend code, and it will work without JavaScript

[jQuery] Re: Use a link to submit a form w/ the form plug-in

2007-06-10 Thread Karl Rudd
This has come up a number of times. My suggestion is to use a "proxy link". When the link is pressed it "clicks" the button. That way you don't need to modify any of the backend code, and it will work without JavaScript on. Something like this: $(function() { $('input.proxy').each( funct

[jQuery] Re: Use a link to submit a form w/ the form plug-in

2007-06-10 Thread Ken Iovino
errr.. addictive. :) On Jun 9, 8:10 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > Ken, > > You can call ajaxSubmit from the anchor's click handler, but in > general this is not a good way to submit forms because it won't work > when JavaScript is disabled. It makes more sense to use abutton > el

[jQuery] Re: Use a link to submit a form w/ the form plug-in

2007-06-09 Thread Mike Alsup
Ken, You can call ajaxSubmit from the anchor's click handler, but in general this is not a good way to submit forms because it won't work when JavaScript is disabled. It makes more sense to use a button element and then style it using CSS so that it looks like a text link if that's what your UI