View Full Version : Newbie - I just don't get it. Help?

19 Apr 2007, 8:29 PM
Well, I'm convinced that ExtJS rocks. But I can't seem to get my programming mind around it.

For example, I am trying to recreate the forms examples page found here:


(without the drop down menus) here:


I was getting the form outline, but not the form fields along with a javascript error. I now am not getting a javascript error, but nothing appears on the page at all.

Any pointers would be greatly appreciated.

(I have installed extjs in the the following directory: includes/extjs)

19 Apr 2007, 10:27 PM
I just get a login page with an error because onPageLoad which is specified by an obtrusive onload attribute on the body is not defined.

To perform stuff on page load use

// do stuff....

20 Apr 2007, 3:28 AM
Sorry. My mistake. I removed the login required and the page comes up correctly now. I do have the Ext.onReady function that is included in the sample page (as you will now see).

Thanks for the quick reply - and any thoughts you may have on that page.

20 Apr 2007, 7:42 AM
It would appear that the JS code you put inline in the body is not getting executed. Put in the head tag like the original example - even if you inline, rather than include the js file.

20 Apr 2007, 9:32 AM
dude, don't give up.. I know it can be frustrating.. I have been playing with ExtJS since its inception a number of months back.. keep asking questions and don't get too frustrated

if you do get frustrated leave it for a week and then come back to it

I also found that coding things on your own helps immensely (don't use any libraries, try to javascript code your own scripts first)

20 Apr 2007, 11:16 AM
You have an unterminated script tag at the start of the body that I assume is left over from something else. Close it or remove it.

<script type="text/javascript" src="includes/extjs/examples/examples.js">

20 Apr 2007, 6:03 PM
Thanks for the quick replies. I have closed the script tag and moved all JS to the head. It helped, but the form fields are still not showing up. I'm getting the error "Ext.form.Form is not a constructor".


Thanks also for the encouragement. I purchased ExtJS right away, because I am committed to learning it - but after being self-taught on so much programming, it is a bit frustrating. It sure helps that the community seems so strong already and committed to helping people like me get up to speed.

Appreciate any other help you all may have.

20 Apr 2007, 6:21 PM
Also - check out this post:

There are some great links and the videos linked off that post are fantastic.
* Douglas Crockford

20 Apr 2007, 7:22 PM
This is the header of the 'ext-all.js' linked by your page:

2 * Ext JS Library 1.0 Beta 1
3 * Copyright(c) 2006-2007, Ext JS, LLC.
4 * [email protected]
5 *
6 * http://www.extjs.com/license
7 */

The Forms code was not in Beta 1. Please upgrade to the latest and see what that does for you :) In general, you should stick to the example code that comes with the version you have locally, or unexpected things can happen.

21 Apr 2007, 4:09 AM
Wow - does THAT explain a lot! I couldn't figure out where those adapter files had come from! Thanks Brian - it helps to be up to date! (I had downloaded the 1.0, but hadn't put it on the server.)

One last question: the images are not being linked appropriately (for the state and DOB in form #3). Thoughts?

Thanks so much for putting up with my bumbling and stumbling! I can't wait to get up to speed! :)

Got it! That BLANK_IMAGE_URL thing. See? I really can teach myself! :)