I have a jquery ajax call that is making a cross-domain request. all the js syntax looks good, and the response looks good, but i keep getting the "missing ; before statement error" in firebug (console). Here's my web service:
[WebMethod()]
[ScriptMethod(ResponseFormat = ResponseFormat.Json, XmlSerializeString = false, UseHttpGet = true)]
public string HelloToYou(string name)
{
return "Hello " + name;
}
here's my javascript:
function HelloToYou() {
$.getJSON(
"http://localhost/test/webservicedemo.asmx/HelloToYou?callback=?",
{ name : "nathan" },
function() { alert("something"); }
);
}
any ideas?