I am trying to create a Basic Form from an existing markup. I did that in ExtJS 3.3 easily this way:
var formEl = document.createElement('form');
........
var formSubmit = new Ext.form.BasicForm(formEl, {
            method:'POST',
            fileUpload:true
        });
It worked as Ext 3.3 Basic Form used to accept form id or element DOM as first param. But in Ext 4.0, there is no such option. I need to submit this Basic Form later.
Can you tell me: is there any other option in E开发者_运维知识库xtJS 4 to do this?
Unfortunately that cannot work with Ext JS 4.
In Ext 4 forms are not bound to actual HTML form elements. Instead on submit temporary form element is generated and submitted to the server.
You should submit your form using JS. Here is an example how to do that.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论