[Seaside] [Scriptaculous] Configure element's classfrominsidetheupdater?

Boris Popov boris at deepcovelabs.com
Tue Jun 27 19:14:21 UTC 2006

Excellent, this works the magic,

(html request)
 triggerForm: fid;
 onSuccess: (SUStream on: 'alert("done");');



DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com


This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any

Thank you.

-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Lukas
Sent: Tuesday, June 27, 2006 12:05 PM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: Re: [Seaside] [Scriptaculous] Configure element's

> 3. How do you define onSuccess? I've tried the following with the
> non-existing 'bag', but don't see the error in the Firefox's JavaScript
> console, which prompts me to think that its not being called. Am I using a
> wrong protocol for this? The request itself works just fine.
> (html request)
>   triggerForm: fid;
>   onSuccess: 'bah()';
>   yourself

3.1 The arguments passed to JavaScript objects get streamed out using
#asJavascript. This means 'blah()' gets transformed to a JavaScript
string literal, something you don't want in this case. If you need to
put raw code you can replace the string with something like SUStream
on: 'bla()' that will answer the right thing.

3.2 Event handlers expect something that can be converted to a
function. Most objects can be converted to a function, but sometimes
this is not really meaningful.

> Hope this helps,
> Lukas

Lukas Renggli
Seaside mailing list
Seaside at lists.squeakfoundation.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3370 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20060627/1e629f16/smime.bin

More information about the Seaside mailing list