private GetGuidanceItemById ( System.Guid guidanceItemId ) : |
||
guidanceItemId | System.Guid | |
Résultat |
//handlers public void handleAction_JsonP(string data) { var guid = tmWebServices.getGuidForMapping(data); if (guid != Guid.Empty) { var article = tmWebServices.GetGuidanceItemById(guid); var serializedData = article.javascript_Serialize(); var callbackRaw = context.Request["callback"]; if (callbackRaw.valid()) { var callbackFunction = Encoder.JavaScriptEncode(callbackRaw, false); context.Response.Write("{0}({1})".format(callbackFunction, serializedData)); } else { context.Response.Write(serializedData); } endResponse(); } }