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

Commented Unassigned: Can't get SPServices 2014.01 to GetList [10223]

$
0
0
I've tried multiple attempts at getting list items and a simple get list with no success. The list exists but is not returning anything.
<script type="text/javascript" src="/SiteAssets/jquery/jquery-1.10.1.js"></script>
<script type="text/javascript" src="/SiteAssets/spservices/jquery.SPServices-2014.01ALPHA1.js"></script>

$(document).ready(function () {
$().SPServices({
operation: "GetList",
listName: "Announcements",
completefunc: function (xData, Status) {
console.log(xData.responseText);
$(xData.responseXML).find("Fields > Field").each(function () {
var $node = $(this);
alert("Type: " + $node.attr("Type") + " StaticName: " + $node.attr("StaticName"));
});
}
});
});
Comments: It seems when the application is deployed under the site, it creates another site below my site I specified for debugging. The lists are actually in the main site. For example: here's my debugging site https://mysite.sharepoint.com/sites/debugsite - the lists are here When the app is deployed in 2013, it creates a new site, we'll call it mynewsite https://mysite.sharepoint.com/sites/debugsite/mynewsite. I need to reference the lists I created in https://mysite.sharepoint.com/sites/debugsite I created a list feature for mynewsite and the code worked perfectly. How can I grab listitems from the parent site?

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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