Ver Mensaje Individual
  #9 (permalink)  
Antiguo 12/02/2012, 10:26
Avatar de Nemutagk
Nemutagk
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: México
Mensajes: 2.633
Antigüedad: 20 años, 1 mes
Puntos: 406
Respuesta: php , jquery, postgresql

Si podrías hacerlo de esa forma, pero no es necesario "guardar" el objeto $.ajax en una variable a menos que obtengas una respuesta por parte del servidor....

Código Javascript:
Ver original
  1. select: function(start, end, allDay) {
  2.                 var title = prompt('Evento:');
  3.                 if (title) {
  4.                     $.ajax({
  5.                          url:'archivo.php',
  6.                          type:'post',
  7.                          data:{
  8.                             title: title,
  9.                             start: start,
  10.                             end: end,
  11.                             allDay: allDay
  12.                          }
  13.                     }).done(function(data) {
  14.                          alert("Datos guardados, respuesta: " + data);
  15.                     });
  16.                     calendar.fullCalendar('renderEvent',
  17.                         {
  18.                             title: title,
  19.                             start: start,
  20.                             end: end,
  21.                             allDay: allDay,
  22.                        
  23.                            
  24.                         },
  25.                         true // make the event "stick"
__________________
Listo?, tendría que tener 60 puntos menos de IQ para considerarme listo!!!
-- Sheldon Cooper
http://twitter.com/nemutagk
PD: No contestaré temas vía mensaje personal =)