Saeven
11 May 2007, 1:17 PM
I'm guessing that the server end isn't returning the expected response. Here's the form that I am using
var simple = new Ext.form.Form({
labelWidth: 75, // label settings here cascade unless overridden
url: xmlrpcURL,
buttonAlign: 'center',
baseParams: {
command: 'registerUser'
}
});
// REGISTRATION FORM FIELDS
simple.add(
new Ext.form.TextField({
fieldLabel: 'First Name',
name: 'first',
width: 300,
allowBlank:false
}),
new Ext.form.TextField({
fieldLabel: 'Last Name',
name: 'last',
width: 300,
allowBlank:false
}),
new Ext.form.TextField({
fieldLabel: 'Company',
name: 'company',
width: 300
}),
new Ext.form.TextField({
fieldLabel: 'Email',
name: 'email',
vtype:'email',
width: 300,
allowBlank:false
})
);
simple.addButton( 'Save', function(){ simple.submit( {waitMsg: 'Thank you, one moment please...', reset: false }); } );
simple.addButton( 'Cancel', function(){ updateNavTable(); } );
simple.on({
actioncomplete: function( form, action ) {
alert( action.type );
alert( action.result );
}
});
simple.render( 'navtable' );
It posts to the page properly, and firebug shows that it returns a response such as:
<response>
<result>1</result>
</response>
...however, the waitMsg specified, shows indefinitely after a submission takes place.
Help appreciated.
Alex
var simple = new Ext.form.Form({
labelWidth: 75, // label settings here cascade unless overridden
url: xmlrpcURL,
buttonAlign: 'center',
baseParams: {
command: 'registerUser'
}
});
// REGISTRATION FORM FIELDS
simple.add(
new Ext.form.TextField({
fieldLabel: 'First Name',
name: 'first',
width: 300,
allowBlank:false
}),
new Ext.form.TextField({
fieldLabel: 'Last Name',
name: 'last',
width: 300,
allowBlank:false
}),
new Ext.form.TextField({
fieldLabel: 'Company',
name: 'company',
width: 300
}),
new Ext.form.TextField({
fieldLabel: 'Email',
name: 'email',
vtype:'email',
width: 300,
allowBlank:false
})
);
simple.addButton( 'Save', function(){ simple.submit( {waitMsg: 'Thank you, one moment please...', reset: false }); } );
simple.addButton( 'Cancel', function(){ updateNavTable(); } );
simple.on({
actioncomplete: function( form, action ) {
alert( action.type );
alert( action.result );
}
});
simple.render( 'navtable' );
It posts to the page properly, and firebug shows that it returns a response such as:
<response>
<result>1</result>
</response>
...however, the waitMsg specified, shows indefinitely after a submission takes place.
Help appreciated.
Alex