Re[2]: [Bese-devel] UCW AJAX Question

John Doe x-set at mail.ru
Fri Jun 29 07:58:44 UTC 2007


Thank you very much! 

-----Original Message-----
From: "Henrik Hjelte" <henrik.hjelte at stix.to>
To: "John Doe" <x-set at mail.ru>
Date: Fri, 29 Jun 2007 09:14:59 +0200
Subject: Re: [Bese-devel] UCW AJAX Question

> 
> I use the json-rpc protocol. an implementation is in the cl-json
> project on common-lisp.net I attach a file that does the last bit,
> connecting rpc from cl-json with ucw. I haven't checked if it works
> with the latest ucw yet.
> 
> On the client side you can use a javascript library to encode json.
> Then use a way to send the request. such as dojo bind. Decoding can be
> as simple as eval on the returned data. You can read more on json.org
> 
> Good luck,
> Henrik Hjelte
> 
> On 6/29/07, John Doe <x-set at mail.ru> wrote:
> > Hi
> >
> > I have working UCW configuration (SBCL 1.0.6, UCW built-in web server), and going to skip configuration questions for now. The more interesting question:
> > How to call Lisp methods directly from JavaScript and return results through AJAX callback ?
> > According UCW examples I could register AJAX action for button or another widget, but I didn't found how to call AJAX method from arbitrary JavaScript function. For example, I create a table with JavaScript which do all rendering at client side, JavaScript decides when to make request to server for next portion of information.
> >
> > Please, help! Is it possible with UCW_AJAX to pack arbitrary data (XML,S-EXPR ???) and send to Common Lisp side, then receive arbitrary form data from server, unpack it and render (method should work with IE without special plugins) ?
> >
> > With best regards
> > XSet
> > _______________________________________________
> > bese-devel mailing list
> > bese-devel at common-lisp.net
> > http://common-lisp.net/cgi-bin/mailman/listinfo/bese-devel
> >
> >
> >
> 
> ATTACHMENT: application/octet-stream (ucw-json-rpc.lisp)
> 



More information about the bese-devel mailing list