View Full Version : ct has no properties
elric6
13 Jul 2007, 12:33 AM
Hello, i make 2 forms with ext, and when i declare and render the second form, i see this error... 'ct has no properties'....
the code is :
var form = new Ext.form.Form({
labelAlign: 'right',
labelWidth: 50
});
form.render('"formulario"');
var formBusqueda = new Ext.form.Form({
labelAlign: 'right',
labelWidth: 50
});
formBusqueda.render('"formularioBusqueda"');
why??
thx in advance
tryanDLS
13 Jul 2007, 8:23 AM
This doesn't tell us much. You probably don't have a container built that you're trying to render into. Step thru the code w/Firebug to see what container (ct) it's looking for.
brian.moeskau
13 Jul 2007, 1:48 PM
form.render('"formulario"');
It's because of your nested quotes -- you are telling it that the id of your element is actually "formulario" WITH the double-quotes as part of the id. Do this instead:
form.render('formulario');
user23
21 May 2008, 2:55 AM
Hi!
This error may also occur if you want to render a form, grid, etc. into a HTML container that doesn't exist. That means:
You want to render a form
form.render("myForm")but you forgot to create, for example a
<div id="myForm"></div>user23
Cartman786
25 Jun 2008, 9:54 AM
Hi!
This error may also occur if you want to render a form, grid, etc. into a HTML container that doesn't exist. That means:
You want to render a form
form.render("myForm")but you forgot to create, for example a
<div id="myForm"></div>user23
Hey guys
I am new to Ext library and have 'ct has no properties' caught by firebug
I am using formgrid. JSON is used to pass data from server side to javascript file
The error seems to be in ext-all-debug.js
Complete citing is
ct has no properties
onRender(null, null)ext-all-debug.js (line 15681)
render("basic", undefined)ext-all-debug.js (line 12237)
render()ext-all-debug.js (line 13843)
Component(Object title=Basic StatusBar renderTo=basic width=350)ext-all-debug.js (line 12164)
apply()ext-base.js (line 9)
apply()ext-base.js (line 9)
apply()ext-base.js (line 9)
(no name)()statusbar-demo.js (line 47)
fire()ext-all-debug.js (line 1488)
fireDocReady()ext-all-debug.js (line 1525)
chrome://firebug/content/blank.gif this.el = ct.createChild({
The application works fine, its just that it has yellow exclamation at bottom left with error keyword
Please let me know if you think we can get rid of this
Thanks
Cartman
rtikku
8 Feb 2009, 10:43 AM
I was getting the same error. In my case, I had the div, but by server side program generating the javascript was placing the render call outside the Ext.onReady() function.
Moving javascript inside Ext.onReady fixed the problem.
I know this is an old thread and the OP would have fixed the error, but posting here for the benefit of others who might be getting the same error.
Rakesh
aconran
9 Feb 2009, 2:37 AM
From the stack trace it looks like it is erroring out when trying to render a StatusBar in the file statusbar-demo.js on line 47 to a div with an id of 'basic'.
Do you have a div with an id of basic in your page? If not make sure that you do. ct has no properties means that the ct (or container) did not exist.
jano80
14 Apr 2009, 10:06 PM
excellent, thanks user23
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.