dom over rpc?

Mario Ruggier <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.