View Full Version : My extjs3.4 form does not call the specified URL on submit.

6 Dec 2013, 8:49 AM
I am trying to submit a form and call the URL on form submit. However, the form gets submitted, but the URL does not get called. What could be the reason.
Below is my code. Also if I specified the URL at the form level and not within the handler method, the URL gets called, but the form does not submit.
I am not able to understand this behaviour.

Any help is highly appreciated.


xtype: 'form',
padding: 0,
margin: 0,
border: false,
fileUpload: true,
timeout: 300,
height: 0,
region: 'north',
monitorValid: true,
standardSubmit: true,
id: 'leverageForm2',
fbar: {
xtype: 'toolbar',
buttonAlign: 'center',
id: 'leverageFormToolbar',
items: [
xtype: 'button',
text: 'Refresh Report Data',
type: 'submit',
formBind: true,
handler: function() {
url: '/wam-coldfusion/rest/api/simulator/report/refreshReportData',
waitMsg: 'Submitting for Report Generation ...',
success: function(form) {
failure: function(form, action) {
Ext.Msg.alert('Failure', 'Export Unsuccessful!');

13 Jan 2014, 10:05 AM
Would you be able to process the form if you use XHR? Try commenting out the standardSubmit in your example.