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() {
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 !
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 !