[jQuery] Re: Problem with double submit of and form

2009-07-01 Thread jogep
i try it know with this code, but the problem with double submit of the form still exists. I read that I can have so many $(document).ready(function () { }); I need. a href=# id=testlinkShow Test/a div id=tpanlegen style=width: 100%; display: none; form id=teilprojektcreate

[jQuery] Re: Problem with double submit of and form

2009-06-26 Thread fredrik
Hum, sorry not on top of my head. I'll try your code when I get home. ..fredrik On Jun 24, 6:39 pm, jogep joh...@googlemail.com wrote: when I try your code the form will still executed twice. The Alert tells me 1 closest form . Any other Idea? Thank You Johannes

[jQuery] Re: Problem with double submit of and form

2009-06-26 Thread Eric Garside
Your code is confusing. Why do you have the script tag wrapped inside of the form element? Why do you have two script tags a couple tags away from each other instead of inside your header definition? Your script is chock full of errors. Here's a couple of suggestions: 1. Move both of your

[jQuery] Re: Problem with double submit of and form

2009-06-24 Thread fredrik
You have to prevent the form it self from posting. I think when you return false, you return it to the jQuery event, not the post event. Try this: $('#tpcsubmit').closest(form).submit(function(e) { e.preventDefault(); $(this).ajaxSubmit(optionstpcsubmit); }); ..fredrik On Jun 24, 10:41 

[jQuery] Re: Problem with double submit of and form

2009-06-24 Thread jogep
thanks for fast response. Sorry but the form was still executed twice. Best Regards Johannes Geppert - web: http://www.jgeppert.com twitter: http://twitter.com/jogep On 24 Jun., 11:42, fredrik carl.fredrik.bonan...@gmail.com wrote: You have to

[jQuery] Re: Problem with double submit of and form

2009-06-24 Thread fredrik
What happens when you tie the event to the form instead of the submit button: $('#teilprojekt_create').submit(function(e) { e.preventDefault(); $(this).ajaxSubmit(optionstpcsubmit); }); If that doesn't work, see what the length of $('#tpcsubmit').closest (form) is.

[jQuery] Re: Problem with double submit of and form

2009-06-24 Thread jogep
when I try your code the form will still executed twice. The Alert tells me 1 closest form . Any other Idea? Thank You Johannes - web:http://www.jgeppert.com twitter:http://twitter.com/jogep On 24 Jun., 16:01, fredrik