[ANN] Dojo Toolkit

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

[ANN] Dojo Toolkit

Holger Kleinsorgen-4
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
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Dojo Toolkit

Lukas Renggli
Very cool. Thank you for sharing this!

Lukas

On 5 September 2010 18:40, Holger Kleinsorgen <[hidden email]> wrote:

> 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
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



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

Re: [ANN] Dojo Toolkit

Lukas Renggli
I only noticed a single small problem in
DijitDemoTreeComponent>>#jsonTreeWithCallbacks:. This method refers to
the class Json, that does not exist in my image (ok, I did not use the
Configuration to load the dependencies).

So, I replaced the last line of this method

    ^ Json render: tree

with

    ^ tree asJson

so it would use the JSON infrastructure of the Seaside Javascript
support package Javascript-Core. Then the example worked.

Lukas




On 5 September 2010 23:08, Lukas Renggli <[hidden email]> wrote:

> Very cool. Thank you for sharing this!
>
> Lukas
>
> On 5 September 2010 18:40, Holger Kleinsorgen <[hidden email]> wrote:
>> 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
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
>
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
>



--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside