[Seaside] Seaside and Javascript support

Boris Popov boris at deepcovelabs.com
Mon Jul 17 16:51:58 UTC 2006

I'm not convinced I understand exactly what it is you wish to know, so feel
free to ask more if this doesn't answer it.

1. Your components can implement #script method, which will be included in
the page via <script src="">

 ^ 'self.opener.location=self.opener.location'

2. You can subclass WAScriptLibrary with your own class, which you will need
to add it to your application via

| app |
app := self registerAsApplication: 'store'.
app libraries add: MyScripts.

You can then add your scripts to that class, see WAStandardScripts for a

3. You can print JavaScript directly into HTML via #script:, here's an
example of using YUI's tooltip functionality,

(html submitButton)
 id: 'login';
 attributeAt: 'title' put: 'Click here to log in';
 class: 'smallbutton';
 callback: [self login];
 text: 'Login'.
html script: 'var myTooltip = new YAHOO.widget.Tooltip("myTooltip", {
context:"login" } );'

Hope this helps,


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 Dario
Sent: Monday, July 17, 2006 9:40 AM
To: seaside at lists.squeakfoundation.org
Subject: [Seaside] Seaside and Javascript support

Hello All,
I work with visualWorks 7.4 and with seaside & script.aculo.us support.
I'm interested to integrate Javascript function in this context , but i dont
find documentation do do it.

Any pointers would be greatly appreciated!



-------------- 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/20060717/89ca8a29/smime.bin

More information about the Seaside mailing list