Home>Support>Uncaught TypeError: Cannot read property ‘ajax’ of undefined

Uncaught TypeError: Cannot read property ‘ajax’ of undefined

By Priyanka Acharya, 10 years ago. Last reply by Magus, 10 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 2 months ago Magus
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More