Quantcast
Viewing all articles
Browse latest Browse all 6517

Commented Unassigned: Failed to load resource: the server responded with a status of 500 (Internal Server Error) [10173]

i'm getting Failed to load resource: the server responded with a status of 500 (Internal Server Error)
http://Sharepoint/sites/sitecollection.

when i try to get list items with below code.

var MNSName = "";
var siteurllink = "http://Sharepoint/sites/sitecollection/";
var method = "GetListItems";
var query = "<Query>" +
"<Where>" +
"<Eq>" +
"<FieldRef Name='Active' /><Value Type='Boolean'>1</Value>" +
"</Eq>" +
"</Where>" +
"</Query>";

var fieldsToRead = "<ViewFields>" +
"<FieldRef Name='Name' />" +
"<FieldRef Name='FirstName' />" +
"<FieldRef Name='LastName' />" +
"</ViewFields>";
$().SPServices({
operation: "GetListItems",
webURL: siteurllink,
async: false,
listName: "ListName",
CAMLViewFields: fieldsToRead,
CAMLQuery: query,
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function () {
MNSName = $(this).attr("ows_FirstName") + " " + $(this).attr("ows_LastName");
});
}
});



Comments: It's best to post stuff like this in the Discussions. If it turns out to be an issue with SPServices, I'll turn it into an issue that I need to fix. That said, my guess is that it's the siteurllink. Since you're showing a dummy one, I'm not sure what the issue might be. M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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