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 7070467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:34:12+00:00 2026-05-28T05:34:12+00:00

When I make a selction on the calendar and add an event, it sends

  • 0

When I make a selction on the calendar and add an event, it sends the info to my PHP script and the event is placed in the database as expected. Great!

The problem is when I select another date and add the event (without refresh), it adds the event twice in the MYSQL database. Not Great!

This perpetually adds up with the increasing clicks until a refresh is made. Also the “extra” events added have no time placed in the DB except for “0000-00-00 00:00:00”, so in turn it appear correct upon output. Am I just missing something simple? What am I doing wrong?

<script>
$(document).ready(function(){

select: function(start, end, allDay){

  $("popup").show();
  $(".title").focus();
  var start = Date.parse(start) / 1000;
  var end = Date.parse(end) / 1000;
  var allDay = allDay:

  $("submitForm").click(function(){

    var title = $(".title").val();
    var description = $("description").val();
    var team_id = <?php echo $id ?>;

    if(title != "" || title != " "){

      $.post("script.php", {...}, function(){
        $(".title").val("");
        $(".description").val("");
        start = "";
        end = "";
        title = "";
        description = "";
        team_id = "";
        allDay = "";
        calendar.fullCalendar('unselect');
        calendar.fullCalendar('refetchEvents');
      });

    }else{
       alert("You must enter a title");
    }

   $(".popup").hide();

  });
}

});
</script>

Obviously this is not the entire JS/Jquery but this is what matters. What am I missing? Thanks in advance. Your help is appreciated!

  • 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-28T05:34:13+00:00Added an answer on May 28, 2026 at 5:34 am

    I actually had to add a random session id to fix the problem and then clear the id after the post was completed.

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

Sidebar

Related Questions

make /bin/sh /Users/myusername/Downloads/php-5.3.5/ext/mssql/libtool --mode=compile cc -I. -I/Users/myusername/Downloads/php-5.3.5/ext/mssql -DPHP_ATOM_INC -I/Users/myusername/Downloads/php-5.3.5/ext/mssql/include -I/Users/myusername/Downloads/php-5.3.5/ext/mssql/main -I/Users/myusername/Downloads/php-5.3.5/ext/mssql -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM
Hey guys, working on an event calendar. I'm having some trouble getting my column
is there any way to make a section invisible from template.php in drupal ?
I want to make an event which will be triggered after i make the
Im trying to make my own calendar similar to iCal and all is going
I have a superview and I add a subview to make a selection. In
I am saving a custom Event with EKEventStore saveEvent to the calendar the return
How can I make selection-change event in office word c#? Office 2010 Visual Studio
I'm using Keith Wood's jQuery datepicker http://keith-wood.name/datepick.html to make a calendar that the user
code: http://jsfiddle.net/4hV6c/4/ just make any selection, and you'll get a script error in ie8

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.