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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:27:43+00:00 2026-05-31T14:27:43+00:00

Unfortunately the documentation for this on the FullCalendar site is a bit sparse. I

  • 0

Unfortunately the documentation for this on the FullCalendar site is a bit sparse.

I have 3 eventSources and I want to use a series of 3 checkboxes that when checked will display that eventSource and when unchecked will hide it.

The method for addEventSource is .fullCalendar( 'addEventSource', source )
The method for removeEventSource is .fullCalendar( 'removeEventSource', source )

I’m using FullCalendar 1.5.3 which according to the documentation

Since version 1.5, the source parameter has become rather relaxed. You can provide an event source’s Array/URL/Function or you can specify the full Event Source Object.

Do I still specify my EventSources within the main fullCalendar set-up and then use the above methods and if that is the case what is source in my case?

Below are my eventSources:

 eventSources: [               //sets up where we will get the data for claims (fullCalendar refers to them as events)
                {
                url: '../Users/json-events.aspx',   //file which generates a json feed
                type: 'GET',
                allDay: false,
                editable: false,
                data: {                 //extra params that will signify which sql script to use
                    e: 'tsb',           //gets tsb claims     
                    c: ccview,          //for this cost centre
                    t: tview,           //for this team
                    p: pid              //for this pid
                },
                error: function () {
                    alert('There was an error while fetching TSB claims');
                },
                color: '#a6b28c',       //background color of block
                textColor: 'black'      //text colour of block
            },
                {
                    url: '../Users/json-events.aspx',
                    type: 'GET',
                    allDay: false,
                    editable: false,
                    data: {
                        e: 'co',            //get call out claims
                        c: ccview,          //for this cost centre
                        t: tview,           //for this team
                        p: pid              //for this pid
                    },
                    error: function () {
                        alert('There was an error while fetching Call-Out claims');
                    },
                    color: '#ea9473',
                    textColor: 'black'
                },
                {
                    url: '../Users/json-events.aspx',
                    type: 'GET',
                    allDay: false,
                    editable: false,
                    data: {
                        e: 'ot',            //get overtime claims
                        c: ccview,          //for this cost centre
                        t: tview,           //for this team
                        p: pid              //for this pid
                    },
                    error: function () {
                        alert('There was an error while fetching Overtime claims');
                    },
                    color: '#a8bac8',
                    textColor: 'black'
                }
            ],

As you can see I’m using the same URL (the difference would be the ‘e’ parameter)

  • 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-31T14:27:45+00:00Added an answer on May 31, 2026 at 2:27 pm

    Although not the perfect solution, I have managed to implement this using hide/show of divs.

    function TSBToggle() {         
            if ($("#chb_TSB").is(':checked')) {
                $('div').filter(function () {
                    var match = '#a6b28c'; //match background colour for TSB
                    /* true will keep this div in our wrapped set
                    false will exclude div from wrapped set */
                    return ($(this).css('background-color') == match);
                }).show(); // shows all div that were matched
            } else {
                $('div').filter(function () {
                    var match = '#a6b28c'; //match background colour for TSB
                    /* true will keep this div in our wrapped set
                    false will exclude div from wrapped set */
                    return ($(this).css('background-color') == match);
                }).hide(); // hides all div that were matched
            }
        }
    
        function COToggle() {           
            if ($("#chb_CO").is(':checked')) {
                $('div').filter(function () {
                    var match = '#ea9473'; 
                    return ($(this).css('background-color') == match);
                }).show(); 
            } else {
                $('div').filter(function () {
                    var match = '#ea9473'; 
                    return ($(this).css('background-color') == match);
                }).hide(); 
            }
        }
    
        function OTToggle() {
            if ($("#chb_OT").is(':checked')) {
                $('div').filter(function () {
                    var match = '#a8bac8'; 
                }).show();
            } else {
                $('div').filter(function () {
                    var match = '#a8bac8'; 
                    return ($(this).css('background-color') == match);
                }).hide(); 
            }
        }
    

    This will hide/show each of the 3 types of events I have. Unfortunately because the divs use absolute positioning they leave a gap so the solution is not perfect. Still looking for the ideal – remove all events belonging to a source (can do) – bring back events (also can do but they return in the standard blue and not coloured as required.

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

Sidebar

Related Questions

Unfortunately I have to use Windows Server 2003 on my 32 bit workstation due
Unfortunately it looks like for various reasons I'm going to have to use Visual
The socket.io documentation mentions that heartbeats can be disabled like so: io.disable('heartbeats'); Unfortunately, while
The title pretty much says it. This is w/regard to VxWorks; unfortunately, the documentation
Trying to create a C project that references this so that I could use
I'm implementing charts using The Ziya Charts Gem . Unfortunately, the documentation isn't really
I have read several documentations about building custom ErrorHandler (by inheriting from IErrorHandler). Unfortunately,
Unfortunately, there seems to be no string.Split(string separator), only string.Split(char speparator). I want to
Unfortunately, I need to do this. I'm using ELMAH for my error log. Before
Unfortunately I don't have access to a *nix box at work or at home.

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.