Handling a success callback...
Ok, the json data is listed at the bottom of the page. Firebug shows the data, and the JSON object looks okay...
So this never alerts me of anything, but I see the data coming back (diff domain, made sure I have &jsoncallback=? )
if I add the type: "GET", the thing just doesnt even do the callback
- $.ajaxSetup({ "error": function (XMLHttpRequest, textStatus, errorThrown) {
alert(textStatus);
alert(errorThrown);
alert(XMLHttpRequest.responseText);
}
});
$.ajax({
url: callbackurl,
dataType: 'json',
data: {},
success: function (json) {
alert('success');
}
});
$.getJSON(callbackurl,
function (data) {
alert('success');
});
Any idea what might be wrong? getJson and ajax both return the right stuff, just cant call anything when they complete
This is the data and passes JsonLint:
-------------------------------------------------------------------
[
{
"name": "description.htm",
"pub": "01-Feb-2010 02:00",
"url": "/d/d/workspace/SpacesStore/85f880b9-e548-47be-a0b0-defcad1bbba4/description.htm"
},
{
"name": "description.xml",
"pub": "01-Feb-2010 02:01",
"url": "/d/d/workspace/SpacesStore/0ce9eeca-9d3b-476d-afd3-7788400e8f93/description.xml"
},
{
"name": "description.htm",
"pub": "01-Feb-2010 03:52",
"url": "/d/d/workspace/SpacesStore/19859392-8d65-4cf9-b2b8-641c49f65215/description.htm"
},
{
"name": "description.xml",
"pub": "01-Feb-2010 03:54",
"url": "/d/d/workspace/SpacesStore/ea41cd49-7672-4eb1-b202-959aec40b741/description.xml"
},
{
"name": "Short System Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/666d3568-634b-42a2-b37f-03088b991453"
},
{
"name": "Requirement Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/efeb72ae-8824-4a26-b953-27ad8533a43b"
},
{
"name": "Architecture Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/65bea035-449e-4dba-adbd-ddf8e0dd84bb"
},
{
"name": "Implementation Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/852bc7d7-5caf-4118-a845-dc1c9d445e3a"
},
{
"name": "Configuration Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/bb206628-079e-4efa-8dba-9809d3cf0cca"
},
{
"name": "Software Description Appendices",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/67eee7b5-db2c-46bd-9e4e-1b6797cf1038"
},
{
"name": "Terminology Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/a4cf260e-8936-46e6-813d-520bdfd2a940"
},
{
"name": "Internal Message Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/c0a3c3c7-daa7-498b-bf6e-8fd15276a837"
},
{
"name": "External Message Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/b4ae5dc4-caf2-4ee3-8eaf-806e115b4026"
},
{
"name": "Record Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/e3af9153-9a40-4ab9-b7f6-6b0b860ad99a"
},
{
"name": "User Interface Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/65d5dd9a-bf4e-4101-a47c-cf9cfdf6d903"
},
{
"name": "Process Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/e6f63208-688a-4294-b699-bb4d50f05782"
},
{
"name": "Initialization Description",
"pub": "08-Jan-2010 03:27",
"url": "/n/browse/workspace/SpacesStore/a8dd3183-fff0-45ba-802d-4c81dd40dd2d"
}
]