var __spaceLayoutHelper = null; $(function() { }); function getSubscribeData(C, B, A) { if (__spaceLayoutHelper == null) { __spaceLayoutHelper = EnjooSite.Web.Services.Ajax.SubscribeHelper } var D = $("#" + C); displayLoading(D, false); __spaceLayoutHelper.LoadSubscribe(B, A, getSubscribeData_success, callback_error, { sender: D }) } function getSubscribeData_success(result, userContext, methodName) { var template = result.Template; var ajaxResult = eval("(" + result.Data + ")"); var data = ajaxResult.customData; if (data.items.length <= 0) { $(userContext.sender).html(ajaxResult.message) } else { $(userContext.sender).setTemplate(template, null, { filter_data: false }); $(userContext.sender).processTemplate(data) } displayLoading(userContext.sender, true) } function callback_error(B, C, A) { alert(B.get_message()); displayLoading(C.sender, true) } if (typeof (Sys) !== "undefined") { Sys.Application.notifyScriptLoaded() };