OK, I got this working with the following code:
$.support.cors = true;
$(document).ready(function () {
$().SPServices({
webURL: "http://spsite/research/blog/",
operation: "GetListItems",
async: false,
listName: "Posts",
crossDomain: true,
CAMLViewFields: "<ViewFields><FieldRef Name=\"Title\" /></ViewFields>",
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function () {
var title = $(this).attr("ows_Title");
$("#list").append("<li>" + title + "</li>");
});
}
});
});
However I get the following message pop up:This page is accessing information that is not under its control. This poses a security risk. Do you want to continue?Is there a way around this?