[Lift] Re: RESTful JSON server that supports jQuery or JSONP callback

2009-10-07 Thread opyate
Hey guys, I managed to build in callback support, and I draw your attention to the implementation here: http://github.com/opyate/Ken/blob/master/ken-server/src/main/scala/com/opyate/ken/lib/API.scala Excerpt: override def dispatch: LiftRules.DispatchPF = { // modify the returned function t

[Lift] Re: RESTful JSON server that supports jQuery or JSONP callback

2009-10-06 Thread opyate
Sorry - APIResponse code not borrowed from skittr, but ESME (http:// incubator.apache.org/esme/) Thus, depending on your call's extension (.json or .xml) you can serve the response in the required format. Anyhoo, back to the question... :-) Thanks, Juan On Oct 6, 5:48 pm, Juan M Uys wrote: > H