POLALA.COM
welcome to my space
X
Welcome to:polala.com
Search:  
Web Design | Video Games | RVs | Religion | Management | Supplements and Vitamins | Software | Basketball | Related articles
NAVIGATION: Home >>

[SOLVED] trying to dynamically add textfields to a dynamically added fieldset

Published by: mike 2009-01-09

  • Zend_Form - Simon Mundy & Ralf Eggert - Zend Framework Wiki::
    You can add pages to this list by clicking on the top right of the page you're But how do you propose I would - for example - create a dynamic form
    http://framework.zend.com/wiki/pages/viewpage.action?pageId=3596
    HOME
    I can already staticly add fieldsets and textfields to a form but now I want to dynamicly add a fieldset and then dynamiclly add fields to it. Heres my code inside my forms show event...

    this.items.add(new Ext.form.FieldSet({
    Passing parameters from one form to another > DotNetNuke Module ::
    6 posts - Last post: Dec 13, 2007In the first case, the user fills out dynamic form 1 and is redirected I tried using both hidden fields and a text field set to hide for
    http://www.datasprings.com/Products/ProductForums/tabid/727/forumid/5/view/topic/postid/2554/ptarget/2766/language/en-US/Default.aspx
    HOME
    title: 'Phone Numbers'
    }));

    debug(this.items.get(1));
    this.items.get(1).add(new Ext.form.TextField({
    fieldLabel: 'Zippy', name: 'Zippy', value: 'testing'
    Windows classic skin for Flex 3 | Mind the Flex::
    Mar 19, 2008 Ok, I was trying the Fieldset as you have described, and found out that for some reason the height of the TextField was too high,
    http://www.mindtheflex.com/?p=3
    HOME
    Using Javascript to validate email address on shopping cart ::
    Nov 10, 2008 Trying your latest solution, but only one email field shows when the page loads OK, so you want to add that field dynamically as well?
    http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q-23891229-Using-Javascript-to-validate-email-address-on-shopping-cart-checkout-form.html
    HOME
    }));

    this.doLayout();
    this.render();


    It adds the fieldset just fine but theres nothing it it. I don't see my Zippy field


  • I assume that the code you posted is from an Ext.form.FormPanel subclass. Is that correct?

    If you are dynamically adding fields to a FormPanel which has already been rendered you don't have to call render. Also instead of calling doLayout on the FormPanel itself you can call it directly on the fieldset.

    So the pseudo code... (NOT meant to run)

    var fs = new FieldSet();
    fs.add(new TextField());
    fs.doLayout();


    You also may want to take a look at adding an autoHeight: true option for FieldSet depending on what type of layout management you are using with the parent container.


  • the autoHeight thing worked perfectly...

    p.s. I am using the FormPanel subclass





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

    PRINT Add to favorites
  • is this a good christmas present for a mom
  • general hospital we only got 2 episodes
  • jls x factor do you agree they need
  • when will american idol get canceled
  • which ipod touch to buy
  • is a non functional watch an okay christmas present
  • as well as getting rid of that yodelling cow can we also get rid of bird 039 s nest boy as well
  • mini crime scene project
  • can we stop this early this year
  • jsl bless there lil souls are they not the best
  • watching streaming television in australia
  • identify old kids tv show
  • when should we put our christmas tree up
  •  
  • when will they replay last resort
  • why did nbc give rosie her own variety show
  • i need help homework help
  • which commercials do you hate the most
  • christmas classroom themes decorations
  • what to get him for christmas
  • i was thinkin should i jailbreak my ipod touch or not
  • do you like monk
  • is rex from one life to live going to ask gigi to marry him anytime soon tell me wat you think
  • who are your favourite soap couple
  • please help what is a kingdom in southwest asia that the inca conquest model resembles
  • what is a kingdom in southwest asia that the inca conquest model resembles
  • who will win the xfactor
  • where can i find a three quarter length leather coat like the one david boreanaz wore in angel
  • #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] trying to dynamically add textfields to a dynamically added fieldset , Please add it free.
    About us |Contact us |Advertisement |Site map |Exchange links
    Copyright© 2008polala.com All Rights Reserved