title: Make Browser to remember name/password in form by ExtJS 3
body: <p>I have to make a form, what Browser can see and save password. I found lots of sollutions, and in Firefox - for example - user <em>owlness</em>'s sollution is very nice and useful. But Chrome doesn't show anything and console says: <em>Uncaught TypeError: Cannot call method 'addUnits' of null</em></p>
  
  <pre><code>&lt;form id="auth-form" action="" method="POST"&gt;
    &lt;input id="auth-username" type="text" name="username" class="x-hidden"&gt;
    &lt;input id="auth-password" type="password" name="password" class="x-hidden"&gt;
    &lt;input id="auth-submit" type="submit" class="x-hidden"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>...</p>
  
  <pre><code>       new Ext.FormPanel({
              region: 'south',
              //id: 'login',
              el: 'auth-form',
              autoShow: true,
              height: 125,
              title: 'Login',
              padding: 5,
              frame: true,
              labelWidth: 80,
              defaultType: 'textfield',
              defaults: {
                  allowBlank: false,
                  width: 250
              },
  
              items: [{
                  fieldLabel: 'Username',
                  el: 'auth-username',
                  autoShow: true,
                  inputType: 'text',
                  //id: 'username',
                  name: 'username'
              }, {
                  fieldLabel: 'Password',
                  el: 'auth-password',
                  autoShow: true,
                  inputType: 'password',
                  //id: 'password',
                  name: 'password'
              }],
  
              // auto focus ...
  
              // submit on enter ...
  
              buttons: [{
                  text: 'Login',
                  type: 'submit',
                  //el: 'auth-submit',
                  //autoShow: true,
                  handler: function (button) {
                      var b = button; // scope
                      var f = b.ownerCt.ownerCt.getForm();
                      if (!f.isValid()) {
                          return;
                      }
                      f.standardSubmit = true;
                      b.ownerCt.disable();
  
                      MY.ajax.login({
                          scope: this,
                          success: function (res) {
                              f.submit();
                              win.close();
                          },
                          failure: function () {
                              b.ownerCt.enable();
                          },
                          params: f.getFieldValues()
                      });
                  }
              }]
          })
  </code></pre>
  
  <p>Can you help me, what can I do?</p>