예제 #1
0
		public static void DeleteArchive(String roomGuid, String lastItemGuidString, Int32 sessionID, String lastActionTicks, String pageUrl, StateStub[] roomState, ChatClientDeleteArchiveStubWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["roomGuid"] = roomGuid;
			p["lastItemGuidString"] = lastItemGuidString;
			p["sessionID"] = sessionID;
			p["lastActionTicks"] = lastActionTicks;
			p["pageUrl"] = pageUrl;
			p["roomState"] = roomState;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"DeleteArchive",
				"/WebServices/Controls/ChatClient/ChatClient.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((DeleteArchiveStub)((Dictionary<string, object>)data)["d"], userContext, "DeleteArchive");
				};
			jQuery.Ajax(o);
		}
		public static void GetPlaces(Double north, Double south, Double east, Double west, Int32 maximumNumber, ServicePlaceStubArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["north"] = north;
			p["south"] = south;
			p["east"] = east;
			p["west"] = west;
			p["maximumNumber"] = maximumNumber;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetPlaces",
				"/WebServices/Controls/PlacesChooser/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((PlaceStub[])((Dictionary<string, object>)data)["d"], userContext, "GetPlaces");
				};
			jQuery.Ajax(o);
		}
예제 #3
0
		public void CallWebService(int firstRowIndex, int lastRowIndex, Dictionary parameters, WebServiceSuccessCallback successCallback, WebServiceFailureCallback failureCallback, object userContext)
		{
			Dictionary pagedParameters = new Dictionary();
			pagedParameters["firstRowIndex"] = firstRowIndex;
			pagedParameters["lastRowIndex"] = lastRowIndex;
			foreach (DictionaryEntry de in parameters)
			{
				pagedParameters[de.Key] = de.Value;
			}
			base.CallWebService(pagedParameters, successCallback, failureCallback, userContext);
		}
예제 #4
0
		public void CallWebService(Dictionary parameters, WebServiceSuccessCallback successCallback, WebServiceFailureCallback failureCallback, object userContext)
		{
			this.successCallback = successCallback;
			this.failureCallback = failureCallback;

			if (this.webRequest != null)
			{
				Trace.Write("ABORT");
				this.webRequest.Executor.Abort();
			}

			this.webRequest = WebServiceProxy.Invoke(servicePath, serviceMethod, false, parameters, successCallback2, failureCallback2, userContext, timeOut);
		}
		public static void GetBuddiesSelectListHtml(ServiceStringWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			

			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetBuddiesSelectListHtml",
				"/WebServices/Controls/MultiBuddyChooser/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((String)((Dictionary<string, object>)data)["d"], userContext, "GetBuddiesSelectListHtml");
				};
			jQuery.Ajax(o);
		}
		public static void GetPlacesAndMusicTypes(ServiceGetMusicTypesAndPlacesResultWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			

			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetPlacesAndMusicTypes",
				"/WebServices/Controls/MultiBuddyChooser/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((GetMusicTypesAndPlacesResult)((Dictionary<string, object>)data)["d"], userContext, "GetPlacesAndMusicTypes");
				};
			jQuery.Ajax(o);
		}
예제 #7
0
		public static void GetBanners(String placeholderClientID, ServiceBannerStubArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["placeholderClientID"] = placeholderClientID;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetBanners",
				"/WebServices/Controls/PhotoControl/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((BannerStub[])((Dictionary<string, object>)data)["d"], userContext, "GetBanners");
				};
			jQuery.Ajax(o);
		}
		public static void ResolveUsrsFromMultiBuddyChooserValues(String[] values, ServiceDictionaryWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["values"] = values;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"ResolveUsrsFromMultiBuddyChooserValues",
				"/WebServices/Controls/MultiBuddyChooser/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((Dictionary<string, object>)((Dictionary<string, object>)data)["d"], userContext, "ResolveUsrsFromMultiBuddyChooserValues");
				};
			jQuery.Ajax(o);
		}
