Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

90
Vistas
Pass another parameter to Fulcalendar

Here is the code, the "events: url," part of the code is coming through into my fullcalendar.js file and adds the events however I also want to add a list of users from json data like so users:'urlusers'

Will I have to edit the fullcalendar.js file and if so where can I add another parameter for the users.

$(document).ready(function() {
var calendar = $('#calendar').fullCalendar({
defaultView: 'agendaWeek',
minTime: "08:00:00",
maxTime: "20:00:00",
editable:false, 
header:{
 left:'prev,next today',
 center:'title',

},
events: 'https://events.com/eventsjson',
users:'https://events.com/usersjson',
selectable:true,
selectHelper:true,
select: function(start, end, allDay)
{
 var titlestart = $.fullCalendar.formatDate(start, "DD-MM-Y HH:mm:ss");


 var r = confirm("Request Time " + titlestart);
 if (r == true) {
           event.preventDefault();
           //Open dialog
        var subject = 'Booking '+titlestart;
        var emailBody = 'Create booking for '+titlestart    
           showDialog(titlestart);
 } else {

 }
},
});
});
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Not the solution I was thinking of but got the result.

on the events: 'https://events.com/eventsjson', I needed to add more data to the JSON then the fullcalendar sorted the rest out for me

foreach($result as $row)
{
 $data[] = array(
     'id'   => $row["user_id"],
     'start'   => $row["startevent"],
     'end'   => $row["endevent"],
     'backgroundColor'   => $row["backgroundColor"],
     'borderColor'   => $row["borderColor"]
    );
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda