Menu

Calander is undefined

Help
Julian
2010-11-19
2013-06-03
  • Julian

    Julian - 2010-11-19

    I am getting the following error from my script and as a result the calander function is not working:

    Message: 'Calendar' is undefined
    Line: 101
    Char: 4
    Code: 0
    URI: http://www.\***********.co.uk/enrol.html

    The code on this line shows:

     <script type='text/javascript'>   Calendar.setup({
    

    Can anyone tell me where I am going wrong.

    Thanks

    Julian

     
  • TNTEverett

    TNTEverett - 2010-11-20

    You can not call the Calendar.Setup function without loading the javascript files in the html header.

    <head>
        <title>Book Visit - created by phpFormGenerator</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="style.css" rel="stylesheet" type="text/css">
        <!- calendar stuff ->
        <link rel="stylesheet" type="text/css" href="calendar/calendar-blue2.css" />
        <script type="text/javascript" src="calendar/calendar.js"></script>
        <script type="text/javascript" src="calendar/calendar-en.js"></script>
        <script type="text/javascript" src="calendar/calendar-setup.js"></script>
        <!- END calendar stuff ->

     
  • Julian

    Julian - 2010-11-20

    Thanks for the reply. I am already loading these files in the header.

    Any other suggestions?

    Regards

    Julian

     
  • Julian

    Julian - 2010-11-20

    Please accept my apologies.

    I have just double checked and the js files were not in the header.

    Thanks for the advice. Its all working now.

    Regards

    Julian

     
  • Julian

    Julian - 2010-11-20

    One other question.

    How can I get the output to read dd/mm/yyyy as opposed to what it is at the moment mm/dd/yyyy.

    Thanks

     
  • TNTEverett

    TNTEverett - 2010-11-20

    The calendar is a plug module which I don't support beyond very basic installation issues.

    /*  Copyright Mihai Bazon, 2002-2005  |  www.bazon.net/mishoo
    * ---------------------------------------
    *
    * The DHTML Calendar, version 1.0 "It is happening again"
    *
    * Details and latest version at:
    * www.dynarch.com/projects/calendar
    *
    * This script is developed by Dynarch.com.  Visit us at www.dynarch.com.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.