PQCyclerWidget and load jquery in Pier
Gastón Dall' Oglio
gaston.dalloglio at gmail.com
Wed Jan 18 00:27:25 MET 2012
2012/1/17 Nick Ager <nick.ager at gmail.com>
> Hi Gastón,
> I don't know specifically about PQCyclerWidget - but it looks as though
> you've diagnosed your problem successfully.
The best part, is that I beginning to understand a little about Seaside and
> One way ensure that the jQuery libraries are served, is to use the /config
> application to add libraries to your application:
thats is just I wanted to do, add those libraries to Pier, but I do not
realized that Pier is just an application like any other, then thought I
had to refer to the kernel to load jquery, grrr :)
> Browse to /config eg http://localhost:8080/config
> Select your Pier site, by default it's registered at /pier
> Under the General/Libraries, click on 'Configure'
> Then in Library configuration click Override
> Add the JQuery libraries, for example JQDevelopmentLibrary,
> JQUIDevelopmentLibrary, JQFlickTheme (you may not require the last two).
> There is more information available:
yes, I know this help, thanks
> Hope this helps
yes, thanks agains
> 2012/1/17 Gastón Dall' Oglio <gaston.dalloglio at gmail.com>
>> Hello all.
>> Short history, what is the better manner to load jquery libraries for get
>> working a PQCyclerWidget?
>> I wanted to add a slideshow to a Pier site and I saw that already exists
>> a PRWidget for JQCycle, and I say great! Quickly I got to show the images
>> that I added to a structure, but without the effect... After a some
>> experimentation (I'm newbe in Pier) I saw this error in the browser
>> console: "Uncaught exception: ReferenceError: Undefined variable: jQuery".
>> Then I understood that the jquery library was not loaded, and I go to the
>> implementation of PQCyclerWidget and saw this:
>> PQCyclerWidget>>updateRoot: anHtmlRoot
>> super updateRoot: anHtmlRoot.
>> "assume that jQuery libraries are already loaded"
>> then, I add this (before the existing line) and now the slideshow works
>> which is surely not the right way to load jquery in pier.
>> About instalation of this widget, I just load JQWidgetBox-Core and
>> JQWidgetBox-Cycle-Core in a Pier2 image (no dev packages), it is correct?
>> Magritte, Pier and Related Tools ...
> Magritte, Pier and Related Tools ...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the smallwiki