[Seaside] Ajax and error management

Thierry Thelliez thierry.thelliez.tech at gmail.com
Mon May 16 20:18:48 UTC 2011

ok thanks. Almost there...

Now I am trying to figure out how to pass arguments to a Javascript function.

onError: is supposed to pass three parameters.  But the alert test
below generates double quotes around 'Arg1 =' + arg1. Is there a
different way to generate a JS function from Seaside?

html div
     id: (html nextId);
      script: (html jQuery new dialog
               onOpen:	(html jQuery ajax html: myComponent;
                                              onComplete:   ( JSFunction new
		                                            arguments: (Array with:
'arg1' with: arg2 with: 'arg3');
		                                           add: (JSStream new
				                    nextPutAll: 'alert';
				                    argument: '''Arg1 = '' + arg1';


More information about the seaside mailing list