예제 #9
0
		public static void IncrementViews(Int32 photoK, ServiceVoidWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["photoK"] = photoK;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"IncrementViews",
				"/WebServices/Controls/PhotoControl/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((object)((Dictionary<string, object>)data)["d"], userContext, "IncrementViews");
				};
			jQuery.Ajax(o);
		}
예제 #10
0
		public static void GetRecentVideos(Int32 pageNumber, ServicePhotoResultWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["pageNumber"] = pageNumber;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetRecentVideos",
				"/WebServices/Controls/PhotoBrowser/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((PhotoResult)((Dictionary<string, object>)data)["d"], userContext, "GetRecentVideos");
				};
			jQuery.Ajax(o);
		}
예제 #11
0
		public static void GetEventPage(String key, ServiceEventPageStubWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["key"] = key;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetEventPage",
				"/WebServices/Controls/EventBox/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((EventPageStub)((Dictionary<string, object>)data)["d"], userContext, "GetEventPage");
				};
			jQuery.Ajax(o);
		}
		public static void CreateUsrFromEmailAndReturnK(String textEnteredByUser, ServiceInt32WebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["textEnteredByUser"] = textEnteredByUser;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"CreateUsrFromEmailAndReturnK",
				"/WebServices/Controls/MultiBuddyChooser/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((Int32)((Dictionary<string, object>)data)["d"], userContext, "CreateUsrFromEmailAndReturnK");
				};
			jQuery.Ajax(o);
		}
		public static void DeleteComment(Int32 commentK, ServiceBooleanWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["commentK"] = commentK;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"DeleteComment",
				"/WebServices/Controls/CommentsDisplay/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((Boolean)((Dictionary<string, object>)data)["d"], userContext, "DeleteComment");
				};
			jQuery.Ajax(o);
		}
예제 #14
0
		public static void GetSurroundingPlaces(Int32 centredOnPlaceK, Int32 numberOfPlacesToGet, ServicePlaceStubArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["centredOnPlaceK"] = centredOnPlaceK;
			p["numberOfPlacesToGet"] = numberOfPlacesToGet;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetSurroundingPlaces",
				"/WebServices/Controls/PlacesChooser/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((PlaceStub[])((Dictionary<string, object>)data)["d"], userContext, "GetSurroundingPlaces");
				};
			jQuery.Ajax(o);
		}
예제 #15
0
		public static void GetTagSearchString(String prefixText, Int32 count, AutoCompleteStringArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["prefixText"] = prefixText;
			p["count"] = count;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetTagSearchString",
				"/WebServices/AutoComplete.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((String[])((Dictionary<string, object>)data)["d"], userContext, "GetTagSearchString");
				};
			jQuery.Ajax(o);
		}
		public static void SetThreadUsr(Int32 threadK, Int32 page, ServiceVoidWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["threadK"] = threadK;
			p["page"] = page;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"SetThreadUsr",
				"/WebServices/Controls/CommentsDisplay/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((object)((Dictionary<string, object>)data)["d"], userContext, "SetThreadUsr");
				};
			jQuery.Ajax(o);
		}
예제 #17
0
		public static void GetTags(String text, Int32 maxNumberOfItemsToGet, Dictionary<object, object> parameters, AutoCompleteSuggestionArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["text"] = text;
			p["maxNumberOfItemsToGet"] = maxNumberOfItemsToGet;
			p["parameters"] = parameters;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetTags",
				"/WebServices/AutoComplete.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((Suggestion[])((Dictionary<string, object>)data)["d"], userContext, "GetTags");
				};
			jQuery.Ajax(o);
		}
