Hi,
I use an asp (classic) utility file to create json objects from an SQL database, see: http://code.google.com/p/aspjson/
here is what I get from the server side:
{"results":[{"Opt_Name":"BARR","Opt_FirstName":"TomTest","Comp_Name":"My_Company"}]}
Which is valid json, at least valid for jsonlint.
BUT this never triggers my callback function (Fetch) and I get a ParserError from my error function (myFunc) down here:
$(document).ready(function()
{
function myfunc(XMLHttpRequest, textStatus, errorThrown)
{
alert("call failed " + textStatus + " error " + errorThrown + " Xhr " + XMLHttpRequest);
}
$.ajaxSetup({
error:myfunc
});
$.getJSON("jsonGETdataTest.asp", Fetch);
function Fetch(data)
{
alert("blop");
}
});
I don't know what to do next!
If anyone has a lead on this one I'll be very gratefull. Thanks for stoping by anyway.