ENART.HZRN.COM
welcome to my space
X
Search:  
 HOME   [2.0] On-the-fly add/remove form fields?
[2.0] On-the-fly add/remove form fields?
Published by: mike 2010-03-19
Welcome to:enart.hzrn.com

  • Hi there,

    Where this wasn't possible with 1.x, is it yet possible to add/remove fields on the fly (post-render) with 2.0?

    Thanks!
    Alex


  • Take a look at the function render in file Component.js. There is argument position but I've never tried.

    Take this as a hint only...;)


  • doLayout does the trick - thanks Saki.

    On a related note, can we only append fields to a form, and not at a specific position?

    Something like:

    "addAt( field, position )"

    would be great. Sometimes fields need a specific ordering...


  • Alright, something like this works as far as addition goes:


    "http://www.w3.org/TR/html4/loose.dtd">


    Form Field Removal?















  • Seems the component.insert( index, component ) method does the trick. Now to find a crafty means to devise a form manager so that we can have an insertBefore/insertAfter :)

    Cheers!
    Alex


  • I should be (not tested): form.add(a-field-instance). Maybe you need to call form.doLayout() then.





  • Specify separate TreeNode expand/collapse images
    How to get all rows of a grid

    You are looking at:enart.hzrn.com's [2.0] On-the-fly add/remove form fields?, click enart.hzrn.com to home
  • whats a good resort to stay at for a 19 year old in cancun
  • the vettes at best buy
  • i 039 m celebrating my 25th birthday in cancun what would be a good restaurant to celebrate the night
  • i might be moving to new orleans help
  • what activities to do in cancun
  • barcello costa cancun
  • plz help me find my friend living in melbourne
  • any since tipping when you check in to all inclusive in mexico for better room
  • bus from cancun airport to playa del carmen
  • la governor jinda requests help from oh after hurricane gustav
  • cancun do people annoy you on the street offering drugs
  • from rowville to melbourne university how long on bus train
  • things to do in cancun mexicooo
  •  
  • please help can anyone tell me roughly how much it would cost to get married in cancun we live in the uk
  • we are a gay male couple traveling to cancun to stay at temptations resort any suggestions warnings
  • is the grand bhai princep a good hotel in mexico
  • where can i buy tickets in advance for coco bongo in cancun
  • what are your views on melbourne airport expanison
  • what 039 s the best thing about melbourne
  • whats it like to live in louisiana
  • melbourne australian open
  • has the hard rock cafe in melbourne closed down
  • property boom in melbourne australia
  • clothes shopping in melbourne
  • what 039 s so bad about dandenong city melbourne
  • crown night club fusions
  • studying in latrobe university what are good suburbs in northeast melbourne for a family with 2 kids
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 enart.hzrn.com        Site made:CFZ