Wednesday, July 23, 2014

How TO GET THE CURRENT SITE in CEWP using SPServices

How TO GET THE CURRENT SITE in CEWP
<script src="//JSFiles/jquery-1.11.1.min.js"></script>
<script src="//JSFiles/jquery.SPServices-2014.01.min.js"></script>

<script type="text/javascript">      

            var thisSite = $().SPServices.SPGetCurrentSite();
          alert(thisSite);
            document.write("The Current Site is " + thisSite);

</script>

No comments:

Unable to connect to a required endpoint. Power Platform now relies on a new cloud service dependency called Power Platform API. If you have conditional access policies or fire

  Unable to connect to a required endpoint. Power Platform now relies on a new cloud service dependency called Power Platform API. If you ha...