Uncaught TypeError: Cannot read property ‘ajax’ of undefined
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
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi 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
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.