[Seaside] Jquery submit loads page

Norbert Hartl norbert at hartl.name
Wed Oct 19 16:25:13 UTC 2011


Am 19.10.2011 um 18:11 schrieb Paul DeBruicker:

> On 11-10-19 09:08 AM, Norbert Hartl wrote:
>> html form with: [
>> 	html submitButton
>> 		onClick: (html jQuery ajax serializeForm );
>> 		with: 'foo' ]
> Adding bePush would stop it from acting like a submit button, in the traditional sense, but still style it like one and the form would still be POSTed because of the jQuery you include.  IS that what you have in mind?
> 
> 
> html form with: [
> 	html submitButton
> 		bePush;
> 		onClick: (html jQuery ajax serializeForm );
> 		with: 'foo' ]

No, I tried this myself but got the same behaviour on submitButton and button. Both alternatives triggered a page load. With Lukas' fix it works: submitting the form without reloading the page.

Norbert



More information about the seaside mailing list