I am trying to use the calender code I found in
http://www.dynarch.com/projects/calendar/
in my form template, with a generic view.  I have copied the script
files to many places in my project and tried different configurations
in settings, but I always get the same error, Calendar is not defined.
My template starts with
<head>
<style type="text/css">@import url(calendar-win2k-1.css);</style>
<script type="text/javascript" src="media/calendar.js"></script>
<script type="text/javascript" src="media/lang/calendar-en.js"></script>
<script type="text/javascript" src="media/calendar-setup.js"></script>
</head>

and has the date field

<p><label for="id_data">start:</label> {{ form.data }} <button
type="reset" id="trigger">...</button>
<script type="text/javascript">
  Calendar.setup(
    {
      inputField  : "id_data",         // ID of the input field
      ifFormat    : "%m %d, %Y",    // the date format
      button      : "trigger"       // ID of the button
    }
  );
</script>

as described on the script site. What is wrong?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to