[Seaside] call a jQuery plugin
Paul DeBruicker
pdebruic at gmail.com
Sat Sep 12 20:45:35 UTC 2009
Hi -
I want to use this:
http://plugins.jquery.com/project/cyOverlabel
which is based on this:
http://www.alistapart.com/articles/makingcompactformsmoreaccessible
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
Thanks -
Paul
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
mailing list