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,
  1. With the SPGetCurrentSite, the result was \ because my site was the root.
  2. SP is not installed on my machine. It's the real server and the URL http://intranet was a alias for http://spapp-mtl. I have the same problem with each URL.
  3. The result of http://intranet/_layouts/15/userdisp.aspx?Force=True is in English.
  4. If I tried alert($.get($().SPGetCurrentSite() + "_layouts/userdisp.aspx?Force=True")); , I received nothing
<script src="/SiteAssets/jquery-1.10.1.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."));
alert($.get($().SPGetCurrentSite() + "_layouts/userdisp.aspx?Force=True")); 
$(document).ready(function() {
       alert($().SPServices.SPGetCurrentUser());
});
</script>

Viewing all articles
Browse latest Browse all 6517

Trending Articles