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.
Show Test
Test 1
Test 2
$(document).ready(function () {
$('#tpcsub
thank you for the lot of suggestions to change the code.
The reasen for some of the problems is, that i work on an Plugin
for the Web Framework struts2.
See http://code.google.com/p/struts2-jquery/
and the Showcase
http://www.weinfreund.de/struts2-jquery-showcase/
with this plugin you can create
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 script
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 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
> -
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 wrote:
> What happens when
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.
console.log($('#tpc
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 wrote:
> You have to prevent the form it self from p
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:4
8 matches
Mail list logo