weixin_33727510 2015-06-25 07:19 采纳率: 0%
浏览 45

Joomla Ajax请求错误

I got following error

Method get_slotsAjax does not exist

my call in healper file

 xmlhttp.open("GET","?option=com_ajax&module=quickcontact&method=get_slots&format=json",true);

my function call

public function get_slots()
{
 ....
}

Went by this documentation.

What am I Missing?

  • 写回答

1条回答 默认 最新

  • helloxielan 2015-06-28 20:07
    关注

    Your method name must end with "Ajax" as mentioned in the documentation.

    NOTE: All methods must end in Ajax.

    For example:

    method=mySuperAwesomeMethodToTrigger will call mySuperAwesomeMethodToTriggerAjax

    So your method name would be as there in the error

    get_slotsAjax

    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料