[Seaside] Javascript calls through jQuery

Johan Brichau johan at inceptive.be
Mon Mar 3 06:21:06 UTC 2014

On 03 Mar 2014, at 02:09, Esteban A. Maringolo <emaringolo at gmail.com> wrote:

> Any suggestion?

That's because the button is triggering a submit. Change it to a push button as follows:

html form: [
"...snipped code"
 html button
   onClick:  (html jQuery ajax
                  onComplete: (
                    html jQuery getJson
                      json: [:json | self renderJsonResponseOn: json ];
                      onSuccess: 'console.log(arguments[0])'));
   with: 'Filter!'

> ps: Is there a way to generate pretty-printed JS and HTML source?

afaik, you have to use the browser development tools for that: 



More information about the seaside mailing list