PDA

View Full Version : DateField class help needed.



Clayton
6 Jun 2007, 6:24 AM
I want to use in my project only the class DateField, but till now i did not figure out how files i must link in my html page.

I linked these js files:



<script language="javascript" type="text/javascript" src="../../ext-ui/adapter/prototype/prototype.js"></script>

<script language="javascript" type="text/javascript" src="../../ext-ui/adapter/prototype/ext-prototype-adapter.js"></script>

<script language="javascript" type="text/javascript" src="../../ext-ui/package/widget-core.js"></script>

<script language="javascript" type="text/javascript" src="../../ext-ui/package/datepicker/datepicker.js"></script>

<script language="javascript" type="text/javascript" src="../../ext-ui/source/widgets/form/DateField.js"></script>
but I'm getting this error:
Ext.form.DateField.superclass has no properties
Ext.form.DateField.superclass.constructor.call(this, config);

Anyone cold help me?


ps.: As you can see i'm not a english native speake:D

ps2.: I don't wanna use "ext-all.js".

tryanDLS
6 Jun 2007, 6:42 AM
This has been covered before. If want to build a smaller version of ext-all.js you have to use the 'Build Your Own Ext' from the download page. Otherwise, you'll have to manually determine the dependencies.

Clayton
6 Jun 2007, 7:02 AM
tryanDLS, thanks for your answer!

only another question... is there any doc wich explain what depencencies we have to determine depending the widget?

tryanDLS
6 Jun 2007, 8:38 AM
There is no such document. The library is evolving too rapidly to maintain an updated list. You could look at the .jsb files in the download which are used to build the packages - this will give you a basic idea. It's not perfect, but it's a place to start.