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-06-29 19:21  Lorn  阅读(2368)  评论(0编辑  收藏  举报