I'm wondering what is the best way to make an AJAX call.
This is what I have right now, and it works just fine.
$.ajax({
url: "/rest/computer",
type: "GET",
dataType: "json",
data: {
assessmentId: "123",
classroomId: "234"
},
success: function(objects) {
// .... code ....
}
});
I'm currently seeking another ways of making an Ajax call. If there is, should I use my approach ?
Should I move an Ajax call into it own function and call it back ?
Any suggestions on this will be much appreciated.