Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    45
    Vote Rating
    0
    maxkliver is on a distinguished road

      0  

    Default [solved]How to submit data from formPanel to server?

    [solved]How to submit data from formPanel to server?


    I have a store and FormPanel. I want to send data from formPanel to server:

    Code:
         var store_form=null;
         store_form = new Ext.data.Store({                
                url: url_servlet+"kadastr_zemform.jsp",
                reader: new Ext.data.XmlReader({
                totalProperty: "results", 
                record: "contact",
                                fields: [
               ]}),
    
            });    
    
        });
        store_form.load();

    Panel

    Code:
     var podform = new Ext.FormPanel({
            labelAlign: 'left',
            id: 'tab_6',
            frame:true,
            title: 'Договоры подряда',
            bodyStyle:'padding:5px 5px 0',
            width: 600,
            listeners: {
                'activate' :  function(pod_form,records,options) {
                console.log("store:"+store_form);
                this.loaded = true;
                //alert("loaded");
                //console.log(store.getAt(0));
                var record = store_form.getAt(0);
                podform.getForm().loadRecord(record);
                }
            },
                    fields[]
         });
    
        podform.addButton({
            text: 'Submit',
            //disabled:true,
            handler: function(){
            podform.getForm().submit({url:url_servlet+'submit.jsp', waitMsg:'Saving Data...', submitEmptyText: false});
            }
        });
    In firebug i see that nofing to send in server. What i doing wrong?
    Another question what i gonna do on server side to get this data?

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    544
    Vote Rating
    51
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

    Default


    You aren't sending anything to the server because you have a blank form (i.e. there are no input fields).

    You would need to add some fields to your form which you enter values into before submitting.

    For example:
    http://examples.extjs.eu/formloadsubmit.html

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    45
    Vote Rating
    0
    maxkliver is on a distinguished road

      0  

    Default


    I have a lot of fields, i delete its from code make it look more simplest. And i dont understand i do all like in this example but not works. This error on client side. Please look at it http://stackoverflow.com/questions/1...anel-to-server.

Thread Participants: 1