用的是cakephp  ,在同一个模型里,另一个页面的ajax.request就发送成功了
在projectsController中,已经加入引用var $helpers = array('Html', 'Javascript', 'Ajax', 'Time');

解决方案 »

  1.   

    ajax是view层的js代码
    页面上没有调用相应的js定义文件
      

  2.   

    在view 层加入了,还是不行,没有提示<script src="../../js/prototype.js"></script>
      

  3.   


    在view 层加入了,还是不行,没有提示<script src="../../js/prototype.js" > </script >以后出现了这个错误错误: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://localhost:8080/project_cake/js/prototype.js :: anonymous :: line 648"  data: no]
    源文件:http://localhost:8080/project_cake/js/prototype.js
    行:648
      

  4.   

    new Ajax.Request( url, { method:  'get ', parameters: pars, onComplete: delcomplete }); 都没看到你的Ajax的定义。javascript里是没有定义ajax的类的
      

  5.   

    我解决了,谢谢大家,是因为Firefox下的著名的0x80040111  问题Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://127.0.0.1:8888/ARCserve/pages/login.faces :: callBack :: line 20"  data: no]