Calendar visualization problems

JBosir

Member
Hello again.

I have in Week view options:
Start time: 9
End time: 21

The display is correct, but when you Double Click a date to add an event within a box, the date that appears in Start date element has 10 hours less.
If I put Show weekends off, the error accumulates. Start date element is greater.

The most important problem,
in the popup window, when you save, you get the following error:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
(Build 343)
Thanks.
 
Last edited:
old calendar.
The problem:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

It also appears when "list" I active Ajax Fix links
 
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Sounds like a notice/warning in the JSON response. Can you check the Network response in a browser dev tool? or do you have a link to your site?

I don't know if the from/to options ever were working correctly.

Can you switch to the new "fullCalendar"?
 
with FullCalendar element Start date it works perfectly. it is also more beautiful.
The JSON.parse error continues.

The problem is when you run the php file that is in the form - plugin "End of form submission (onAfterProcess) with a popup

PHP:
<?php

   defined('_JEXEC') or die('Restricted access');
   $form = $this->data;
  // echo "<pre>form "; print_r($form);echo "</pre>";exit;
   $fecha_inicio=$this->data[ma_reserva_laboratorio___fecha_inicio_raw][date];
   $fecha_inicio_H=$this->data[ma_reserva_laboratorio___fecha_inicio_raw][time];
   $comentario=$this->data[ma_reserva_laboratorio___comentario];
   $usuario=$this->data[ma_reserva_laboratorio___usuario_raw][0];
   $fecha_fin=$this->data[ma_reserva_laboratorio___fecha_fin_raw][date];
   $fecha_fin_H=$this->data[ma_reserva_laboratorio___fecha_fin_raw][time];
   $dia=$this->data[ma_reserva_laboratorio___dia_raw][0];
   $did=$this->data[ma_reserva_laboratorio___id];
 
So if you don't run that plugin, it works OK?

I think what you need is not $this->data but $formModel->formDataWithTableName[].

Also, I don't think the time elements will have the ['date'] and ['time'] array at that point, they'd just be a string. Also, even if they did, you are missing the quotes around date and time.

Try doing a ...

Code:
var_dump($formModel->formDataWithTableName);exit;

... as the first line, and see what it dumps out (you may have to look at the network response in your browser debugger if it's an AJAX call).

-- hugh
 
PHP:
<?php

    defined('_JEXEC') or die('Restricted access');
 
    $form = $formModel->formDataWithTableName;
    $fecha_inicio=$form['ma_reserva_laboratorio___fecha_inicio_raw']['date'];
    $fecha_inicio_H=$form['ma_reserva_laboratorio___fecha_inicio_raw']['time'];
    $comentario=$form['ma_reserva_laboratorio___comentario'];
    $usuario=$form['ma_reserva_laboratorio___usuario_raw']['0'];
    $fecha_fin=$form['ma_reserva_laboratorio___fecha_fin_raw']['date'];
    $fecha_fin_H=$form['ma_reserva_laboratorio___fecha_fin_raw']['time'];
    $dia=$form['ma_reserva_laboratorio___dia_raw']['0'];
    $did=$form['ma_reserva_laboratorio___id'];
Yes. missing quotes.


For future updates if you think interesting
in FullCalendar, the option Week view options -> Show weekends
and Month view options -< Greyscaled weekends
not work.

Thank you.
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top