Tag: coldfusion 7

如何在coldfusion7和jquery ajax中使用jsonutil?

我试图了解如何使用JSONutil在jquery和coldfusion之间序列化/反序列化JSON。 我坚持使用coldfusion 7所以我不能在cfc中使用returnformat=’json’属性。 client.cfc: SELECT client_id, client_name FROM Clients WHERE client_name LIKE ‘%’ + + ‘%’ jquery ajax调用: function getClients(name){ $.ajax { type: “post” url: “/surveymanagement/admin/client.cfc”, dataType: “json”, data: { method: “GetClientsByName”, name: name }, success: function(data){ $(“#here”).html(data) } } 现在我在哪里以及如何使用jsonutil来实现这一点? jsonutil的网站: http ://jsonutil.riaforge.org/