diff --git a/src/ajax.js b/src/ajax.js index 3102025..88a1f52 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -8,7 +8,7 @@ * * Actual requests are made by creating instances of [[Ajax.Request]]. * - *

Request headers

+ *
Request headers
* * The following headers are sent with all Ajax requests (and can be * overridden with the `requestHeaders` option described below): @@ -21,7 +21,7 @@ * * `Content-type` is automatically determined based on the `contentType` * and `encoding` options. * - *

Ajax options

+ *
Ajax options
* * All Ajax classes share a common set of _options_ and _callbacks_. * Callbacks are called at various points in the life-cycle of a request, and @@ -64,7 +64,7 @@ * `true` otherwise): Sanitizes the contents of * [[Ajax.Response#responseText]] before evaluating it. * - *

Common callbacks

+ *
Common callbacks
* * When used on individual instances, all callbacks (except `onException`) are * invoked with two parameters: the `XMLHttpRequest` object and the result of diff --git a/src/ajax/periodical_updater.js b/src/ajax/periodical_updater.js index 3214273..d5fa4ef 100644 --- a/src/ajax/periodical_updater.js +++ b/src/ajax/periodical_updater.js @@ -16,7 +16,7 @@ * keeping track of the response text so it can (optionally) react to * receiving the exact same response consecutively. * - *

Additional options

+ *
Additional options
* * `Ajax.PeriodicalUpdater` features all the common options and callbacks * described in the [[Ajax section]] — _plus_ those added by `Ajax.Updater`. @@ -34,7 +34,7 @@ * is the same; when the result is different once again, `frequency` will * revert to its original value. * - *

Disabling and re-enabling a PeriodicalUpdater

+ *
Disabling and re-enabling a PeriodicalUpdater
* * You can hit the brakes on a running `PeriodicalUpdater` by calling * [[Ajax.PeriodicalUpdater#stop]]. If you wish to re-enable it later, call diff --git a/src/ajax/request.js b/src/ajax/request.js index b79df17..352cc48 100644 --- a/src/ajax/request.js +++ b/src/ajax/request.js @@ -5,7 +5,7 @@ * * `Ajax.Request` is a general-purpose class for making HTTP requests. * - *

Automatic JavaScript response evaluation

+ *
Automatic JavaScript response evaluation
* * If an Ajax request follows the _same-origin policy_ **and** its response * has a JavaScript-related `Content-type`, the content of the `responseText` @@ -28,7 +28,7 @@ * * The MIME-type string is examined in a case-insensitive manner. * - *

Methods you may find useful

+ *
Methods you may find useful
* * Instances of the `Request` object provide several methods that can come in * handy in your callback functions, especially once the request is complete. diff --git a/src/ajax/responders.js b/src/ajax/responders.js index 8fe5c26..c9ed244 100644 --- a/src/ajax/responders.js +++ b/src/ajax/responders.js @@ -34,7 +34,7 @@ * } * }); * - *

Responder callbacks

+ *
Responder callbacks
* * The callbacks for responders are similar to the callbacks described in * the [[Ajax section]], but take a different signature. They're invoked with diff --git a/src/ajax/updater.js b/src/ajax/updater.js index 6979dfa..7cb23da 100644 --- a/src/ajax/updater.js +++ b/src/ajax/updater.js @@ -7,7 +7,7 @@ * `Ajax.Updater` is a subclass of [[Ajax.Request]] built for a common * use-case. * - *

Example

+ *
Example
* * new Ajax.Updater('items', '/items', { * parameters: { text: $F('text') } @@ -17,13 +17,13 @@ * parameters); it will then replace the contents of the element with the ID * of `items` with whatever response it receives. * - *

Callbacks

+ *
Callbacks
* * `Ajax.Updater` supports all the callbacks listed in the [[Ajax section]]. * Note that the `onComplete` callback will be invoked **after** the element * is updated. * - *

Additional options

+ *
Additional options
* * `Ajax.Updater` has some options of its own apart from the common options * described in the [[Ajax section]]: @@ -37,7 +37,7 @@ * `top`, `bottom`, `before`, or `after` — and _inserts_ the contents of the * response in the manner described by [[Element#insert]]. * - *

More About `evalScripts`

+ *
More About `evalScripts`
* * If you use `evalScripts: true`, any _inline_ `End of test

".stripScripts(); * // => "

This is a test.End of test

" * - *

Caveat User

+ *
Caveat User
* * Note that the processing `stripScripts` does is good enough for most purposes, * but you cannot rely on it for security purposes. If you're processing end-user-supplied @@ -183,7 +183,7 @@ Object.extend(String.prototype, (function() { * they were empty (the result for that position in the array will be `undefined`); * external files are _not_ loaded and processed by `evalScripts`. * - *

About `evalScripts`, `var`s, and defining functions

+ *
About `evalScripts`, `var`s, and defining functions
* * `evalScripts` evaluates script blocks, but this **does not** mean they are * evaluated in the global scope. They aren't, they're evaluated in the scope of @@ -302,7 +302,7 @@ Object.extend(String.prototype, (function() { * Converts a string separated by dashes into a camelCase equivalent. * For instance, 'foo-bar' would be converted to 'fooBar'. * - *

Examples

+ *
Examples
* * 'background-color'.camelize(); * // -> 'backgroundColor' diff --git a/src/lang/template.js b/src/lang/template.js index 435a3e7..cb9020d 100644 --- a/src/lang/template.js +++ b/src/lang/template.js @@ -14,7 +14,7 @@ * expression. The `Template` class provides a much nicer and clearer way of * achieving this formatting. * - *

Straightforward templates

+ *
Straightforward templates
* * The `Template` class uses a basic formatting syntax, similar to what is * used in Ruby. The templates are created from strings that have embedded @@ -36,7 +36,7 @@ * myTemplate.evaluate(show); * // -> "The TV show The Simpsons was created by Matt Groening." * - *

Templates are meant to be reused

+ *
Templates are meant to be reused
* * As the example illustrates, `Template` objects are not tied to specific * data. The data is bound to the template only during the evaluation of the @@ -60,7 +60,7 @@ * // -> Multiply by 0.9478 to convert from kilojoules to BTUs. * // -> Multiply by 1024 to convert from megabytes to gigabytes. * - *

Escape sequence

+ *
Escape sequence
* * There's always the chance that one day you'll need to have a literal in your * template that looks like a symbol, but is not supposed to be replaced. For @@ -75,7 +75,7 @@ * t.evaluate(data); * // -> in Ruby we also use the #{variable} syntax for templates. * - *

Custom syntaxes

+ *
Custom syntaxes
* * The default syntax of the template strings will probably be enough for most * scenarios. In the rare occasion where the default Ruby-like syntax is