I'm trying to get SPServices working on a team site within a large corporation. I don't have designer access and I'm not allowed to modify Masterpages. oh, and I can't download any text editor so I'm stuck using notepad. :(
I'm simply trying to fire an alert displaying the title to verify I can use SPServices.
Here is my code:
Any idea what the hang up is?
I'm simply trying to fire an alert displaying the title to verify I can use SPServices.
Here is my code:
<Script type="text/javascript" src="../Style%20Library/jquery-1.9.0.min.js"></script>
<Script type="text/javascript" src="../Style%20Library/jquery.SPServices-0.7.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
runTest();
});
function runTest(){
$().SPServices({
operation: "GetListItems",
async: false,
listName: "Marketing Operations Calendar",
webURL: "../",
completefunc: function (xData, Status) {
//alert(xData.responseText);
$(xData.responseXML).SPFilterNode("z:row").each(function() {
var testTitle = $(this).attr("ows_Title");
alert(testTitle);
});
}
});
}
</script>
The scripts are loading into the DOM and I can fire an alert by itself without the SPServices successfully. I can also get results when I alert the xData.responseText.Any idea what the hang up is?