Date:  10/22/2007 10:21:03 AM Msg ID:  003538
From:  FoxWeb Support Thread:  003536
Subject:  Re: Jason / AJAX
Json makes it easy to exchange complex data over Ajax.  The CheckPW script only returned 'YES', or 'NO', which is easy to do without using Json, or XML.  If, on the other hand, you want to return more complex data, such as an object, an array, or (as in your case) a cursor/table, then you need a more complex solution.  You can utilize a proprietary format to encode your data, but this would require that you write code to translate data in and out of it in both VFP and JavaScript.  A much better approach would be to use Json, which is built into FoxWeb and is supported by virtually all client-side JavaScript/DCOM libraries, such as Dojo and Prototype.

With Json, you could use the fwJson object to encode/decode data in FoxWeb scripts on the server and you would either use a 3rd party library, or even native JavaScript to do the same on the client side.  Take a look at the new Zip Code Search example to see what I mean.
FoxWeb Support Team
support@foxweb.com email
Sent by jc clerc on 10/22/2007 06:55:09 AM:
I just adapted the CheckPW.fwx AJAX sample posted before.
It does work fine and very simple to adapt to return TABLE and so on.
I just don't understand what Jason is doing more since the sample works without the need for anything on the server side ?
Can you please explain the difference and in what Jason is adding easier programming or better speed if any.