Note that there are some explanatory texts on larger screens.

plurals
  1. POUse jquery fullcalender to append values to bold by database values
    primarykey
    data
    text
    <p>I'm using fullcalender with jQuery and I'm wonder if its possible, if my array has <code>'bold' = true/false,</code> I could use jquery to attach a new class to it.</p> <pre><code>$(document).ready(function() { $('#calendar').fullCalendar({ editable: false, allDay: false, events: "json-events.php", eventDrop: function(event, delta) { alert(event.title + ' was moved ' + delta + ' days\n' + '(You cannot update these fields!)'); }, loading: function(bool) { if (bool) $('#loading').show(); else $('#loading').hide(); }, }); }); </code></pre> <p>If I had a database value id 'bold' can I make jquery add a style the 'title'.</p> <pre><code>$result = $dbh-&gt;query($sql)-&gt;fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row){ $return[]=array('id'=&gt;$row['id'], 'title'=&gt;$row['title'], 'start'=&gt;$row['start'].' '.$row['time'], 'end'=&gt;$row['end'], 'url'=&gt;$row['url'], 'backgroundColor'=&gt;$row['backgroundColor'], 'textColor'=&gt;$row['textColor'], 'borderColor'=&gt;$row['borderColor'], 'description'=&gt;$row['description'], "allDay" =&gt; false); } $dbh = null; header('Content-type: application/json'); echo json_encode($return); </code></pre> <p>I'd like to use jQuery or edit the phpscript possibly. But I do not want to edit fullcalender.js file.</p> <p><strong>EDIT</strong></p> <p>I've been looking more into this, and if events: "json-events.php" I could add a function that would add bold style to the css.</p> <pre><code> $(document).ready(function() { $('#calendar').fullCalendar({ editable: false, allDay: false, events: function() {... </code></pre> <p>maybe by adding variables of getElementById and if it is true, have it append a style to the css.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload