Closed Robrechtc closed 9 years ago
This doesn't look correct:
var jsonString = $.ajax({
'url': '/coursedata',
'datatype': 'json',
'type': 'GET',
'data': {
'path': '-BBA1-Semester 2',
}
});
I think you are using jquery to perform ajax request. If so, refer to the documentation to see how to handle ajax response. Should probably be something like
$.ajax({
'url': '/coursedata',
'datatype': 'json',
'type': 'GET',
'data': {
'path': '-BBA1-Semester 2',
}
}).done(function(jsonString) {
// ...
});
Hey again! I've been playing with ngraph a bit and I'm currently trying out the fromJSON package. This is the JSON data I'm retrieving:
My test.html file is this:
```module.exports.main = function () { var jsonString = $.ajax({ 'url': '/coursedata', 'datatype': 'json', 'type': 'GET', 'data': { 'path': '-BBA1-Semester 2', } })
}