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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:28:22+00:00 2026-05-23T21:28:22+00:00

On my website, I put the buttons Hide free time and Show free time.

  • 0

On my website, I put the buttons “Hide free time” and “Show free time”.

When a user click “Hide”, the following code will run to fetch the “freeTime” array with all the Event objects with id ‘regular’ and ‘relief’:

function hideFreeTime() {
    freeTime.length = 0;
    freeTime = $('#calendar').fullCalendar('clientEvents', 'free');
    $('#calendar').fullCalendar('removeEvents', 'free');
}

When a user click “Show”, the following code will run to render the Event objects in the “freeTime” array:

function showFreeTime() {
    for(var i = 0; i < freeTime.length; i++) {
        $('#calendar').fullCalendar('renderEvent', freeTime[i]);
    }
}

The above codes can hide the events but I have no idea why it cannot re-render the hidden events.
However, it would work if I change the “showFreeTime()” function as following:

function showFreeTime() {
for(var i = 0; i < freeTime.length; i++) {
    if (freeTime[i].id == 'regular') $('#calendar').fullCalendar('renderEvent',
    {
        id: 'free',
        title : 'Free Time',
        start : freeTime[i].start,
        end   : freeTime[i].end
    });
}

}

Could someone please give me an explanation? =)

Best regards,
James

  • 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-23T21:28:23+00:00Added an answer on May 23, 2026 at 9:28 pm

    I have had a similar issue and was able to resolve it by checking the following. The start and end times are not in the correct format, or all day event is defaulting to true.

    allDay
    true or false. Optional.

    When specifying Event Objects for events or eventSources, omitting
    this property will make it inherit from allDayDefault, which is
    normally true
    .

    start
    Date. Required.

    When specifying Event Objects for events or eventSources, you may
    specify a string in IETF format (ex: “Wed, 18 Oct 2009 13:00:00
    EST”)
    , a string in ISO8601 format (ex: “2009-11-05T13:15:30Z”)
    or a UNIX timestamp.

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

Sidebar

Related Questions

I want to put Thumbs up/Thumbs down buttons on my website. There will be
I need to put button that after click moves user to website. Can someone
Imagine a user that would like to put a form on their website that
I'm writing a snippet of code to be put on any third party website
I am trying to put share buttons into a website. I found a good
The following is my code. I simply want to load a website page and
I put a like button on my website by following this: https://developers.facebook.com/docs/reference/plugins/like/ The question
I have an AJAX heavy website. There's hundreds of buttons that momentarily put up
I put a twitter button on my website to allow people to easily tweet
I get a script from a website to put it into my website, but

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.