Re: Pico, handling requests from jQuery

2008-05-27 Thread Alexander Burger
Hi Jon, properly. I get the + in Pico Lisp. Therefor I cannot know whether a + in Pico Lisp originated as a + or a space. I think the plus-to-space decoding has to be done at the same time as the %xy decoding. Or ... OK, I understand. As the %xy decoding happens in 'ht:Pack', you could

Re: Pico, handling requests from jQuery

2008-05-18 Thread Alexander Burger
Hi Jon, You can also encode numbers, internal+external symbols, and simple lists, if you use 'ht:Fmt' (or 'mkUrl'). : (pack http://localhost:8080/@json?; (ht:Fmt 123 'abc (4 5 6))) - http://localhost:8080/@json?+123$abc_+4_+5_+6; That's nice, but more useful when the request

Re: Pico, handling requests from jQuery

2008-05-17 Thread Jon Kleiser
Hi Alex, this is really funny. Just of today I'm working on a similar problem. As I don't know JSON, however, I tried a direct approach with JS. The mechanism looks surprisingly similar to what you wrote. JSON is just a data format that is closer to JavaScript than is XML. {x: 11, y: 22, z:

Re: Pico, handling requests from jQuery

2008-05-16 Thread Jon Kleiser
Hi again, I would like to make a little Pico Lisp HTTP server that can handle XMLHttpRequests from jQuery.getJSON(...), and I wonder if I can use lib/http.l. If you don't know jQuery.getJSON, you can find some info and a nice little demo here: