Ankur Mukherjee
Ankur Mukherjee

Reputation: 1

Ajax Joomla Module

how to navigate from one page to another in joomla module using ajax

Upvotes: 0

Views: 586

Answers (2)

Maulik patel
Maulik patel

Reputation: 2437

 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;

    }
});

Upvotes: 0

Jeepstone
Jeepstone

Reputation: 2601

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.

Upvotes: 2

Related Questions