Skip to Content.
Sympa Menu

grouper-users - [grouper-users] AJAX, JSON, Callback

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] AJAX, JSON, Callback


Chronological Thread 
  • From: mohan shamachar <>
  • To:
  • Subject: [grouper-users] AJAX, JSON, Callback
  • Date: Mon, 21 Jan 2013 16:23:13 -0500 (EST)

Hello,

I was playing with AJAX calls to grouper web services.

1. First I received an error for bad_uri... because of cross-domain issue.

I added a callback parameter to fix it: Here's the call:

var urlStr =
"my_grouper-ws.../json/v2_1_000/"+subjects/my_subject/groups?wsLiteObjectType=
WsRestGetGroupsLiteRequest";

jQuery.getJSON(urlStr+"&callback=?", function(data) {
var str = JSON.stringify(data);
console.log(str);
});

The WsGetGroupsLiteResult from the web services includes a warning:

"resultWarnings":"Cant find properties to assign HTTP params: callback, _,"

This is causing the JSON parser to crash... because of the "colon" character
inside the warning message text.

Any suggestions?

Thanks,
mohan



Archive powered by MHonArc 2.6.16.

Top of Page