Results 1 to 3 of 3

Thread: ct is null what i do wrong here

  1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    32

    Question ct is null what i do wrong here

    here it is
    js click here
    html click here
    the error bring me to this line
    ct.dom.insertBefore(this.el.dom, position);
    ct is null
    ie 8 error report is:
    Code:
    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

  2. #2
    Sencha User BitPoet's Avatar
    Join Date
    Sep 2008
    Location
    Bavaria
    Posts
    277

    Default

    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.

  3. #3
    Sencha User
    Join Date
    Nov 2007
    Posts
    32

    Default

    many thanks works

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •