PDA

View Full Version : Extjs window body content



harini.p
2 Jul 2009, 3:14 AM
Hi,
I need to get the content of body of a window.I tried the following:
Ext.getCmp(window-name').body.getValue()

But this is giving a blank value only. Can anyone please let me know how to get the body content of a window?

Animal
2 Jul 2009, 3:15 AM
http://extjs.com/deploy/ext-3.0-rc3/docs/?class=Ext.Element

mschwartz
2 Jul 2009, 4:55 AM
Just an FYI

That URL opens a new tab in my browser and just shows loading image forever.

I'm using FF 3.5 under Ubuntu.

steffenk
2 Jul 2009, 4:59 AM
works for me without problem.

mschwartz
2 Jul 2009, 5:07 AM
See attached.

Animal
2 Jul 2009, 5:08 AM
Clear your browser cache. That's the latest Ext API docs!

mschwartz
2 Jul 2009, 5:11 AM
Cleared cache, same errors.

Loading the docs from my WWW server, it works.

mschwartz
2 Jul 2009, 5:14 AM
I shrunk my browser and took a new snapshot. Hopefully you can read the text.

Animal
2 Jul 2009, 5:18 AM
There is nothing wrong with the page. It works.

You will have to debug using Firebug.

It looks like your proxy server might have interfered with some of the requests.

You will have to examine the NET tab, and peek into the responses.

mschwartz
2 Jul 2009, 5:23 AM
There's no proxy server here.

mschwartz
2 Jul 2009, 5:26 AM
And now it's working, probably because I restarted my browser.

If clearing the browser cache is going to cause problems, a simple fix is to modify the script tags so they look something like:

<script src="ext/ext-all.js?version=3.0-rc3-svn-version#"></script>


(where svn-version# is the actual svn rev)

Animal
2 Jul 2009, 5:31 AM
Do I remeber seeing sometime an article which says that when <scripts> are in the <head> each one is fully evaluated before the next one is loaded and evaluated, but when in the <body> they are loadedand evaluated all at once (or as far as is possible given concurrent connection limits)

Could be that the Ext.extend is trying to extend ComboBox to create the SelectBox before ext-all-debug.js has fully evaluated.

harini.p
2 Jul 2009, 9:07 PM
Hi,
I am using EXTJS 2.2 and please let me know how to get the body content of window in the same.

Animal
2 Jul 2009, 9:12 PM
Looking at the API docs, what is the body element of a Window?