예제 #18
0
		public static void GetBanner(Int32 positionAsInt, String relevantPlacesCsv, String relevantMusicTypesCsv, ServiceBannerRenderInfoWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["positionAsInt"] = positionAsInt;
			p["relevantPlacesCsv"] = relevantPlacesCsv;
			p["relevantMusicTypesCsv"] = relevantMusicTypesCsv;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetBanner",
				"/WebServices/Controls/Banners/Generator/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((BannerRenderInfo)((Dictionary<string, object>)data)["d"], userContext, "GetBanner");
				};
			jQuery.Ajax(o);
		}
		public static void GetThreadComments(Int32 threadK, Int32 pageNumber, Boolean getCommentsOnly, ServiceCommentResultWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["threadK"] = threadK;
			p["pageNumber"] = pageNumber;
			p["getCommentsOnly"] = getCommentsOnly;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetThreadComments",
				"/WebServices/Controls/CommentsDisplay/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((CommentResult)((Dictionary<string, object>)data)["d"], userContext, "GetThreadComments");
				};
			jQuery.Ajax(o);
		}
예제 #20
0
		public static void ClientRequest(String typeName, String methodName, Object[] args, GenericPageObjectWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["typeName"] = typeName;
			p["methodName"] = methodName;
			p["args"] = args;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"ClientRequest",
				"/GenericPage.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((Object)((Dictionary<string, object>)data)["d"], userContext, "ClientRequest");
				};
			jQuery.Ajax(o);
		}
예제 #21
0
		public static void GetThreads(Int32 objectType, Int32 objectK, Int32 threadsCount, Boolean hasGroupObjectFilter, ServiceThreadStubArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["objectType"] = objectType;
			p["objectK"] = objectK;
			p["threadsCount"] = threadsCount;
			p["hasGroupObjectFilter"] = hasGroupObjectFilter;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetThreads",
				"/WebServices/Controls/LatestChat/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((ThreadStub[])((Dictionary<string, object>)data)["d"], userContext, "GetThreads");
				};
			jQuery.Ajax(o);
		}
예제 #22
0
		public static void SetCurrentUsrSpottedInPhoto(Int32 photoK, Boolean isInPhoto, ServiceStringArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["photoK"] = photoK;
			p["isInPhoto"] = isInPhoto;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"SetCurrentUsrSpottedInPhoto",
				"/WebServices/Controls/PhotoControl/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((String[])((Dictionary<string, object>)data)["d"], userContext, "SetCurrentUsrSpottedInPhoto");
				};
			jQuery.Ajax(o);
		}
예제 #23
0
 ///<summary>
 ///Invokes the specified Web service method.
 ///</summary>
 ///<param name="servicePath">The Web service URL.</param>
 ///<param name="methodName">The name of the Web service method to invoke.</param>
 ///<param name="useGet">false if the Web request HTTP verb is POST; otherwise, true. The default is false.</param>
 ///<param name="parameters">A dictionary that contains name/value pairs that correspond to the parameters of the method to call.</param>
 ///<param name="successCallback">The function invoked as a callback if the Web service method call returns successfully. If no callback function is provided, no action is taken when the Web service method finishes successfully.</param>
 ///<param name="failedCallback">The function invoked as a callback if the Web service method call fails. If no callback function is provided, no action is taken if an error occurs during the Web service method call.</param>
 ///<param name="userContext">Any user-specific information to be passed to either callback.</param>
 ///<param name="timeout">The time in milliseconds after which the request is timed out and aborted.</param>
 ///<returns>The <see cref="T:Sys.Net.WebRequest" /> that was created to invoke the method.</returns>
 public static WebRequest invoke(string servicePath, string methodName, bool useGet, JsObject parameters, WebServiceSuccessCallback successCallback, WebServiceFailureCallback failedCallback, object userContext, JsNumber timeout) { return default(WebRequest); }
		public static void CreateUsrsFromEmails(String spaceSeparatedListOfEmailAddresses, Boolean addAsBuddies, ServiceInt32WebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["spaceSeparatedListOfEmailAddresses"] = spaceSeparatedListOfEmailAddresses;
			p["addAsBuddies"] = addAsBuddies;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"CreateUsrsFromEmails",
				"/WebServices/Controls/MultiBuddyChooser/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((Int32)((Dictionary<string, object>)data)["d"], userContext, "CreateUsrsFromEmails");
				};
			jQuery.Ajax(o);
		}
		public static void CreatePublicThread(Int32 discussableObjectType, Int32 discussableObjectK, String duplicateGuid, String rawCommentHtml, Boolean formatting, Boolean isNews, String[] inviteUsrOptions, ServiceCommentStubWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["discussableObjectType"] = discussableObjectType;
			p["discussableObjectK"] = discussableObjectK;
			p["duplicateGuid"] = duplicateGuid;
			p["rawCommentHtml"] = rawCommentHtml;
			p["formatting"] = formatting;
			p["isNews"] = isNews;
			p["inviteUsrOptions"] = inviteUsrOptions;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"CreatePublicThread",
				"/WebServices/Controls/CommentsDisplay/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((CommentStub)((Dictionary<string, object>)data)["d"], userContext, "CreatePublicThread");
				};
			jQuery.Ajax(o);
		}
