[Seaside] ajax html callback
Robert Sirois
watchlala at hotmail.com
Wed Apr 27 20:43:45 UTC 2011
Try it without load? You could drop it in an ajax script then.
RS
Milan Mimica <milan.mimica at gmail.com> wrote:
>Hi!
>
>I've got a div that I want to re-render using an AJAX callback. The rendering of
>this div is isolated in a helper method:
>
>MyWAComopnent >> renderDivOn: html
>| id |
> html div id: (id := html nextId); with: [ html render: content ].
> html ... (html jQuery id: id) load html: [ :h | self renderDivOn: h ].
>
>The above does not work as expected because the AJAX actually replaces the
>*contents* of the queried DOM element, leaving you with an additional nested div
>tag on each rendering.
>
>Is there an easy fix to this, other than moving the rendering of the div tag to
>the outer level?
>
>
>--
>Milan Mimica
>http://sparklet.sf.net
>_______________________________________________
>seaside mailing list
>seaside at lists.squeakfoundation.org
>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
More information about the seaside
mailing list