This tutorial presents a way of separating JS code from views and passing to it values from PHP.
This tutorial presents a way of separating JS code from views and passing to it values from PHP.
This wiki will explain how to include a javascript library in a widget.