Search the Community
Showing results for tags 'fullcalendar'.
-
Hi guys, I am trying to display tour information in fullcalendar but nothing is happening and no errors. Here is the php code from fetch-tours.php <?php require_once "config.php"; $json = array(); $sqlQuery = "SELECT * FROM jobs ORDER BY id"; $result = mysqli_query($con, $sqlQuery); $eventArray = array(); while ($row = mysqli_fetch_assoc($result)) { $title = isset($row['name']); $start = isset($row['dep_date']); $end = isset($row['ret_date']); $eventsArray['title'] = $title; $eventsArray['start'] = $start; $eventsArray['end'] = $end; array_push($eventArray, $row); } mysqli_free_result($result); mysqli_close($con); echo json_encode($eventArray); ?> And here is the Javascript that displays the calendar: <script type="text/javascript"> $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); $('#calendar').fullCalendar( { header: { left: 'prev,next today', center: 'title', right: 'month,basicWeek,basicDay' }, editable :true, events: "includes/fetch-tours.php", }); }) </script> The calendar displays fine but just no data. Any help is greatly appreciated. Cheers, Dan
- 8 replies
-
- fullcalendar
- javascrip
-
(and 2 more)
Tagged with:
-
I am using fullcalendar, and I am trying to position the mouseover. The current css is: .nube { position:absolute; left:0; top:0; z-index:-10000; border:1px solid #DCA; background:#fffAF0; padding:1em; display: none; max-width: 800px; min-width: 100px; line-height: 12px; direction: ltr; box-shadow: none; color: #111; font-size:.8em; } Attached is a screenshot of the issue. Can anyone help me figure out what I need to change in the css above? Thanks.
-
- fullcalendar
- mouseover
-
(and 1 more)
Tagged with: