Ajax.Navigation.js

Options

List of basic properties accepted by the ajaxNavigation() method.

Available options

areas

Type String
Default: null

One or multiple IDs, which will contain the content you want to change.
Enter multiple IDs using a comma in order to select multiple areas.

charset

Type String
Default: application/x-www-form-urlencoded; charset=UTF-8

When sending data to the server, use this content type. Default is "utf8", which is fine for most cases.

highlightActiveLinks

Type Boolean
Default: true

If set true, Ajax.Navigation will search for links, which are equal to the current URL.

classActiveLinks

Type String
Default: ajax_active

This class will be added to all matching links.

loader

Type Boolean
Default: true

If set true, a loading sign will be shown, while loading the new content.

loaderLayout

Type String
Default:
<div class="ball"></div><div class="ball1"></div>

HTML Markup of the loading sign.

loaderTimeout

Type Int
Default: 1500

Delay before loading sign is shown (in milliseconds).

fetchContent

Type Boolean
Default: true

If set to true, Ajax.Navigation prefetchs a link's content on hover, which drastically improves the performance.

cacheSize

Type Int
Default: 10

Amount of pages that are getting cached.

transitionDefault

Type String
Default: default

Default transition effect. If no "data-ajax-effect" attribute is set, this one will be used.

transitionDuration

Type Integer
Default: 400

Amount of time effects take to complete (in milliseconds).

transitionEasing

Type String
Default: ease-out

Kind of timing function.
ease|linear|ease-in|ease-out|ease-in-out|cubic-bezier(n,n,n,n)|initial|inherit

reloadOnDoubleTrigger

Type Boolean
Default: true

If another anchor is clicked while the last page is not finished loading yet, the page performs a reload.

timeout

Type Integer
Default: 10000

Amount of time (in milliseconds) Ajax.Navigation waits for the ajax call to be completed until it performs a normal page load.