Why dose the JSON DATA was replaced?
Hi
I use "jQuery.ajax", like this
- var df = jQuery.Deferred();
- var vCallBack = "jsonNpCB" + (+new Date());
- jQuery.ajax({
- type: "post",
- url: "http://hoge.hoge/action.php",
- data: JSON.stringify(vArrPrm),
- scriptCharaset: "utf-8",
- dataType: "jsonp",
- jsonpCallback: vCallBack,
- ...
- });
this script is using very cool, with the exception of certain cases.
if there was the strings "??" in the JSON, it can't send data.
The data is like this
- var vArrPrm = {
- "DATA1": "hello world",
- "DATA2": "it will be fine today",
- "DATA3": "have you seen in the rain??",
- };
when it is, I watch the "Form Data" in "Request" by the Deveroper Tools of Chrome.
- {
- "DATA1": "hello world",
- "DATA2": "it will be fine today",
- "DATA3": "have you seen in the rainjsonNpCB1465458430008",
- }
"??" was replaced to "CalBack".
why is it was replaced?
I want to know that how can I do to use?
I need your help.
thanks,