using jsonp with ashx handler
Can anyone give me a clear walkthrough of how to call an ashx handler with jsonp or tell me what I'm doing wrong?  I have a javascript function on one subdomain trying to call an ashx handler on another subdomain.  When I try I get back a status of 200 but it still gets into my error handling and reports a thrownError of SyntaxError: Invalid character.  I've found a couple of threads on jquery and jsonp, but only one which actually showed any code related to ashx.  Unfortunately it doesn't appear to be working and I'm not sure why.  Here's the code from the javascript call and then the ashx response.

	

    
    var sPay = getEl('chkPay').checked ? "pay=1" : "";
    var sUrl = "/Calculator/GetCalcResult.ashx?jsoncallback=?" + sPay;
    
    $.getJSON(sUrl, function (data) {
    	console.log("Success:" + data);
    }).error(function (xhr, ajaxOptions, thrownError) {
    	console.log("Status:" + xhr.status);
    	console.log("Error:" + thrownError);
    });

And then the ashx handler...

    var jsonstr = 
    				 "{\"calculatorresults\":{" +
    					"\"employees\" : \"" + employeeCount + "\"" +
    					"\"pay\" : \"" + calculationResult.PayTotal + "\"" +
    					"\"total\" : \"" + calculationResult.Total + "\"" +
    				"}}";
    
    			context.Response.ContentType = "application/json";
    			context.Response.Write(string.Format("{0}({1});", context.Request["jsoncallback"], jsonstr));
using jsonp with ashx handler
===

Can anyone give me a clear walkthrough of how to call an ashx handler with jsonp or tell me what I'm doing wrong?  I have a javascript function on one subdomain trying to call an ashx handler on another subdomain.  When I try I get back a status of 200 but it still gets into my error handling and reports a thrownError of SyntaxError: Invalid character.  I've found a couple of threads on jquery and jsonp, but only one which actually showed any code related to ashx.  Unfortunately it doesn't appear to be working and I'm not sure why.  Here's the code from the javascript call and then the ashx response.

	

    
    var sPay = getEl('chkPay').checked ? "pay=1" : "";
    var sUrl = "/Calculator/GetCalcResult.ashx?jsoncallback=?" + sPay;
    
    $.getJSON(sUrl, function (data) {
    	console.log("Success:" + data);
    }).error(function (xhr, ajaxOptions, thrownError) {
    	console.log("Status:" + xhr.status);
    	console.log("Error:" + thrownError);
    });

And then the ashx handler...

    var jsonstr = 
    				 "{\"calculatorresults\":{" +
    					"\"employees\" : \"" + employeeCount + "\"" +
    					"\"pay\" : \"" + calculationResult.PayTotal + "\"" +
    					"\"total\" : \"" + calculationResult.Total + "\"" +
    				"}}";
    
    			context.Response.ContentType = "application/json";
    			context.Response.Write(string.Format("{0}({1});", context.Request["jsoncallback"], jsonstr));