Dojo remote datasource not working

1 posts, 0 answers
  1. Phil
    Phil avatar
    273 posts
    Member since:
    Jul 2008

    Posted 06 Nov 2012 Link to this post

    Hi:

    Dojo remote datasource not working:
    @{
        ViewBag.Title = "Tutorial 10";
    }
    <h2>Tutorial 10 - Remote DataSource</h2>
    <!-- Tweets List -->
    <ul id="twitter"></ul>
    <script type="text/javascript">
        //  DataSource code
        var ds = new kendo.data.DataSource({
            transport: {
                read: {
                    url: "http://search.twitter.com/search.json?q=kendoui",
                    dataType: "jsonp"
                }
            },
            change: function () {
                var tweets = this.view();
                $.each(tweets, function () {
                    $("#twitter").append("<li>" + this + "</li>");
                });
            }
        });
        //
        ds.read();
    </script>
    Image attached...
    Phil

Back to Top