This is a migrated thread and some comments may be shown as answers.

Dojo remote datasource not working

0 Answers 32 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 07 Nov 2012, 02:35 AM
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

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Phil
Top achievements
Rank 2
Share this question
or