1 2 3 4 5 6 7 8 9 10
| var rawTab = '{"event":[{"id":"1","title":"évènement 1","startDate":"09/03/2007","endDate":"10/03/2007","startHour":"06:00","endHour":"08:40", },';
rawTab = rawTab + '{"id":"2","title":"évènement 2","startDate":"09/03/2007","endDate":"10/03/2007","startHour":"08:30","endHour":"10:20"},';
rawTab = rawTab + '{"id":"3","title":"évènement 3","startDate":"09/03/2007","endDate":"10/03/2007","startHour":"10:00","endHour":"11:40"},';
rawTab = rawTab + '{"id":"4","title":"évènement 4","startDate":"09/03/2007","endDate":"10/03/2007","startHour":"10:30","endHour":"12:00"},';
rawTab = rawTab + '{"id":"5","title":"évènement 5","startDate":"09/03/2007","endDate":"10/03/2007","startHour":"11:00","endHour":"14:00"},';
rawTab = rawTab + '{"id":"6","title":"évènement 6","startDate":"09/03/2007","endDate":"10/03/2007","startHour":"11:40","endHour":"12:10"},';
rawTab = rawTab + '{"id":"7","title":"évènement 7","startDate":"09/03/2007","endDate":"10/03/2007","startHour":"12:10","endHour":"16:00"},';
rawTab = rawTab + '{"id":"8","title":"évènement 8","startDate":"09/03/2007","endDate":"10/03/2007","startHour":"15:40","endHour":"17:00"}]}';
var events = eval("("+rawTab+")");
alert(events.event[0].title); |
Partager