简体   繁体   中英

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.

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;

    }
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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