Pages

Showing posts with label joomla modules. Show all posts
Showing posts with label joomla modules. Show all posts

Tuesday, January 10, 2012

Convert Joomla 1.5 AJAX into Joomla 1.7



Joomla 1.5 AJAX Syntax

var a = new Ajax( url, {
 method: 'get',onComplete: function(){
 alert("AJAX is Working in Joomla 1.5")},
 update: element
}).request();


Joomla 1.6/1.7 AJAX Syntax

var a = new Request.HTML({
 url: url,
 method: 'get',onComplete: function(){
 alert("AJAX is Working in Joomla 1.7")},
 update: element
}).send();


Joomla 1.5 above AJAX syntax is not working in Joomla 1.7 because in Joomla 1.7 AJAX is not defined in mootools. so this perticular Joomla 1.6/1.7 AJAX syntax is properly working in Joomla 1.7 and in Joomla 1.6 also.

Monday, July 25, 2011

Set your Joomla Module in Component in Joomla

<?php
jimport('joomla.application.module.helper');
// this is where you want to load your module position
$modules = JModuleHelper::getModules('MODULE-POSITION');
foreach($modules as $module)
{
        echo JModuleHelper::renderModule($module);
}
?>

You can set joomla modules in your joomla components by setting this code. only you have to put this code in component where you want to saw you Joomla module and only set position in 'MODULE-POSITION'.