[Seaside-dev] Using jQuery UI elements with Comet?

Nikolay Suslov nsuslovi at gmail.com
Sun Jul 12 14:01:17 UTC 2009


Hello,

It is possible to use jQuery slider (or other UI elements) with Comet?

So, I take the Comet CTCounter example as the base, and there:
1. Create the slider:

#renderContentOn: html
...
html div id:#slider; script: (html jQuery new slider
        value: self model count;
        onSlide: (html jQuery ajax
            callback: [ :value | self model count: value asNumber. self
update:nil ]
            value: html jQuery this slider value)).
....

2. Update the slider's handle visual state in all connected browsers:

#update: anAspect

self pusher javascript: [ :script |
     script << (script jQuery: #count)
            text: self model count.

     script << (script jQuery: #slider) slider value: self model count.
"???"
    "or  script << (script jQuery: #slider) triggerChange "
].

But, it dose not work.

Thanks for any points,

Nikolay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside-dev/attachments/20090712/e26bbc32/attachment.htm


More information about the seaside-dev mailing list