This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Uncaught TypeError: Cannot read property ‘ajax’ of undefined

Open 1 reply general
10 years ago · Last reply by Magus 10 years ago

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

1
  1. Magus Staff 10 years, 9 months ago

    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

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.

Have a different question or issue?

Start New Thread