HttpClient.evalResult

Determines whether the result from the callback is automatically evaluated using eval(). Useful for JSON responses.

Example of sending JSON to the server:

function CallService()
{
    var http = new HttpClient();
    http.contentType = "application/json";
    http.evalResult = true;

    var parm = { pk: 11, name: "Rick" };
    var json = JSON.serialize( parm );

    http.send("services/timetrakkerservice.WCSX?LoadCustomer",parm,Callback);
}
function Callback(result)
{
    alert( result.Company);  // *** Object result
}
o.evalResult

See also:

Class HttpClient

© West Wind Technologies, 1996-2019 • Updated: 02/01/16
Comment or report problem with topic