PDA

View Full Version : Error while submit a form



gruu
8 Jun 2010, 8:40 AM
Hi
I've been usin EXT on php and no problem
Now I'm trying EXTJS on ASP.NET

On a simple form I can not fire the "success" event from the form
Instead of it, Ext executes the string response from server

Ext.plantillas.formulari.form.submit({
method:'POST',
url:'Plantillas.aspx?com=desar_plantilla',
success:function (form,action){
Ext.plantillas.finestraEdicio.hide();
Ext.plantillas.grid.load();
},
failure: function (form,action){
alert("error");
}
});

If Plantillas.aspx returns "alert(1)" a alert(1) is executed and never fires success function

huh?

Any ideas what's happen?

THX