PDA

View Full Version : Cannot call php file



niksu
14 Jan 2011, 1:23 AM
I have a submit button and when pressed the php file is not working... some can tell what is the problem.

{
text: 'Submit',
scope: this,
handler: function(){
var L_AjaxConnection = new Ext.data.Connection();
L_AjaxConnection.request({
method: 'POST',
url: 'submit.php',

success: function(){
Ext.Msg.alert('Sending', 'OK');
},
failure: function(P_Response){
Ext.Msg.alert(P_Response.responseText);
}
})
//formSubmit.submit({
// url:'submit.php'
//});
}
}

jay@moduscreate.com
20 Jan 2011, 7:33 AM
why are you not using the generic form submit methods?