Loading Javascript in block; on_page_view

Permalink
So I have a couple of jquery addons (Datepicker and Fancybox) running successfully on the MAIN page of my C5 -- I've been using the below

public function on_page_view() {
  $html = Loader::helper('html');
  $this->addHeaderItem($html->css('jquery.ui.css'));
  $this->addHeaderItem($html->css('ccm.dialog.css'));
  $this->addHeaderItem($html->javascript('jquery.ui.js'));
  $this->addHeaderItem($html->javascript('ccm.dialog.js'));
}


*edit*... ahem! It was the css... i was loading it incorrectly.