** Solution to elements duplicates fullcalendar **

FullCalendar is a awesome tool to show appoinments, sometimes when you need load data across json but there is a bit problem “elements duplicate” ¿how to fix this? simulating click “advance – go back” with javascript.

In my case, I needed to click in section, open window, update information, close the window and show the data updated.


You have initialized your plug in:

var calendar = $('#calendar').fullCalendar({
//Options .....
firstDay: 1,
height: 2400,
slotMinutes: 30,
eventClick: function(calEvent, jsEvent, view) {
// Here I´m open window with shadowbox and ddd function refresh();

You need created a function to simulated “advance – go back”.

function refresh(){

Note: forum and documentation page has information about this, to me this was the best way.

This is my firts post in english, sorry is my write has problems.


** Ajax y acentos **


Hace mucho que no actualizo el blog, pero este post bien lo vale, pues no se ustedes pero los acentos son una lata con ajax, una forma sencilla de solucionarlo es poner en la hoja que se devuelve la siguiente linea de código:

header('Content-Type: text/html; charset=iso-8859-1');
response.setHeader('Content-Type: text/html; charset=iso-8859-1');

<%@page contentType=”text/html; charset=iso-8859-1″ pageEncoding=”iso-8859-1″%>

Y vuaalaaa…funciona

referencia : http://www.webadictos.com.mx/2007/11/07/tip-para-solucionar-problema-con-acentos-al-utilizar-ajax/