This project has moved. For the latest updates, please go here.


SPGetListItemsJson not using defaults.webURL



I am attempting to call the SPGetListItemsJson method with a default webURL, and it is not working. I am using version jquery.SPServices-2014.01 on a 2012 TFS server.

I noticed in the source code:
$.fn.SPServices.SPGetListItemsJson = function(options) {

        var opt = $.extend({}, {
            webURL: "", // [Optional] URL of the target Web.  If not specified, the current Web is used.
            listName: "",
I replaced this with:
$.fn.SPServices.SPGetListItemsJson = function(options) {

        var opt = $.extend({}, {
            webURL: $.fn.SPServices.defaults.webURL, 
            listName: "",
This seemed to do the trick for me locally, but I am worried about having to fix this whenever there is an update. I wanted to know if I was doing something else wrong, and if not make you aware of the issue.
Closed Dec 16, 2014 at 6:34 PM by sympmarc
Fixed/deployed in 2014.02


sympmarc wrote Oct 24, 2014 at 4:14 AM

Fixed in 2014.02ALPHA6