Hi there,
I am working with an application called full calendar which uses jquery to create a drag and drop calendar. Now I am in the process of making this work with php and a mysql database so that events can be added by clicking on the date.
I am having a bit of bother with getting the form to send datae to the database though.
My form looks like this once a date/ time is clicked on, its appears in a pop up window with the options to 'save' | 'cancel '
<div id="event_edit_container" style="display:none;">
<form>
<input type="hidden" />
<ul>
<li>
<span>Date: </span><span class="date_holder"></span>
</li>
<li>
<label for="start">Start Time: </label><select name="start"><option value="">Select Start Time</option></select>
</li>
<li>
<label for="end">End Time: </label><select name="end"><option value="">Select End Time</option></select>
</li>
<li>
<label for="title">Title: </label><input type="text" name="title" />
</li>
<li>
<label for="title">Distributor: </label><input type="text" name="distributor" />
</li>
<li>
<label for="title">Location: </label><input type="text" name="Location" />
</li>
<li>
<label for="title">Website: </label><input type="text" name="website" />
</li>
<li>
<label for="body">Body: </label><textarea name="body"></textarea>
</li>
</ul>
</form>
</div>
And at the top of my page I tell it what to do if 'save' is selected on the form page
$dialogContent.dialog({
modal: true,
title: "New Listing",
close: function() {
$dialogContent.dialog("destroy");
$dialogContent.hide();
},
buttons: {
save : function firstsave() {
calEvent.id = id;
id++;
calEvent.start = new Date(startField.val());
calEvent.end = new Date(endField.val());
calEvent.title = titleField.val();
calEvent.body = bodyField.val();
var options = {
url: 'feedrun.php?method=adddetails',
type: 'post',
dataType: 'json',
};
Any ideas?