[Seaside] Anyone using Bootstrap popover with HTML (seaside comp) contents?

Mariano Martinez Peck marianopeck at gmail.com
Mon Dec 15 20:12:10 UTC 2014


On Mon, Dec 15, 2014 at 2:25 PM, Karsten Kusche <karsten at heeg.de> wrote:
>
>  Hi Mariano,
>
> try that:
>
> htmlCode := WARenderCanvas builder render:[:r |
> r input on: #name of: self.
> ].
>
html div attributeAt:'data-content' put:htmlCode.
>
>
Hi Karsten,

Thanks for your idea. Indeed, that works for kind of "static" components.
But my components (the one I want to render in the popup over), uses AJAX
and has inputs and callbacks. It seems that my callbacks are of course not
being invoked if I get the builder as "WARenderCanvas builder".  And of
course, if I use the current real HTML canvas, I get it rendered hahaha.

Any other idea?





> Kind Regards
> Karsten
>
>
>
>
> --
> Karsten Kusche - Dipl. Inf. (FH) - karsten at heeg.de
> Georg Heeg eK - Köthen
> Handelsregister: Amtsgericht Dortmund A 12812
>
> Am Montag, 15. Dezember 2014 um 18:21 schrieb Mariano Martinez Peck:
>
> Hi guys,
>
> I want to render some component in a Bootstrap popover. In my scenario a
> popover is better than a JQDialog. I saw that is is indeed possible to
> render html in a popover:
> http://stackoverflow.com/questions/13202762/html-inside-twitter-bootstrap-popover
>
> However....I am not sure how to do that from Seaside. I know I can do:
>
> self attributeAt: 'data-content' put: howDoIGetThis
>
> But I am not sure how to set the html generated from a seaside component.
> And even worst, my html will have some some inputs so I do need callbacks
> working.
>
> Has anyone have done this before? I know how to do it with JQDialog but I
> would prefer a popover.
>
> Any advice?
>
> Thanks in advance,
>
> --
> Mariano
> http://marianopeck.wordpress.com
>  _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>

-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20141215/c2c53e78/attachment.htm


More information about the seaside mailing list