Quantcast
Viewing all articles
Browse latest Browse all 6517

Closed Issue: GetCurrentSite is returning blank [10122]

From http://spservices.codeplex.com/discussions/432009

I've just started playing with this, and have hit a hurdle at step one.
I have a page with a content editor and the following code: All I get is "hello", then "jQuery" then a blank alert box. Is it me?

```
<script language="javascript" src="/mertonshared/computerstudies/Quiz/Documents/jquery-1.9.1.js" type="text/javascript"></script><script language="javascript" src="/mertonshared/computerstudies/Quiz/Documents/jquery.SPServices-0.7.2.js" type="text/javascript"></script><script language="javascript" type="text/javascript">
alert('hello');
$(document).ready(function() {
alert("jQuery");
alert($().SPServices.SPGetCurrentSite());
}); </script>
```
Comments: It turns out it's an issue with jQuery 1.9.1. See my [blog post](http://sympmarc.com/2013/02/05/spservices-compatibility-issues-with-jquery-1-9-1/).

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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