[seaside-2.9] rendering a component inside a jQuery dialog

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[seaside-2.9] rendering a component inside a jQuery dialog

muthu.kc
As a test, we've been trying to display a WACounter inside a jQuery
dialog but failed so far. The example in the jquery-ui functional test
only shows simple html rendering and not a component with callbacks.
Is there some info on writing components that use jQuery?

thanks in advance.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: [seaside-2.9] rendering a component inside a jQuery dialog

Lukas Renggli
> As a test, we've been trying to display a WACounter inside a jQuery
> dialog but failed so far. The example in the jquery-ui functional test
> only shows simple html rendering and not a component with callbacks.
> Is there some info on writing components that use jQuery?

Normally it should be possible to simply pass a component to #html:.
Unfortunately there was a bug in that code causing this to fail.

I fixed this in JQuery-Core-lr.66. If you don't want to (manually)
update to all the latest Seaside code I suggest that you either stick
with the block like so:

    html: [ :r | r render: aComponent ]

Or that you fix JQAjax>>#html: yourself by removing the first line
that calls #fixCallbackTemps.

Cheers,
Lukas





>
> thanks in advance.
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside