我正在用ExtJS编写一个小型客户端应用程序,它可以在Universe中找到一个Web服务。我的问题是,当用户输入错误的凭据时,服务器会抛出401异常。我处理它
callback: function (records, operation, success){
if (operation.error.status == 401){
filedset.setInstructions("Invalid credentials");
} else{
//handle other exceptions
}
}
但我的自定义消息被浏览器弹出窗口覆盖,要求提供凭据。我怎么能压制那个弹出窗口。我无法控制服务器端。