Posts

JQueryRESTDataOperations.

// <snippetJQueryRESTDataOperations.Functions> /// <reference path="jquery1.4.1vsdoc.js" /> //GetGlobalContext function exists in ClientGlobalContext.js.aspx so the //host HTML page must have a reference to ClientGlobalContext.js.aspx. //Retrieve the server url, which differs on-premise from on-line and //shouldn't be hard-coded. //The XRM OData end-point var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc"; function serverUrl() {     ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc"; } function getServerUrl() {///<summary>     /// Private function used to establish the path to the SOAP endpoint based on context     /// provided by the Xrm.Page object or the context object returned by the GlobalContext object.     ///</summary>     var url = parent.Xrm.Page.context.getClientUrl();     if (url.match(/\/$/)) {         url = url.substring(0, url.len...