durusmail: quixote-users: dom over rpc?
dom over rpc?
2005-07-03
2005-07-05
2005-07-05
2005-07-05
dom over rpc?
Mario Ruggier
2005-07-03
Hi,

i have just been playing with the recipe:
http://quixote.ca/qx/XmlHttpUsingJsolait

And it works really nicely...

I would need something like this to load rather large chunks of xhtml,
that are only made visible when a user asks for them, thus for many
page loads they will never be seen. I can see how to send generic
python objects... however, to send such data and then "render" this
data using js on the client will be rather painful. Besides, the
rendering code is already done, in python on the server.

Does anyone know if it is possible to either send an xhtml dom object,
to be spliced into the page?
How does one send it on the server, i.e what would the equivalent of
RPC.get_time() on the server look like ?
How is it received on the client, i.e what would the equivalent of the
client js function update() look like ?

Or, alternatively, can one embed an xhtml string, and then evaluate it
on the client to a dom?

Thanks for any ideas...

mario

reply