Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

SharePoint JSON query

$
0
0

I have an html page that calls the SharePoint 2010 Rest service.  It works well with jquery 1.3.2 but after that version, it no longer returns any results.  Tried with jquery 1.6.4, 1.9 and 1.10.  Apparently the 1.3.2 library included the JSON methods.  Can someone point me to the new library I need to include in order to use JSON with SharePoint 2010?

The code below works great with jquery-1.3.2.min.js.  Any other version of jquery after this does not return any results.

$(document).ready(function () {
            $.getJSON("http://myServer.com/_vti_bin/listdata.svc/MyTestList", function (data) {
                var count = 0;
                $.each(data.d.results, function (i, result) {
                    var title = result.Title;
                    html = "<table border='0' style='float: left'><tr><td style='color:blue'>" + title + "</td></tr></table>";
                    $('#resultarea').append($(html));
                });
            });
       });

Thanks in advance


Viewing all articles
Browse latest Browse all 11508

Trending Articles



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