Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: Query 2007 List form 2010 Environment

$
0
0
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?

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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