简体   繁体   English

Ajax Joomla模块

[英]Ajax Joomla Module

如何使用Ajax在joomla模块中从一页导航到另一页

Although your question is a little vague, I'm assuming that you want to load another module, within the same position, rather than just navigate to a new page. 尽管您的问题有点含糊,但我假设您想在同一位置加载另一个模块,而不仅仅是导航到新页面。 If that's the case, you need to look into using Mootools and AJAX to return some HTML, but you would need the module published with the correct permissions first. 如果是这种情况,您需要研究使用Mootools和AJAX返回一些HTML,但是您首先需要使用正确的权限发布该模块。

Your question is too vague to help any more. 您的问题太含糊,无法提供更多帮助。

 var ajaxUrl = "modules/mod_mapcontent/submit_form.php";

//jQuery("#map-canvas").html('<div class="map-text">Loading Map...</div>');
jQuery.ajax({
    type: "POST",
    url: ajaxUrl,
    data: {category: 'simple'},
    dataType    : "json",
    async       : false,
    success : function(result){
        data = result;

    }
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM