GetCurrentSite is returning blank

Feb 5, 2013 at 11:29 AM
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">
$(document).ready(function() {  
});  </script>
Feb 5, 2013 at 12:06 PM
Further to this, adding a line alert($().SPServices.SPGetCurrentUser()); before the SPGetCurrentSite means it stops there (no alert or anything).
Feb 5, 2013 at 12:08 PM
...and going back to 1.8.1 of JQuery is fine so let's leave it at that :)
Feb 5, 2013 at 3:03 PM
There's a note on the home page of this site about issues with the minified version of jQuery 1.9.0. It looks like you were trying 1.9.1, though. Were you able to spot where the error was?

Feb 5, 2013 at 7:24 PM
Indeed - though I wasn't using the minimised version!
No - I wasn't - my skills don't stretch that far - I'm coding by the skin of my teeth!
Feb 5, 2013 at 7:29 PM
It looks like there is indeed an issue with 1.9.1. I'l try to track it down.

Hopefully you'll be OK with 1.8.x for now.

Feb 5, 2013 at 7:37 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Feb 5, 2013 at 9:08 PM
It turns out it's an issue with jQuery 1.9.1. See my blog post.