Below is a very simple project that reproduces the problem.
The button appears, but when I click it I get a javascript error, but
only in IE.
I have tried with both Win2000 and WinXP with the same results.
The full javascript error is:
Line: 15
Char: 330
Error: 'Calendar_TT.DEF_DATE_FORMAT' is null or not an object
Code: 0
controllers.py:
===========================================
import cherrypy
import turbogears
from turbogears import controllers, expose, redirect, widgets
from turbogears import identity
from turbogears.widgets import TableForm, CalendarDatePicker
class CalerrFields(widgets.WidgetsList):
date = CalendarDatePicker()
form = TableForm(fields=CalerrFields())
class Root(controllers.RootController):
@expose(template="calerr.templates.form")
def index(self):
return dict(form=form)
=========================================
form.kid:
=========================================
<!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"
xmlns:py="http://purl.org/kid/ns#"
py:extends="'master.kid'">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"
py:replace="''"/>
<title>${getattr(self,'title','CalErr Example')}</title>
</head>
<body>
<span py:content="form.display()"></span>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---