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

The Archive Base Latest Questions

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

Today I am trying to make Adam Arshaw’s fullCalendar to work inside my page.

  • 0

Today I am trying to make Adam Arshaw’s fullCalendar to work inside my page.
I ‘ve read the documentation provided in his webpage, and also whatever question I found it might help here, in Stack overflow, but whatever I have tried so far is doomed to failure!

Basically I have three jQuery-ui tabs. I want my calendar to be shown in the third one. I don’t care if it will be pre-loaded or if it will load when I click on the link for the third tab. (OK, I confess, I have absolutely no idea which one is the case :-P). Let’s assume though, that I want it to fire when I click on the third tab.

Here is my code:

<head>
    ...        
    <link rel="stylesheet" href="common/css/fullcalendar.css" 
        type="text/css" media="screen, projection" />

    <!-- This is a custom theme downloaded from jQuery UI -->
    <link rel="stylesheet" href="common/css/jquery-ui-user_area.css" 
        type="text/css" media="screen, projection" />

    ....
    <!-- Is the following OK? -->
    <script type="text/javascript" 
        src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js">
    </script>
    <script type="text/javascript" 
        src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js">
    </script>

    <script type="text/javascript" src="common/js/fullcalendar.js"></script>
    <script type="text/javascript" src="common/js/gcal.js"></script>

    <!-- The fullCalendar initiallizing code follows: -->
    <script> 
        $(function() {
            $ ('a#plan_tab').live('click', function(){
                var date = new Date();
                var d = date.getDate();
                var m = date.getMonth();
                var y = date.getFullYear();

                $('#plan_calendar').fullCalendar({
                    header: {
                        left: 'prev,next today',
                        center: 'title',
                        right: 'month,agendaWeek,agendaDay'
                    },
                    editable: true,
                    theme: true
                });            
            });
        });
    </script>
</head>

For the latest script I have also tried:

<script> 
    $(document).ready(function(){      
        var date = new Date();
        ...     
    });
</script>    

as long as other flavors and ways.

So, basically, in the html body, my calendar should be located around here:

<body>
    ...
    <section id="main_content">
        <div  class="user_area">
            <div id="area_tabs">
                <ul>
                    <li><a href="#overview">Overview</a></li>
                    <li><a href="#activity">Activity</a></li>
                    <li><a href="#plan" id="plan_tab">Travel Plan</a></li>
                </ul>
                <div id="overview">Some blahs</div>
                <div id="activity">Some other blahs</div>
                <div id="plan">
                    <!-- Here it should be me calendar! Arrrh -->
                    <div id="plan_calendar></div>
                </div>
            </div>
        </div>
     </section>
     ...
</body>

But it’s not! … Do you see any clues, where it might hiding? 😀

By the way i thought it would be helpful to have the project live somewhere (used Dropbox public folder…), so you could view the page I am talking about. It won’t stay there forever, though.
Anyway, I apologize for the lengthy questions.
Thanks in advance for your help!

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

    there is a good reason the previous code is not working, your selectors are not correct, consider this one for example:

    $ ('a#plan').live('click', function(){
                    var date = new Date();
                    var d = date.getDate();
                    var m = date.getMonth();
                    var y = date.getFullYear();
    

    there is no such Anchor with the id=”plan” in your HTML, you need to add this ID and your selector will start to work.
    I’ve modified the code inline and got the full calendar to work, but with some UI issues.

    the way it goes with me is to make the Anchor code look like this:

    <a href="#plan" id="plan">Travel Plan</a>
    

    and the code just worked.

    just let me know if this fixed your issue regardless of the UI ones, thanks.

    Update:
    After you modified the code, the solution has to be changed too, here is my thoughts and solution for your issue:

    The code was hooking the event using the .live() method, but since we don’t need to, handling the .click() event directly did the trick and the calendar is now working fine

    Here is the full code after these modifications.

     $(function() {
        $ ('a#plan_tab').click(function(){
                    var date = new Date();
                    var d = date.getDate();
                    var m = date.getMonth();
                    var y = date.getFullYear();
                    $('#plan_calendar').fullCalendar({
                    header: {
                    left: 'prev,next today',
                    center: 'title',
                    right: 'month,agendaWeek,agendaDay'
                    },
                    editable: true,
                    theme: true
            });
        });
    });
    

    let me know if it worked for you, and don’t forget to mark as answer.

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

Sidebar

Related Questions

I'm trying to make the add_day function work, but I'm having some trouble. Note
I spent most of today trying to make sense of the MANY different approaches
i am trying to make my page looks like this : Here is an
Today I'm trying to make a cron job for some forum login to check
Inheriting a new project today, trying to make hundreds of warnings go away, and
I was trying to make the syntax highlighting (with 256 colors) of vim work
I've spent the past 3 hours trying to make this work, so sorry if
Many web applications today have spreadsheets. I was trying to make a very similar
Today I was trying to make the innerHTML of a DIV change to a
I'm desperately trying to make node.js work again on Ubuntu 12.04 LTS. I installed

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.