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

Edited Issue: Trouble with SPSservices and Sharepoint Form [10248]

$
0
0
From: https://spservices.codeplex.com/discussions/538227


I can run $().SPServices.SPGetCurrentSite() from my root site on Office365 and get "/" which is the valid value.

Yes, there were problems in 2013.02, but I thought I had fixed them in 2014.01 (at least I believed I had).

I've spent some time stepping through $().SPServices.SPGetCurrentUser() and I see the problem. It's only going to occur in the root site, as lauzierj is seeing. It's in line 2372 of jquery.SPServices-2014.01.js.

``` javascript
url: thisWeb + "/_layouts/userdisp.aspx?Force=True&" + new Date().getTime()
```

The value of url will be something like this:

"//_layouts/userdisp.aspx?Force=True&1394595490384"

which is invalid.

Sorry for the trouble with this, lauzierj. A quick fix for you would be to replace line 2372 with this:

``` javascript
url: ((thisWeb === "/") ? "" : thisWeb) + "/_layouts/userdisp.aspx?Force=True&" + new Date().getTime(),
```

Note that you'd do this in the unminified version of SPServices.

M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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