Code: Select all
global $mainframe;
$document =& JFactory::getDocument();
$document->addCustomTag('<script src="http://maps.google.com/maps?file=api&v=2&key=" type="text/javascript"></script>');
Thanks,
FlyingEagle
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
Code: Select all
global $mainframe;
$document =& JFactory::getDocument();
$document->addCustomTag('<script src="http://maps.google.com/maps?file=api&v=2&key=" type="text/javascript"></script>');
Code: Select all
global $mainframe;
Code: Select all
defined( '_JEXEC' ) or die( 'Restricted access' );
JHTML::_('behavior.mootools');
//scripts
$document =& JFactory::getDocument();
$document->addCustomTag("<script src='components/com_helloworld/moolet/mootips.js' type='text/javascript'></script>");
$document->addCustomTag("<script src='components/com_helloworld/moolet/mootabs1.2.js' type='text/javascript'></script>");
$document->addCustomTag("<script type='text/javascript' charset='utf-8'>window.addEvent('domready', init);function init() {myTabs1 = new mootabs('myTabs', {height: '500px', width: '90%', useAjax: true, ajaxUrl: '/components/com_helloworld/moolet/controller.php', ajaxLoadingText: 'Loading...'});}</script>");
//CSS style sheets
$document->addHeadLink("components/com_helloworld/moolet/mootips.css", "stylesheet", "rel");
$document->addHeadLink("components/com_helloworld/moolet/mootabs1.2.css", "stylesheet", "rel");
//Made from helloworld MVC component
echo JText::_('register');