i have done kendo ui tree with json file
this is working fine if the file is on local machine
here is the code which i am using
<script type="text/javascript" charset=utf-8>
$(document).ready(function () {
$.getJSON("/test/test.json", function (data) {
$("#treeview").kendoTreeView({
dataSource : {
data: data
},
dataTextField : "text",
dataValueField: "id"
});
});
});
</script>
Now i have uploaded this file to the server and i am passing the live
URL in the same code but it is not working code is here
<script type="text/javascript" charset=utf-8>
$(document).ready(function () {
$.getJSON("http://eragonsolutions.com/test/test.json", function (data) {
$("#treeview").kendoTreeView({
dataSource : {
data: data
},
dataTextField : "text",
dataValueField: "id"
});
});
});
</script>
what changes do i need to do???
Thanks in advance