Javascript 表单在ExtJS中提交,POST方法不起作用

Javascript 表单在ExtJS中提交,POST方法不起作用,javascript,forms,extjs,submit,Javascript,Forms,Extjs,Submit,我的代码如下: { xtype: 'button', text: 'myButton', handler: function() { if (Ext.getCmp('button').getValue().length > 1) { var mystring = Ext.getCmp('button').getValue();

我的代码如下:

            {
            xtype: 'button',
            text: 'myButton',
            handler: function() {
            if (Ext.getCmp('button').getValue().length > 1) {
                var mystring = Ext.getCmp('button').getValue();
                var url = 'myurl.com/test.cgi?search='+ mystring;
                var url_id = '2637;
                window.open(url,url_id);
            } else {
                alert("Lenth too small !");
                }
             },

             }
            {
            xtype: 'button',
            text: 'myButton',
            hander: function()
             {
                this.getForm().standardSubmit=true;
                this.getForm().doAction('standardsubmit',
                {url: 'myurl.com/test.cgi',
                standardSubmit: true,
                method: 'POST'}
                    );
            }

        }
现在我的代码如下:

            {
            xtype: 'button',
            text: 'myButton',
            handler: function() {
            if (Ext.getCmp('button').getValue().length > 1) {
                var mystring = Ext.getCmp('button').getValue();
                var url = 'myurl.com/test.cgi?search='+ mystring;
                var url_id = '2637;
                window.open(url,url_id);
            } else {
                alert("Lenth too small !");
                }
             },

             }
            {
            xtype: 'button',
            text: 'myButton',
            hander: function()
             {
                this.getForm().standardSubmit=true;
                this.getForm().doAction('standardsubmit',
                {url: 'myurl.com/test.cgi',
                standardSubmit: true,
                method: 'POST'}
                    );
            }

        }

当我使用上面第一个代码时,我的代码工作得很好,但我对get方法有限制,所以当我使用长搜索字符串时,它会崩溃。现在我有了post方法,但它什么也不做。如果有人能帮我解决什么问题,或者如果你能告诉我任何其他方法,让上面的代码以post not url search=之类的形式通过表单,以便尽可能长的字符串

params:{search:'searchstring'}
添加到配置对象中。请参阅提交的内容?收到了什么?错误是什么?