[Seaside] ajax html callback
sebastian at flowingconcept.com
Wed Apr 27 20:46:14 UTC 2011
you need to do an update (check updater examples)
On Apr 27, 2011, at 5:25 PM, Milan Mimica wrote:
> 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
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside