How to use jsonutil with coldfusion7 and jquery ajax?

后端 未结 2 478
没有蜡笔的小新
没有蜡笔的小新 2020-12-22 03:26

I\'m trying to understand how to use JSONutil to serialize/deserialize JSON between jquery and coldfusion. I am stuck with coldfusion 7 so I can\'t use the returnform

2条回答
  •  感情败类
    2020-12-22 03:55

    Take a look at https://stackoverflow.com/a/6257891/886591 you can use $getJSON

    $.ajax({
      dataType: "json",
      url: url,
      data: data,
      success: success
    });
    

    There is also a very helpful article by Ben Nadel about converting querys to arrays. Since working with queries can be a pain in json it's easier to convert them to an array first

提交回复
热议问题