Skip to content

Instantly share code, notes, and snippets.

@rvsjoen
Created December 6, 2011 21:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvsjoen/1440151 to your computer and use it in GitHub Desktop.
Save rvsjoen/1440151 to your computer and use it in GitHub Desktop.
Loading jQuery in Joomla
$doc = JFactory::getDocument();
$doc->addScript('https://www.google.com/jsapi');
$doc->addScriptDeclaration('
google.load("jquery", "1.6.2", {uncompressed: true});
google.load("jqueryui", "1.8.15", {uncompressed:true});
');
$doc->addStyleSheet('http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/themes/ui-lightness/jquery-ui.css');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment