[Seaside] call a jQuery plugin
pdebruic at gmail.com
Sat Sep 12 20:45:35 UTC 2009
I want to use this:
which is based on this:
I have my divs and css set up to use the cyOverlabel() function
described in the first link and if I enter $('body').cyOverlabel(); in
the firebug console, the labels appear inside the textInputs on my
form and disappear when clicked as expected.
How can I call the $('body).cyOverlabel(); bit from Seaside when a
form is rendered or at a more appropriate time/place?
"best" failed attempts are below
This doesn't work, but is my best guess so far and I've added it to the form:
(html jQuery this)
onLoad: ((html jQuery this) do: 'cyOverlabel();').
I've also tried in the form:
| id |
id:= html nextId.
html div id: id.
html document addLoadScript: 'document.getElementById(' , id
printString , ').cyOverlabel()'.
More information about the seaside