Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Javascript Class/Driver Documentation (#17) (#2001) pass 4

Give a clue that the config can be passed when the library is loaded.
Shifted the CDN Comment to be closer to the example.
  • Loading branch information...
commit fe319a0ad076d77e9a562d996d9f8ca61e71ac6a 1 parent a845c73
@BillHeaton authored
Showing with 10 additions and 7 deletions.
  1. +10 −7 user_guide_src/source/libraries/javascript.rst
View
17 user_guide_src/source/libraries/javascript.rst
@@ -20,18 +20,21 @@ the path to the Javascript library that you'll be using.
$config['javascript_location'] =
'http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js';
-You can set the configuration item in Applications/config/config.php, your own
-configuration file, or with set_item() calls before you intialize the class.
-You can find details on how to set config items in
-:doc:`Config Library <config>`
-
.. note:: The example above uses the `Google CDN
<http://developers.google.com/speed/libraries/devguide>`_
(Content Delivery Network) to host the script and there are some
advantages to doing so: decreased latency, increased parallelism,
and better caching. **However, you currently can't use the
- protocol-less form of the Google URL** so be sure that you specify
- "http:" or "https:" depending on what your site is using.
+ protocol-less form of the Google URL so you will need to be sure
+ that you specify http:" or "https:" depending on what your site
+ is using.**
+
+You can set the configuration item in Applications/config/config.php, your own
+configuration file, or with set_item() calls before you intialize the class.
+You can find details on how to set config items in :doc:`Config Library <config>`.
+You can also specify the configuration items by passing a 2nd argument when you
+load the library, details can be found in :doc:`Loader Class <loader>`.
+
What you'll need in your controller
Please sign in to comment.
Something went wrong with that request. Please try again.