Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

102
Views
Add new object to fullcalendar from Ajax

I am trying to add new events from an ajax to fullcalendar events Here is what I've tried

$.ajax({
type: 'GET',
url: 'ajax link',
headers: {
    dateType: "json",
    "Authorization":"something"
},
dataType: "json",
success: function (res){
  var wow = res;
}
})
var EventsField = {
  id: 1,
  events: [
    {
      id: '1',
      start: curYear+'-'+curMonth+'-08T08:30:00',
      end: curYear+'-'+curMonth+'-08T13:00:00',
      title: 'Some Title',
      backgroundColor: '#bff2f2',
      borderColor: '#00cccc',
      description: 'Some text'
    },
  ]
};

So, from ajax I get variables like the ones present in the events object, and I want to get those from ajax and put them into the events objects.

Thanks!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!