Re: [Seaside] Why isn’t my serverside callback occurring when I use ‘jQuery ajax’ in 2.9?
renggli at gmail.com
Wed Mar 25 08:30:00 UTC 2009
> This is presumably because the form doesn't actually get submitted?
#serializeThis serializes the element that triggered the event, in
this case this "would" be the button.
The reasons buttons don't serialize are indeed forms: If you serialize
multiple inputs -- for example when you serialize a series of input
fields or a complete form -- you most certainly don't want that a
random button callback (e.g. add item, save, and cancel) is triggered
(in fact, only the last one would actually be executed). That's why
button callbacks are ignored and you are asked to perform your actions
from within the callback of the AJAX element itself. It is only at
that place where you know what action to perform.
To put it simple: The original poster created a AJAX callback that was
supposed to trigger a button callback. Instead of doing this
unnecessary indirection why not simply call the button action from the
More information about the seaside