POLALA.COM
welcome to my space
X
Web Design | Video Games | RVs | Religion | Management | Supplements and Vitamins | Software | Basketball | Related articles
Search:  
Welcome to:polala.com
NAVIGATION: Home >>
[Solved] getElementById after XTemplate render
Published by: wktd 2009-01-09

  • After I render an XTemplate, is it possible to interact with the content rendered by using getElementById?

    I keep returning null with the following code when trying to get the id 'view':



    /*******************/
    // Setup XTemplate
    /*******************/
    var tpl = new Ext.XTemplate(
    '
      ',
      '',
      '
    • Index: openacs-4/packages/ajaxhelper/ajaxhelper.info ::
      Possible values include After, Bottom, Before and Top. Defaults to After. } { - if { ![ah::is_js_sources_loaded -js_source "prototype"] } { - global
      http://fisheye.openacs.org/rdiff/OpenACS?csid=MAIN:hamiltonc:20070908142121&u&N
      HOME
      Gregarius » Ajaxian » February 2008::
      Problem solved. Permalink for 'Create annotated walk-throughs with Step .. this could get annoying after the 100th time you’ve had to do it this week.
      http://x111.com/XIII/rss/Ajaxian/2008/02/
      HOME
      ',
      ' ',
      ' ',
      ' Title: {title:htmlEncode}',
      ' Size: {size:htmlEncode}',
      '


    • Yes you can, but you would have to but the call in the afterlayout listener of the component the XTemplate is rendered in.


    • However, I would recommend you not use getElementById, as Ext has it's own selectors, which are better recommended. Ext.get('view'), would achieve just the same.


    • Thanks this worked.
      Yeah, getElementById.. bad habbits ;) Ext.get or getdom in future.





    • Where's The Advantage In Windows Genuine Advantage?
      Stocks Bounce After S&P Joins Bear Market

  • PRINT Add to favorites
    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [Solved] getElementById after XTemplate render , Please add it free.
    About us |Contact us |Advertisement |Site map |Exchange links
    Copyright© 2008polala.com All Rights Reserved