Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1079855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:56:09+00:00 2026-05-16T21:56:09+00:00

So I am trying to use FullCalendar and jQuery UI dialog box. And i’m

  • 0

So I am trying to use FullCalendar and jQuery UI dialog box.
And i’m not sure to sure how to go about placing the 2 together very well.

When I select or click on an empty day event, I want the jQuery Modal Dialog Box to pop up. ALTHOUGH I would like to have it load an internal file (php include). But the downfall with this is that I can’t get it to close the dialog box when I get the form to submit

Also, by using this method I can’t get it to pull the date that I clicked on to automatically fill in the start-date field.

What’s the best route to go about mixing in the jQuery UI modal Dialog box with fullCalendar?

Any help would be appreciated. If possible is there a good method by loading an external file?

This is currently what I have:

select: function(start, end, date, allDay, jsEvent, view, calEvent) {
    $("#addEventDialog").dialog("open");

$("#addEventDialog").load('dialog.CalendarNewEvent.php').dialog({
    title: 'Add Event',
    modal: true,
    buttons: {
        "Save": function() {
           $("#calendarWidget2").ajaxSubmit({
                target: "#calendarResponse",
                dataType: 'json',
                clearForm: true,
                success: function(response, event) {
                    //If the widget says it's okay to refresh, refresh otherwise, consider it done
                    if(response.refreshEvents == '1') {
                      $("#calendar").fullCalendar("refetchEvents");
                    }
                    // Close the dialog box when it has saved successfully
                    $("#addEventDialog").dialog("destroy");
                    // Update the page with the reponse from the server
                    $("#calendarResponse").append("Successfully Added: "+ response.title +"<br />"); 

                },
                error: function() {
                    alert("Oops... Looks like we're having some difficulties.");    
                }
          }); // Close ajax submit
        },
        "Cancel": function() { $(this).dialog("close"); } 
    }, //End buttons
});

//alert("The inputs will work if i un-comment this alert");

/* UPDATE ALL THE VALUES IN THE DIALOG BOX */
$("#startDate").val($.fullCalendar.formatDate(start, 'yyyy/MM/dd'));
$("#endDate").val($.fullCalendar.formatDate(end, 'yyyy/MM/dd'));

},

So like my code mentions, when I use this code, nothing gets updated… but yet when I use an ALERT function where I have it placed right now, and make it actually live… the input values will get updated for some reason. It’s almost as if the function is acting to fast to make the values apply, so when I have the alert stop in there, it makes it work…. any thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:56:10+00:00Added an answer on May 16, 2026 at 9:56 pm

    Here’s how I call the dialog and populate it:

        $('#calendar').fullCalendar({ 
    dayClick: function (date, allDay, jsEvent, view) {  
                $("#dialog").dialog('open');     
                $("#name").val("(event name)");
                $("#date-start").val($.fullCalendar.formatDate(date, 'MM/dd/yyyy'));
                $("#date-end").val($.fullCalendar.formatDate(date, 'MM/dd/yyyy'));
                $("#time-start").val($.fullCalendar.formatDate(date, 'hh:mmtt'));
                $("#time-end").val($.fullCalendar.formatDate(date, 'hh:mmtt')); 
        }, 
    });
    
        $("#dialog").dialog({
            autoOpen: false,
            height: 350,
            width: 700,
            modal: true,
            buttons: {
                'Create event': function () {
                    $(this).dialog('close');
                },
                Cancel: function () {
                    $(this).dialog('close');
                }
            },
    
            close: function () {
            }
    
        });   
    

    html

                <div id="dialog" class="event-dialog" title="Event">
                <div id="dialog-inner">
                    <input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all title"><br>
                    <span class="inline"><input type="text" name="date-start" id="date-start" class="text ui-widget-content ui-corner-all"></span>
                    <span class="inline"><input type="text" name="time" id="time-start" class="text ui-widget-content ui-corner-all"></span>
                    <span class="inline">To:</span> <span class="inline"><input type="text" name="date" id="date-end" class="text ui-widget-content ui-corner-all"></span>
                    <span class="inline"><input type="text" name="time" id="time-end" class="text ui-widget-content ui-corner-all"></span>
                    <span class="inline">&nbsp;All day <input id="all-day" type="checkbox"></span> 
                    <!--<label for="description">Description:</label> 
                    <textarea name="description" id="description" class="text ui-widget-content ui-corner-all" rows="8" cols="73">       
    </textarea>
                </div>
            </div>
            <div id="calendar"></div>
    

    I can’t speak to the php stuff without seeing it but it should work in theory. You can see that this example is a work in progress and not fully functional (post, get, etc).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use Fullcalendar with jQuery Mobile, and I want to call $.mobile.changePage
I'm trying to use the jquery.fullcalendar plugin using the jQuery UI theming. Everything is
I'm trying to create a JQuery FullCalendar to use a WebService method as a
I'm trying use jquery ui tabs together with js and mvc3. <div class=demo> <div
I'm trying use jquery to remove a class from an element (not knowing ahead
I am trying to use FullCalendar and it is displayed fine, with a feed
I am need paint my image. I'm trying use JQuery in here this link:
I'm very new to jquery and programming in general but I'm still trying to
I have been trying to make the FullCalendar events use Facebox to pop up
I am trying use Date Picker and on Select i want to display the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.