Seaside and Javascript support

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Seaside and Javascript support

dtrussardi@tiscali.it
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!

Thanks!

Dario


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: Seaside and Javascript support

Boris Popov, DeepCove Labs (SNN)
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="">

script
 ^ '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
sample

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,

-Boris

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

[hidden email]

CONFIDENTIALITY NOTICE

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
attachments.

Thank you.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Dario
Trussardi
Sent: Monday, July 17, 2006 9:40 AM
To: [hidden email]
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!

Thanks!


Dario


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

smime.p7s (4K) Download Attachment