PDA

View Full Version : ct is null what i do wrong here



fastwings
19 Aug 2009, 11:44 PM
here it is
js click here (http://pastebin.com/deab5bd9)
html click here (http://pastebin.com/d4a9ddc6b)
the error bring me to this line
ct.dom.insertBefore(this.el.dom, position);
ct is null
ie 8 error report is:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322; Creative AutoUpdate v1.40.02)
Timestamp: Thu, 20 Aug 2009 07:43:50 UTC


Message: 'dom' is null or not an object
Line: 14639
Char: 17
Code: 0
URI: http://localhost:6970/Assets/javascript/ext-all-debug.js


i kinda lost don't know what and where i do wrong here :">:">

BitPoet
19 Aug 2009, 11:48 PM
Wrap the code in the script with Ext.onReady, otherwise it gets executed before the page has finished rendering and the render target ('formHolder') is accessible in the DOM.

fastwings
19 Aug 2009, 11:50 PM
many thanks works