Quantcast
Viewing all articles
Browse latest Browse all 6517

Created Unassigned: Getting parser error in simple SP services. [10156]

I am getting parser error in simple spsservices code. I couldnot able to locate my list .I have this code in my master page and the list in my root site. Any help appreciated.

$(document).ready(function() {
GetProductDetails("flexspacePink");
});
function GetProductDetails(sessionVariable)
{
$().SPServices({
operation: "GetListItems",
async: false,
listName: "SidebarList",
CAMLQuery:"<Query><Where><Eq><FieldRef Name='Class' /><Value Type='Text'>"+sessionVariable+"</Value></Eq></Where></Query>",
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function() {
var liHtml = "<li>" + $(this).attr("ows_Title") + "</li>";
$("#tasksUL").append(liHtml);
});
}
});
}


Viewing all articles
Browse latest Browse all 6517

Trending Articles