When I run Fiddler on this, it returns
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">8</string
When I try $('#newlikes').text(result); I get
[object XMLDocument] - I think this is because I am using the wrong content type. When I go with the default content type I get the returned value wrapped in xml. Same thing Fiddler shows. I would like to use json, but I am getting an error that my parameters are not valid JSON . Looking at Fiddler it is throwing an error at $(this).
Thanks.