[eluser]pickupman[/eluser]
I agree. It seems this was glossed over before the release. The documentation is incomplete and inaccurate. I have gotten this to work, but not in a way as shown. It appears the javascript library is stuck between being a library and a driver. The documentation shows it being a driver, but neither the code or folder structure is implemented in the way outlined in the documentation for drivers.
It seems the code started to be a jquery library, but decided to not work with jquery only. Now other js frameworks could be converted to being used which is a plus.
Items needed addressed in docs:
1. $script_foot is outputted not $script_head for views by default
2. drivers folder should be added with Jquery.php being in that folder, and Javascript folder should be added under /system with Javascript.php placed in it.
3. Syntax should be $this->load->driver('javascript');
4. jQuery is not a library as it is not in the /system/libraries folder and can not be loaded as such.
5. The configuration values are mentioned, but do not exists in application/config/config.php or in application/config/javascript.php. The latter would be nice to point to the lastest copy of jQuery from Google code cache
6. The document ready function should use something safer in case users are using two frameworks.
Code:
jQuery (document) . ready (function($){
//$ is protected for jQuery to use
});
Seems like a step in the right direction, however, so far the current implementation doesn't allow method chaining or other more advanced events you use with event bubbling.