Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Trouble with SPSservices and Sharepoint Form

$
0
0
Hi,

I had jQuery and SPServices on a Sharepoint Form.
But I cannot retreived any informations from CurrentUser or Current Site.

This is my code in the Content Editor of the form :

<script src="/SiteAssets/jquery-1.11.0.min.js" type="text/javascript"></script><script src="/SiteAssets/jquery.SPServices-2014.01.min.js" type="text/javascript"></script><script language="javascript" type="text/javascript">
alert("jQuery loaded? " + (jQuery == undefined ? "NO!!!" : "YES."));
alert("SPServices loaded? " + ($().SPServices == undefined ? "NO!!!" : "YES."));
$(document).ready(function() {
   alert($().SPServices.SPGetCurrentSite());
  });
</script>

When I run the form I received this message box :
jQuery loaded? YES.
SPServices loaded? YES.
/ (This is suppose to be the result of the alert($().SPServices.SPGetCurrentSite());)

Can you help me ?
Thanks !

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>