Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,
i've been using the FullCalendar.js plugin for a long time now, but we've just decided to add language support to one of our sites that utilises this plugin.

The documentation for this plugin @ http://arshaw.com/fullcalendar/docs/text/lang/[^]

says that i just need to add the js files that come with the zip file as a normal script below the one that calls the plugin and everything will work fine.

i have done this and it doesn't work, i get an error in developer console saying:

Uncaught TypeError: undefined is not a function ru.js:1

the file has been minimized so i don't know whats causing it, has anyone else had this problem with this plugin and language support before, or offer any advice on how to fix it as the documentation simply says to do those two things and everything else will take care of itself.
Posted

1 solution

use this code.

XML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link rel='stylesheet' href='http://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.1.1/fullcalendar.min.css' />
    <script type="text/javascript" src="jquery-1.9.1.js"></script>
    <script type="text/javascript" src="moment.min.js"></script>
    <script type="text/javascript" src="fullcalendar.js"></script>

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

        // page is now ready, initialize the calendar...

        $('#calendar').fullCalendar({
            // put your options and callbacks here
        })

    });
</script>
</head>
<body>
<div id='calendar'></div>
</body>
</html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900