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

GetListItems not working in subsite

Dec 17, 2012 at 4:25 PM


Given a list at the site collection level, can you think of a reason why GetListItems would fail to work when referenced from a page in a subsite of the same site collection?  

As soon as it hits the completefunc line...

$(xData.responseXML).find("z\\:row").each(function() { ...,

without executing any other lines in the function, it stops with no error (that I can see).  It works like a charm when called from a page at the site collection level.  Permissions on the list are inherited.

What gets me is I've done this successfully (dozens of times) in a different site collection. ...And I'm enough of a noob I'm not even sure how to capture whatever error is occurring. 

Thanks for your time and efforts.

Dec 17, 2012 at 4:33 PM

I'm not sure what version of SPServices and jQuery you're using, but the .find("z\\:row") syntax won't work with jQuery 1.7+. I also assume that you're passing the webURL correctly? It would help if you could post your code.


Dec 17, 2012 at 5:21 PM

Aha. That's it.  I was using "webUrl" instead of "webURL".  Duh.

Thanks again for the quick response and point in the right direction. 


Dec 17, 2012 at 6:57 PM
Edited Dec 17, 2012 at 7:01 PM

Yeah, spelling matters. ;+)