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:

Post a Comment

Why Power Automate Premium with AI Builder is a Game-Changer for Single Users

 I ntroduction Manual data processing is not only time-consuming but also prone to errors, impacting efficiency and decision-making. Organi...