ToggleLoader documentation

ToggleLoader loads content from a remote page into an element when a link is activated, and toggles the visibility of the element.

Example

Load page

Awaiting content...

<p><a class="toggleloader targetEl-toggleloaderdiv targetPage-/docs/time" href="#">Load page</a></p>
<p id="toggleloaderdiv" class="hider">Awaiting content...</p>

Settings

Valid elements

a elements (links)

Classname

toggleloader

Attributes

None

CSS parameters (what's this?)

targetEl (required)
Must be set as the id of the element to put the content in
targetPage (required)
Must be set as the URI of the remote page to fetch content from