[Seaside] [ANN] Dojo Toolkit
Holger Kleinsorgen
h.kleinsorgen at i-views.de
Sun Sep 5 16:40:23 UTC 2010
Hello,
I've published some packages that help developing applications that use
the Dojo Toolkit (http://www.dojotoolkit.org).
Dojo is a Javascript library that provides DOM queries and manipulation
functions, event handling, Ajax requests, widgets and more.
To get the code:
Squeak:
- Repository: http://www.squeaksource.com/DojoToolkit
- Project page: http://www.squeaksource.com/DojoToolkit.html
- Configuration
Gofer new
squeaksource: 'DojoToolkit';
package: 'ConfigurationOfDojoToolkit';
load.
(Smalltalk at: #ConfigurationOfDojoToolkit) perform: #load.
This is the first configuration one I ever wrote, so it's certainly
buggy ;) I only tested it with Pharo-1.1 Oneclick.
VisualWorks:
- load it from Cincom's public repository, bundle is called
"DojoToolkitBundle"
The examples are registered at /examples/Dojo
I would like to thank the authors of the jQuery package for Seaside.
Although the Dojo library differs in many aspects, the framework of the
jQuery package was very helpful. I actually copied some Ajax-related
code. The Dojo packages are published under the MIT license, so I hope
this is ok.
Three usage examples:
- Button that triggers an Ajax request:
html submitButton
onClick: ( html dojo ajax script:
[: s | s << (( s dojo query: #status)
innerHTML: 'OK' ]);
text: 'Callback'
- A textarea that dynamically expands/contracts its size:
Programmatically:
html div
style: 'width: 400px';
script: html dojoUI new textarea;
with: 'Enter more text.'.
With markup (see http://docs.dojocampus.org/dojo/parser):
html dojoTextarea
style: 'width: 400px';
with: 'Enter more text.'
The packages are not complete yet. Things that is missing:
- dojo.fx
- DojoX (extensions)
and probably a lot more. Dojo is quite extensive.
Cheers, Holger
More information about the seaside
mailing list