Cheers guys for the responses.
It turned out that it was very finicky and by applying bits and pieces of what you guys showed me worked
here now is my jquery code $j.getJSON(
"http://localhost:8080/WWTestHarnessWEB/ReadersToolkitFinalController.htm?jsoncallback=?",
{'uID': 1},
function(data, status){
if (status != 'success')
{
alert("Status is: " + status);
}
var positiveCount = data.positiveCount;
var negativeCount = data.negativeCount;
$j('td[id*="posiiveVoteId"]').html(getCorrectCountString(positiveCount));
$j('td[id*="negativeVoteId"]').html(getCorrectCountString(negativeCount));
});
My json response is as follows `ParamsHeadersPostPutResponseCacheHTMLJSON
Response Headersview source
Server Apache-Coyote/1.1
Content-Type application/json;charset=ISO-8859-1
Content-Language en-US
Content-Length 80
Date Wed, 26 May 2010 16:38:43 GMT
Request Headersview source
Host localhost:8080
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept text/javascript, application/javascript, /
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
Content-Type application/x-www-form-urlencoded
X-Requested-With XMLHttpRequest
Referer http://localhost:8080/WWTestHarnessWEB/jsp/ReadersToolkit/Json.jsp
Cookie JSESSIONID=93FDA3BD0D2450D7FA4BD9A76C388F8A
jsonp1274891923240({"positiveCount":"0","negativeCount":"999"})`
Thanks again
Damien