[jQuery] Re: prevent more than one submit in ajaxsubmit

2008-06-19 Thread Isaak Malik
Well, I don't think the BlockUI plugin would be the best solution as it's
not very user-friendly and personally I would find it very annoying if a
whole web page is blocked. I rather suggest you just disable the submit
button, which PayPal also does with the last pay now button to prevent
multiple payments.

You can disable the submit handler by using:
$('input[type=submit]').attr('disabled', true);
or create a custom effect if it's something else that submits the form, e.g.
an image with an onclick event.
$('div#container').html('Loading, please wait...');

If the choice where up to me I'd go for the second one.

On Wed, Jun 18, 2008 at 7:09 PM, eldersoto <[EMAIL PROTECTED]> wrote:

>
>
> You can Block the page:
> http://www.malsup.com/jquery/block/#page
> Saludos.
> Don Quijote de Nicaragua.
> Elder Soto
>
>
> "Sebastián V. Würtz" wrote:
> >
> >
> > Guys I need some litle help.
> >
> > var v = jQuery("#send_form").validate({
> >.
> >..
> >
> > },
> > submitHandler: function(form) {
> > jQuery(form).ajaxSubmit({
> > dataType: "json",
> > success: process_result
> > });
> > }
> > });
> >
> >
> > how i can prevent or hide or disable the submit button or it behaviour
> > when the first submit happend?
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/prevent-more-than-one-submit-in-ajaxsubmit-tp17985286s27240p17987588.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>


-- 
Isaak Malik
Web Developer


[jQuery] Re: prevent more than one submit in ajaxsubmit

2008-06-18 Thread eldersoto


You can Block the page:
http://www.malsup.com/jquery/block/#page
Saludos.
Don Quijote de Nicaragua.
Elder Soto


"Sebastián V. Würtz" wrote:
> 
> 
> Guys I need some litle help.
> 
> var v = jQuery("#send_form").validate({
>.
>..
>
> },
> submitHandler: function(form) {
> jQuery(form).ajaxSubmit({
> dataType: "json",
> success: process_result
> });
> }
> });
> 
> 
> how i can prevent or hide or disable the submit button or it behaviour 
> when the first submit happend?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/prevent-more-than-one-submit-in-ajaxsubmit-tp17985286s27240p17987588.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.