【问题标题】:Get ContentBuilder List View by Ajax Request通过 Ajax 请求获取 ContentBuilder 列表视图
【发布时间】:2013-11-21 10:33:34
【问题描述】:

我正在使用带有 Crosstec Content Builder Extension 的 Joomla 3,我为前端用户创建了一个列表视图,它运行成功,没有任何问题:

http://epc.aratech.co/index.php/en/?option=com_contentbuilder&view=list&id=6

我想在没有完整网站的情况下通过 Ajax 请求获取扩展结果,但我无法找到正确的 URL 来实现此行为。

我尝试了很多东西,包括:

http://epc.aratech.co/index.php/en/?option=com_contentbuilder&view=list&id=6&format=raw
http://epc.aratech.co/index.php/en/?option=com_contentbuilder&view=ajax&id=6

希望有人能帮到我。

编辑:

jQuery.ajax({
     type: "GET",
     url: "http://epc.aratech.co/index.php/en/?option=com_contentbuilder&view=list&id=6&format=raw",
     success: function (msg) {
         alert(msg);
     }
 });

【问题讨论】:

  • 你能提供你的ajax请求的代码吗?
  • 我在 jQuery 中使用简单的 ajax 请求
  • 是的,我收集到了,但是显示它的代码

标签: php jquery ajax joomla joomla-extensions


【解决方案1】:

如果你只想加载组件的 html 内容添加到 URL tmpl=component

http://epc.aratech.co/index.php/en/?option=com_contentbuilder&view=list&id=6&tmpl=component

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-01
    • 2013-03-14
    • 2015-09-28
    • 2018-11-29
    • 2021-01-05
    相关资源
    最近更新 更多