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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:59:03+00:00 2026-06-01T06:59:03+00:00

Good afternoon, currently using JSON feed for my calendar which works ok. Is it

  • 0

Good afternoon, currently using JSON feed for my calendar which works ok. Is it possible for me to also add a few events via an array and change colour of these? I want to add bank holidays as an array and colour them green where possible?

Currently my code looks loike this, could I add array of events under the json feed?

$('#calendar').fullCalendar({
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,agendaWeek,agendaDay'
        },

        startParam: 'start',
        endParam: 'end',
        editable: true,
        minTime: 9,
        maxTime: 21,
        allDayDefault: false,
        events : {
            url: 'json-events.php',
                        }
    }); 

Any advice 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-06-01T06:59:05+00:00Added an answer on June 1, 2026 at 6:59 am

    Try this:

    In document.ready() method or just before your calendar code. Create event sources like this:

    source1 = {
        url: 'json-events.php',
        type: 'POST',
        error: function() {
            //alert('There was an error while fetching events!');
        },
        color: '#4ca64c',
        textColor: 'black'
    };
    
    source2 = {
        url: 'array-events.php',
        type: 'POST',
        error: function() {
            //alert('There was an error while fetching events!');
        },
        color: '#4caca4',
        textColor: 'black'
    };
    

    The in fullCalendar declaration:

    $('#calendar').fullCalendar({
        ...
        eventSources: [
        // your event source
            source1,
            source2
        ],
        ...
    });
    

    Hope this helps

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

Sidebar

Related Questions

Good afternoon, i am currently wrestling with an old .dll which functionality I have
Good afternoon. Currently I am formatting some json from a query and when I
Good afternoon, I am currently in the very early phase of a new project
Good afternoon, I am currently starting to think & prototype about a (.net based)
Good afternoon, I'm learning about using RegEx's in Ruby, and have hit a point
Good afternoon all, I'm using a java.lang.StringBuilder to store some characters. I have no
Good afternoon, I'm using version 5.4.1 of the Facebook C# SDK. I should note
Good afternoon to all, I have this scenario: I am using SQL Server 'BulkInsert'
Good Afternoon, I'm currently trying to build something incredibly simple inside of the Google
Good Morning/Afternoon all, I have a ASP:grid which displays current versions of Terms and

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.