Note that there are some explanatory texts on larger screens.

plurals
  1. POInsert,Update,Delete Events Operations on Fullcalendar POPUP and show Events which is inserted
    primarykey
    data
    text
    <p>Hello Friends I need to make web application in which i have to appointment Schedule between Two Persons SO i m Using Fullcalendar which Open a Popup have some fields like description,starttime and endtime. I want to set for each event which is same as <a href="http://arshaw.com/js/fullcalendar-1.6.0/demos/selectable.html" rel="nofollow">FUllcalendar Selectable Demo</a> start:start(variable from mycode) end: end I do not know I m in right direction or not so please Help me oUt IF changes of events autoupdate on database I need to show in calendar </p> <h2><strong>UPDATED CODE :</strong></h2> <p>JavaScript:</p> <pre><code> $(document).ready(function() { var count=0; var liveDate=new Date(); var dat = new Date(); var d = dat.getDate(); var m = dat.getMonth(); var y = dat.getFullYear(); $.getJSON("&lt;?php echo base_url(); ?&gt;names",function(data){ var select = $('#AgentName'); //combo/select/dropdown list if (select.prop) { var options = select.prop('options'); } else { var options = select.attr('options'); } var calendar = $('#calendar').fullCalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek,agendaDay' }, selectable: true, selectHelper: true, select: function(start, end, allDay) { $("#popup").show(); $("#eventName").focus(); $("#submit").click(function(){ var title=$("#eventName").val(); if (title) { calendar.fullCalendar('renderEvent',{ title: title, start: start, end: end, allDay: allDay }, true // make the event "stick" ); var dataString={}; dataString['eventName']=title; dataString['startTime']=$.fullCalendar.formatDate(start, "yyyy-MM-dd H:mm:ss"); dataString['endTime']=$.fullCalendar.formatDate(end, "yyyy-MM-dd H:mm:ss"); $.ajax({ type : 'POST', dataType : 'json', url : '&lt;?php echo base_url(); ?&gt;data/insert', data: dataString, success: function(data) { alert("Data Insert SuccessFully"); if(data.success) alert("Data Insert SuccessFully"); } }); } calendar.fullCalendar('unselect'); calendar.fullCalendar('refetchEvents'); $("#popup").hide(); }); }, editable: true, viewDisplay: function(view) { if(view.name=="month" &amp;&amp; count==0){ var a=$(".fc-day-number").prepend("&lt;img src='/assets/images/add.jpg' width='20' height='20'style='margin-right:80px;' name='date'&gt;"); count++; } }, eventSources: [ { url: '&lt;?php echo base_url(); ?&gt;data/read', // use the `url` property color: '#65a9d7', // an option! textColor: '#3c3d3d' // an option! } ] }); }); </code></pre> <p></p> <hr> <p>CSS:</p> <pre><code>&lt;style&gt; body { text-align: left; font-size: 14px; font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif; } #calendar { width: 70%; margin: 0 auto; text-align:left; } #popup{ width: 70%; height: auto; position: absolute; background-color: rgba(255,255,255,0.8); border-color: #0033ff; border-style: solid; display:block; left: 400px; top: 300px; display: none; cursor: pointer; } #detail{ background-color: #000; } #popup input{ width:480px; border-radius: 5px; } #popup table label{ font-size: 100px; } #startTime{ background-image: url('/assets/images/calendar.png'); background-position:right center; background-repeat:no-repeat; } #endTime{ background-image: url('/assets/images/calendar.png'); background-position:right center; background-repeat:no-repeat; } &lt;/style&gt; </code></pre> <hr> <p>HTML:</p> <pre><code>&lt;div class="wrapper"&gt; &lt;div id='calendar'&gt;&lt;/div&gt; &lt;div id="detail"&gt;&lt;/div&gt; &lt;div id="popup"&gt; &lt;form name="addData" id="addData" action="" method="post"&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;lable for="eventName"&gt;Description:&lt;/lable&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="eventName" id="eventName"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;lable for="startTime"&gt;Start: &lt;/td&gt; &lt;td&gt;&lt;input type="text" id="startTime"name="startTime"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;lable for="endTime"&gt;End: &lt;/td&gt; &lt;td&gt;&lt;input type="text" id="endTime"name="endTime"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align="left"colspan="2"&gt; &lt;button type="submit"class="k-button" name="submit" id="submit"&gt;Submit&lt;/button&gt; &lt;button type="reset" name="reset" class="k-button" id="reset"&gt;Reset&lt;/button&gt; &lt;button type="submit"class="k-button" name="cancel" id="cancel"&gt;Cancel&lt;/button&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; &lt;p&gt;&lt;tt id="results"&gt;&lt;/tt&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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