Aaron Held wrote:
Ahh - excellent.
So instead of processing the return xml file, building javascript objects and coding a result you just call the eval(xmlhttpobject.responseText() );
and have the server send back
<response>
addopt2('aaron','held');
</response>


I like it!

Yeah, it's a pretty useful concept. You can do a simple form of RPC where strings, ints, tuples, lists, dictionaries get turned into equivalent javascript objects. Eg

def foo(bar):
  return ['hello', 1, 2]

gets turned into

'_o = new Object(); _o[1] = 'hello'; _o[2] = 1; _o[3] = 2; _o'

This is basically what Microsoft Remote Scripting does, but
without the java proxy. It's trivial to reimplement as a
webware servlet.

Nick



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to