Hi, As you well by now you can use Ajax with Lift in quite several ways. However one particular practice is for the server to send down the JSON structure and user function to "manually" process it.
The thing is that our lift_ajaxHandler JS function takes a success and failure functions but to the actual Ajax call we are passing some wrapper functions that also calls the Ajax cycling etc. So the point is that we can not really pass our functions that would just take the JSON response and handle it (we'll it is possible if we get our hands dirty and we'd manually do the Ajax call but that's besides the point). Nonetheless there are fairly easy ways to overcome this such that instead of returning the JSON structures the server actually returns a JavaScript call to a function and pass the actual JSON object as parameter. However this may seam a bit limiting because there might be REST services out there that just return plain JSON structures and we just want to handle them. So it seems to me that we should: 1. Provide the actual arguments that underlying JS framework provides to the user's succcess/failure functions (a pretty easy thing to do) 2. Overload SHtml.makeAjaxCall to also take a success and failure JsExp thoughts? Br's, Marius --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
