I am using requirejs and in my index I have
and In main.js I have
require([“jquery”,”employeeManager”,”employeeData”], function ($,employeeManger,employeeData) {
alert(“main.js funtion”);
var main= employeeManger.loadStudentData();
return main;
})
and in employeemanger
loadStudentData : function(){
$.ajax({
//url:”http://localhost:63342/NewnodeJsProject/public/data/studentData.json”,
url:”http://localhost:63342/NewnodeJsProject/public/data/studentData.json”,
method:’get’,
success:this.handlerData
})
}
i am loding dependencies properly.. then why i am getting the uncaught error: cannot read property ‘ajax’ of undefined
Hi Priyanka Acharya
I am afraid this is beyond the scope of what we can help you with on the forums, but you could put a post on here
http://stackoverflow.com/
They should be able to help fairly quickly.
Thank you
Magus