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

  • Home
  • SEARCH
  • 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 8038515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:15:42+00:00 2026-06-05T03:15:42+00:00

How do you create an event when the user clicks on any part of

  • 0

How do you create an event when the user clicks on any part of the calendar? and then store it in the database as a new event?
I know you have to use: select: function(start, end, allDay) to get the “start” and “end” times. But after I get this data how do I pass it to the database?

Thanks!

  • 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-06-05T03:15:43+00:00Added an answer on June 5, 2026 at 3:15 am

    You may use an ajax request to store the new event in your DB.

    There is a demo on the projects homepage, which can easily be adapted.
    Via jQuery for example like this :

    select: function(start, end, allDay) {
        var title = prompt('Event Title:');
        if (title) {
            calendar.fullCalendar('renderEvent',
                {
                    title: title,
                    start: start,
                    end: end,
                    allDay: allDay
                },
                true // make the event "stick"
            );
            /**
             * ajax call to store event in DB
             */
            jQuery.post(
                "event/new" // your url
                , { // re-use event's data
                    title: title,
                    start: start,
                    end: end,
                    allDay: allDay
                }
            );
        }
        calendar.fullCalendar('unselect');
    } 
    

    If you need to react on a specific click, you can also try this, but you have to grep the event end or duration by yourself.

    dayClick: function(date, allDay, jsEvent, view) {
        var title = prompt('Event Title:');
        /**
         * again : ajax call to store event in DB
         */
        jQuery.post(
            "event/new" // your url
            , { // re-use event's data
                title: title,
                start: date
                allDay: allDay
            }
        );
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create new Event objects to be persisted in the database
I need to create a new website, I have the database modeling done and
I am working on triggering an event to create a page automatically, when user
I want to create an Event Calendar for my iPhone App. In a first
I recently discovered that I can use lambdas to create simple event handlers. I
I have a text box on a page, and when the user clicks Submit
So I'm trying to do some event handling when a user clicks the like
I'm creating new select boxes from a javascript function, on a div click event.
Use case: User clicks a link, a modal window is displayed containing one big
I have a page that has a button on it. When the user clicks

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.