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

    评论

报告相同问题?