Re: Pico, handling requests from jQuery

2008-05-18 Thread Jon Kleiser
Hi, Thanks to Firebug, I just found the reason for my problems with string variables containing letters. The way I wrote my little Pico Lisp server, it tried to return a piece of invalid JSON code like "json...({x: 11, y: 2x2});". When I changed it into "json...({x: '11', y: '2x2'});", it worked l

Re: Pico, handling requests from jQuery

2008-05-18 Thread Jon Kleiser
Hi Alex, >> It seems to me that it won't be easy to make use of the Pico Lisp URL >> encoding system when using jQuery AJAX calls like getJSON, as jQuery >> uses >> the more traditional key-value style (http://...?k1=v1&k2=v2...). Is >> there > > No problem at all, I think. It is all there. > > Th

Re: Pico, handling requests from jQuery

2008-05-18 Thread Jakob Eriksson
JSON is basically XML but with parens. I recommend learning it, it is easy and used frequently nowadays. regards, Jakob Alexander Burger wrote: Hi Jon, 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

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 w