Ext 错误:0x80070057

使用EXt 2.0 在做项目是遇到了这么个问题。在window里面修改完内容,提交的时候出现的。不知道是FF的错误还是EXt的错误。

寻找解决方法中……

 

uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://localhost:8080/wayCRM/ext/ext-base.js :: anonymous :: line 1422" data: no]

 

找到一个解决方法:

 

源地址:http://www.cnblogs.com/lorn/archive/2009/06/29/1513475.html

Ext调试过程中遇到错误代码:0x80070057

对于初学者来说,调试Ext的过程中经常会出现一些莫名其妙的错误,如果没有经验,在这个错误上面会耗费很长的时间。

今天我在调试表单提交的过程中,就遇到了这样一个错误。

 uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://localhost/client/lib/Extjs/adapter/ext/ext-base.js :: anonymous :: line 10" data: no]

 这段类似蓝屏似的代码,看了就让人发麻。

其实这个是关于在AJAX通讯过程中,无法打开指定的地址的错误。而这次我的错误正好是没有为submit方法的参数URL赋值。this.getForm().submit({url:http://localhost/handler.ashx ,....});

 所以才会报以上错误。

posted @ 2009-11-03 11:37  java程序代码  阅读(151)  评论(0编辑  收藏  举报