PDA

View Full Version : Minimizing amount of code I need for a form..



stevefink
27 Sep 2007, 8:06 AM
Hi all,

I've incorporated Ext in several parts of different projects before. I want to get more optimized and load only components I really need for specific pages. If I just want to use the form component, without any extra code... can I just use ext-base.js and form.js for minimal code?

Also, I'd like to extend the Form with the following:

http://extjs.com/forum/showthread.php?t=5106

Should that be incorporated directly into form.js, or should I include that code in a separate file and link it into my HTML -after- form.js has been included?

Thank you kindly for your assistance,

- sf

Animal
28 Sep 2007, 12:14 AM
See the build your own download page. The Form class will have dependencies on other classes which will need to be included. You can use that download page to build a .js file which just includes Form and the classes it depends on.

stevefink
28 Sep 2007, 7:05 AM
Hi Animal,

Thanks for the reply. Just to clear up some confusion on my part, when you refer to the download page, I'm assuming this is the demo page included in ext's source?

:-)

- sf

Animal
28 Sep 2007, 7:30 AM
http://extjs.com/download/build