doudiewen9435 2014-06-14 03:31
浏览 45
已采纳

xajax Javascript组件无法包含在内

I am Facing the following error while using ajax in codeigniter. I have successfully implemented xajax at client side, it it gives the error on admin side. the admin and client controller are at controllers directory.

The error is Error: the xajax Javascript component could not be included. Perhaps the URL is incorrect? URL: xajax_js/xajax_core.js

please specify the answer.

  • 写回答

2条回答 默认 最新

  • dongxin2734 2015-04-09 15:00
    关注

    I'm assuming that you have a recent version of the Apache2 web server installed, and are not using some other web server. I had exactly this problem and here are my suggestions as they relate to Apache2.

    Make sure that you have a proper alias installed for the xajax files in the Apache2 web server. You should have a .conf file in mods-available, symlinked into mods-enabled, with something very similar to the following:

    <IfModule alias_module>
        Alias /xajax/ /var/lib/php5/xajax/
        Alias /xajax_js/ /var/lib/php5/xajax/xajax_js/
    
        <Directory "/var/lib/php5/xajax">
            Require all granted
            Order deny,allow
            Allow from all
        </Directory>
    </IfModule>
    

    Substitute the appropriate path to your xajax installation in the above.

    In particular, if you are using Apache 2.4, note that the "Require all granted" directive is now required instead of the "Order" and "Allow" directives which accomplished the same thing in Apache 2.2.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部