Results 1 to 4 of 4

Thread: dom undefined after a remove

  1. #1

    Default dom undefined after a remove

    hi!

    i create a form
    in this form i can create or remove some fields
    i remove them with this line : tab1.remove('ligne1');
    after that i submit the form
    it works well while i create fields
    but when i remove field and submit the form i got an error :

    this.dom is undefined
    anonymous()ext-all-debug.js (ligne 4183)
    anonymous()ext-all-debug.js (ligne 56080)
    anonymous()ext-all-debug.js (ligne 55966)
    anonymous()ext-all-debug.js (ligne 60342)
    anonymous(function(), Object name=scope)ext-all-debug.js (ligne 11810)
    anonymous()ext-all-debug.js (ligne 60341)
    anonymous()ext-all-debug.js (ligne 63268)
    anonymous()ext-base.js (ligne 7)


    [IMG]chrome://firebug/content/blank.gif[/IMG] var val = this.dom.value;\next-all-debug.js (ligne 4183)


    i looking through the forum and i saw that it could be an ext 3.1 bug ...

    any idea ??


    thanx

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750

    Default

    Is tab1 the name of the form? I'm pretty sure that you need to use the FormPanel's remove() method, as this will ensure that the field is taken out of the form's items list.

  3. #3

    Default

    tab1 is a formpanel
    when i look at the html code the field is well removed
    the error is during the submit

  4. #4

    Default

    any idea?

Posting Permissions

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