Hello all.
Short history, what is the better manner to load jquery libraries for get working a PQCyclerWidget?
Long...
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"
anHtmlRoot javascript url: JQWidgetBoxDeploymentLibrary / #jquerycycleallJs
then, I add this (before the existing line) and now the slideshow works fine:
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?
Regards