[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Giovanni Battista Lenoci : >>> Yes, fadeOut accept a callback function that is called after the effect >>> end, >>> take a look here: >>> >>> http://docs.jquery.com/Effects/fadeOut#speedcallback >>> >> >> That I allready found. I tried the folowing: >>        $(placeInDOM).replaceWith(he

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Giovanni Battista Lenoci
Cecil Westerhof ha scritto: 2009/10/2 Giovanni Battista Lenoci : first the easy thing: Is there a way to let the fadeOut be finished before continuing? Yes, fadeOut accept a callback function that is called after the effect end, take a look here: http://docs.jquery.com/Effec

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Giovanni Battista Lenoci : > first the easy thing: > >> Is there a way to let the fadeOut be finished before continuing? >> > > Yes, fadeOut accept a callback function that is called after the effect end, > take a look here: > > http://docs.jquery.com/Effects/fadeOut#speedcallback That

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Giovanni Battista Lenoci
first the easy thing: Is there a way to let the fadeOut be finished before continuing? Yes, fadeOut accept a callback function that is called after the effect end, take a look here: http://docs.jquery.com/Effects/fadeOut#speedcallback A question, what placeInDOM contains? is an id? the

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Cecil Westerhof
2009/10/2 Giovanni Battista Lenoci : >> I have the following code: >>        $(placeInDOM).replaceWith(header + fields + footer); >>        $(placeInDOM).find(':submit').click(function() { >>          alert("clicked the submit button"); >>          return false; >>        }); >> The first statemen

[jQuery] Re: Problem with submit button of an inserted form

2009-10-02 Thread Giovanni Battista Lenoci
Cecil Westerhof ha scritto: I have the following code: $(placeInDOM).replaceWith(header + fields + footer); $(placeInDOM).find(':submit').click(function() { alert("clicked the submit button"); return false; }); The first statement places a form with a