PDA

View Full Version : Why window popup is open when FormPanel is submitted?



adama
25 Mar 2010, 1:56 AM
I have a form panel :


buttons:[
{text:"upload",
handler:function(){
if(photo.form.isValid()){
Ext.Ajax.request({
form: photo.getForm().getEl().dom,
url: 'uploadPhoto.action',
isUpload:true,
params: {idCardNo:photo.getForm().findField('idCardNo').getValue()},
success:function(response,options) {
var finastr = response.responseText;
var resp = Ext.util.JSON.decode(finastr);
if(resp.success)
Ext.MessageBox.alert("status",resp.tip);
},
failure: function() {
Ext.MessageBox.alert("status","fail");
}
});
}else{
Ext.MessageBox.alert('tip,'please fullfill the form);
return;
}
}
}]


When buttons is clicked:
In Internet Explorer (7 et 8), an popup window is opened.
In Firefox, no window is open : OK

the window like this:
http://b35.photo.store.qq.com/http_imgload.cgi?/rurl4_b=0a7875d291c30808eca54ec89c99780aff559204843b5f9834378f66114aa7e09a7e805ec8c8ffcd554207358614a6e2aad21a6da31764b3e035cc830f5b05235ebf22e1414588d25013d484da1a9ffc7d883479&a=39&b=35


Any suggestion is appreciated!Thank you~