Results 1 to 3 of 3

Thread: what's the difference between formpanel and formpanel.form?

  1. #1

    Exclamation what's the difference between formpanel and formpanel.form?

    hi all,
    i come across some problems when i programming with extjs3.3.1?
    here are the codes:
    Code:
    var _form = new Ext.FormPanel({....});
    _form.form.load(....); //-->1
    _form.load(....); //-->2
    
    //or
    _form.form.reset();
    _form.reset();
    ...
    i want to know what's the difference between "line 1" and "line 2".
    i am a extjs noob..thanks in advance.

  2. #2
    Sencha Developer
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,516

    Default

    FormPanel is the ExtJS widget, styled to match the framework.

    FormPanel.form is the Ext.form.BasicForm class. It is basically the underlying HTML form used for HTTP submission.

    FormPanel.load() and FormPanel.form.load() are the same thing - the FormPanel has load() and reset() methods as a convenience (so you don't have to get the ".form" property), but they do exactly the same thing.

  3. #3

    Default

    i got it, thank you

Posting Permissions

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