예제 #26
0
		public static jQueryAjaxOptions Options(
			string methodName,
			string url,
			Dictionary<string, object> parameters,
			WebServiceFailureCallback failure,
			object userContext,
			int timeout)
		{
			jQueryAjaxOptions o = new jQueryAjaxOptions();
			o.Url = url + "/" + methodName;
			o.Timeout = timeout;
			o.Type = "POST";
			o.Async = true;
			o.Cache = false;
			o.ContentType = "application/json; charset=utf-8";
			o.Data = JSON.stringify(parameters);
			o.DataType = "json";
			o.Error =
				delegate(jQueryXmlHttpRequest request, string error, Exception exception)
				{
					failure(
						new WebServiceError(
							exception.GetType().ToString(),
							error,
							exception.ToString(),
							request.Status,
							request.Status == 408),
						userContext,
						methodName);
				};
			return o;
		}
		public static void CleanHtml(String html, ServiceStringWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["html"] = html;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"CleanHtml",
				"/WebServices/Controls/CommentsDisplay/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((String)((Dictionary<string, object>)data)["d"], userContext, "CleanHtml");
				};
			jQuery.Ajax(o);
		}
예제 #28
0
		public static void RandomWait(Int32 min, Int32 max, ChatClientVoidWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["min"] = min;
			p["max"] = max;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"RandomWait",
				"/WebServices/Controls/ChatClient/ChatClient.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((object)((Dictionary<string, object>)data)["d"], userContext, "RandomWait");
				};
			jQuery.Ajax(o);
		}
예제 #29
0
		public static void StoreState(StateStub[] roomState, ChatClientBooleanWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["roomState"] = roomState;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"StoreState",
				"/WebServices/Controls/ChatClient/ChatClient.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((Boolean)((Dictionary<string, object>)data)["d"], userContext, "StoreState");
				};
			jQuery.Ajax(o);
		}
		public static void GetPreviewHtml(Int32 previewType, String rawCommentHtml, Boolean formatting, ServiceStringArrayWebServiceSuccessCallback success, WebServiceFailureCallback failure, object userContext, int timeout)
		{
			Dictionary<string, object> p = new Dictionary<string, object>();
			p["previewType"] = previewType;
			p["rawCommentHtml"] = rawCommentHtml;
			p["formatting"] = formatting;


			jQueryAjaxOptions o = WebServiceHelper.Options(
				"GetPreviewHtml",
				"/WebServices/Controls/CommentsDisplay/Service.asmx",
				p,
				failure,
				userContext,
				timeout);

			o.Success = 
				delegate(object data, string textStatus, jQueryXmlHttpRequest request)
				{
					success((String[])((Dictionary<string, object>)data)["d"], userContext, "GetPreviewHtml");
				};
			jQuery.Ajax(o);
		}