Я хочу получить параметр URL и передать его функции ajax,
var queryParams = dojo.queryToObject(window.location.search.slice(1));
var data = dojo.toJson(queryParams, true);
console.log(data);
getCategory( data );
...
function getCategory(input){
dojo.xhrGet( {
// The following URL must match that used to test the server.
url: "http://js.localhost/dojo-release-1.5.0-src/json3.php",
handleAs: "json",
content: input,
в параметре URL, я передам
? Return_type = category & category_desc = Business2
когда я смотрю на firebug, запрос ajax становится ....
t? 0 =% 7B & 1 =% 0A & 2 =% 09 & 3 ......
но отладка данных верна, есть идеи, что не так?
{"return_type": "category", "category_desc": "Business2"}