lorn

对于初学者来说,调试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,....});

 所以才会报以上错误。

分类:

技术点:

相关文章:

  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-04-26
  • 2021-10-01
  • 2021-09-23
  • 2021-08-07
猜你喜欢
  • 2022-12-23
  • 2021-04-03
  • 2021-10-28
  • 2021-07-07
  • 2022-03-03
  • 2021-09-27
  • 2022-12-23
相关资源
相似解决方案