I'm trying to integrate Flot with Silverstripe, and running into JS loading problems.
I'm getting the js console error messgae "$.flot is not a function"
Im loading the packages in a extended Page_Controller class inside: init():
public function init() {
parent::init();
Requirements::javascript("http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js");
Requirements::javascript("presentation/flot/jquery.flot.js");
Requirements::javascript("presentation/flot/jquery.flot.time.js");
Requirements::javascript("presentation/flot/jquery.flot.selection.js");
Requirements::javascript("presentation/javascript/ChartKPI.js");
}
The JS packages are there in page source, so appear to be loading okay
I've also tried changing $.flot to "jQuery.flot", which worked in Drupal, but not in SS.
So some other JS loading problem must exist????? I've run out of idea and hoping for hints?