[Seaside] Ajax rendering
Boris Popov, DeepCove Labs
boris at deepcovelabs.com
Wed Oct 5 11:42:55 UTC 2011
Could this highlighted bit be what you're looking for?
onClick: ((html jQuery ajax)
session announce: RequestingLogout.
with: 'Log out'
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Ted
Sent: Wednesday, October 05, 2011 7:38 AM
To: Seaside discussion - general
Subject: [Seaside] Ajax rendering
I have a component on a webpage that uses Ajax to communicate with the
Seaside server when its controls are used. I want to re-render the page
when this happens. My problem is that the html parameter in the Ajax
callback block is not usually that of the whole page. Perhaps I could
grab the whole page but I would still have the problem that Ajax DOM
replacement expects you to provide a parent element to hang everything
off of - in other words, you are required to design your HTML for Ajax.
Is there anyway of getting the normal HTML canvas and rendering on that
from an Ajax call? OTOH, perhaps this whole approach is wrong and I
should do something like adding a hidden anchor and trigerering that
rendering loop to refresh the page. What do people think?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside