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
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
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
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
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
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.
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
7 matches
Mail list logo