Simple demo returns error

Dec 29, 2014 at 9:56 PM
Edited Dec 29, 2014 at 9:57 PM
Install-Package datajs

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <script src="Scripts/datajs-1.1.2.min.js"></script> </head> <body>
<script type="text/javascript"> OData.read("http://services.odata.org/Northwind/Northwind.svc/Categories", function (data) { //success } ); </script> </body>
</html>

This has got to be something trivial I'm overlooking. This is the default example they are giving for datajs. I cannot get it to work.

Throws exception "HTTP request failed" Navigate browsers to "http://services.odata.org/Northwind/Northwind.svc/Categories" // it's there.

I'm sure I'm overlooking something. Any help?
Dec 29, 2014 at 10:16 PM
Edited Dec 29, 2014 at 10:17 PM
OData.read({ requestUri: "uri", enableJsonpCallback: true} , function (data) { 
    // success function
}, 
function (err) {
    // error function.
});
It'd be really nice if there was an exception that was more descriptive.
Jan 10, 2015 at 10:16 AM
I am experiencing the same problem.
Has anyone found any solution ?
Thank you