All of your forms must have an event handler associated with their onSubmit
event.  These event handlers need to do their AJAX stuff, and then stop the
browser from doing the default action by returning false.  Since you are
creating these forms AFTER the page has already loaded, you need to either
create this event handler as part of creating the form, or use $().live() in
order to capture the event for ALL forms, present or future.  However, I
don't know that .live will work for that, I haven't tried, you will have to
experiment.

On Wed, Jan 6, 2010 at 11:06 PM, Alex <alex.kasu...@googlemail.com> wrote:

> Hello everyone,
>
> I have a problem submitting a form tag with submit buttons. many of
> the scripts used in that page require the name of these submit buttons
> to work correctly. I already read about the serialize function and
> submit buttons so tried the form plugin as suggested on the jQuery
> page but i can't get this to work.
>
> On a single site there is no problem using the plugin but the site is
> only loaded at the beginning, after that everything works with ajax
> requests and the page is never reloaded. The response of nearly all
> ajax requests is a new page which is loaded into a draggable div so
> that the site works like an OS. My problem is that the form tags that
> are contained in these responses aren't submitted by the plugin, they
> have their normal function and reload the webpage which is
> catastrophical for that layout.
>
> If you need more information please let me know.
> Sorry for my english ;-)
>



-- 
John Arrowwood
John (at) Irie (dash) Inc (dot) com
John (at) Arrowwood Photography (dot) com
John (at) Hanlons Razor (dot) com
--
http://www.irie-inc.com/
http://arrowwood.blogspot.com/

Reply via email to