[Seaside] Re: Accessible news slider in JQueryWidgetBox (was:
Adding javascript without encoding)
Sebastian Van Lacke
svanlacke at caesarsystems.com
Mon Nov 23 19:52:42 UTC 2009
Thank you Torsten,
I am using Seaside 2.8 for the moment, so I couldn't use your
implemtentation.
I tried with your suggestion about the WAFileLibary, the problem is that
Seaside load first the library scripts, and then all the defined by the
components, and my script doesn't work with that order. And I don't want to
put all the javascript code in the library, I am using Apache for that.
I solved it putting the script on an external file, and loaded in the
correct order. By this way Seaside doesn't encode it.
updateRoot: aRoot
super updateRoot: aRoot.
aRoot javascript resourceUrl: '/js/jquery-1.3.2.js'.
aRoot javascript resourceUrl: '/js/jquery.accessible-news-slider.js'.
aRoot javascript resourceUrl: '/js/example2.js'.
I will take a look at your widgets anyway, when I install the 3.0 version.
Do you have some online example to see?
Thank you very much for the help!
regards
----- Original Message -----
From: "Torsten Bergmann" <astares at gmx.de>
To: <seaside at lists.squeakfoundation.org>; <svanlacke at caesarsystems.com>
Sent: Monday, November 23, 2009 2:50 PM
Subject: Accessible news slider in JQueryWidgetBox (was: Adding javascript
without encoding)
> Hi Sebastian,
>
> looks like you want to wrap the "accessible news slider"
> jquery script. I've already wrapped it for you as part of the
> JQeryWidgetBox project [1] together with an example and tests.
>
> Just browse the source code to see how it is done, I think
> you should use the upload facility of the Seaside config
> tool for WAFileLibrary subclasses to prevent encoding problems.
> (see the howto in [2]).
>
> To use the full widget box you need
> - a Seaside 3.0 image (preferred Pharo)
> - then load JQWidgetBox-Loader-tbn.11.mcz from [1]
> - point browser to http://localhost:8080/browse/jquery-widgets
>
>
> If you just want to use this sole widget you need
>
> in production:
> - JQWidgetBox-Core
> - JQWidgetBox-AccessibleNewsSlider-Core
>
> additionaly for tests and examples:
> - JQWidgetBox-Dev
> - JQWidgetBox-AccessibleNewsSlider-Dev
> - then evaluate "JQWidgetExample initialize" again manually
>
> If you want to help wrapping jquery widgets there is a
> short howto guide at [2].
>
> Have fun
> Torsten
>
> [1] http://squeaksource.com/JQueryWidgetBox
> [2]
> http://lists.squeakfoundation.org/pipermail/seaside/2009-November/021912.html
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
>
More information about the seaside
mailing list