I am having an awful hard time with understand the SPService and JQuery files and how to use them to get what I want done.
I am looking to take a list/library on my SharePoint site and input the data into html coding that I am hosting on the same SharePoint site (through the page viewer option). I am doing this to get a more web based look, but to make updating and adding items easier by keeping the SharePoint lists/libraries.
Can someone help me as to where to start?
This works to pull into a cewp, but I need it to be able to work within the HTML coding of the page viewer webpart.
<script type="text/javascript" src="filelink/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="filelink/jquery.SPServices-0.6.2.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$().SPServices({
operation: "GetListItems",
webURL: "http://myURL.aspx",
async: false,
listName: "Announcements",
CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>",
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function() {
var liHtml = "<li>" + $(this).attr("ows_Title") + "</li>";
$("#tasksUL").append(liHtml);
});
}
});
});
</script>
<ul id="tasksUL"/>
<body>
</body>
</html>