Results 1 to 2 of 2

Thread: problem in submitting form

  1. #1

    Question problem in submitting form

    i want to open other jsp page or want to call servlet so i am using following code, it is always showing success is not defined in FireBug console. how to solve this problem-

    See following code:

    var panelfield = new Ext.form.FormPanel({
    labelWidth: 100,
    frame: true,
    title: 'Version 1.0',
    bodyStyle: 'padding:5px 5px 0',
    width: 568,
    height:200,
    collapsible:true,
    defaults: {width: 100},

    items: [{
    xtype:'textfield',
    fieldLabel: 'Site Code',
    name: 'first',
    anchor:'95%'
    }],
    buttons: [{
    text: 'Update Site',
    handler: function() {
    panelfield.getForm().getEl().dom.action = '/updateServ.jsp';
    panelfield.getForm().getEl().dom.method = 'POST';
    panelfield.getForm().submit({
    success:true

    });
    }


    },{
    text: 'Remove Site',
    handler: function() {
    panelfield.getForm().getEl().dom.action = 'http://localhost:8080/Prototype/DeleteServ';
    panelfield.getForm().getEl().dom.method = 'POST';
    panelfield.getForm().submit();


    }
    }]
    });

    panelfield.render('panelfield');





    please help ; thanks in advance

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    success should be a method, not a boolean! Look at hte API for details.

Posting Permissions

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