/** * Show a list of all recent items with the given tag */ public function ajaxShowTagged($tag) { $filter = JFilterInput::getInstance(); $tag = $filter->clean($tag, 'string'); $objResponse = new JAXResponse(); CFactory::load('libraries', 'tags'); $tags = new CTags(); $html = $tags->getItemsHTML($tag); $objResponse->addScriptCall('cWindowAddContent', $html); return $objResponse->sendResponse(); }