Highslide JS API Reference

Close Move
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam dapibus leo quis nisl. In lectus. Vivamus consectetuer pede in nisl. Mauris cursus pretium mauris. Suspendisse condimentum mi ac tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec sed enim. Ut vel ipsum. Cras consequat velit et justo. Donec mollis, mi at tincidunt vehicula, nisl mi luctus risus, quis scelerisque arcu nibh ac nisi. Sed risus. Curabitur urna. Aliquam vitae nisl. Quisque imperdiet semper justo. Pellentesque nonummy pretium tellus.
Resize

Object: hs

Variables

Functions

Events

Object: hs.Expander

Variables

Functions

Events



hs.cacheAjax

Cache the contents of AJAX popup for instant display.
Similarly to Highslide image popups, AJAX popup contents can be preloaded on page load. But unlike image popups where a specific number of images are preloaded on page load, AJAX preloading is controlled for each popup using the cacheAjax setting. This is because text content often is less structured, and using it like this gives you the developer full control of the preloading.

Details

Requires ajax
Type boolean
Default value true
Overrideable inline Yes

Example

General setting to all expanders

hs.cacheAjax is set to true by default. To disable it on all expanders, set it to false in the head section of your web page.

<script type="text/javascript">
   hs.cacheAjax = false;
</script>

Specifically setting it to a single expander

<a href="ajax.htm" onclick="return hs.htmlExpand(this, { 
      objectType: 'ajax', contentId: 'highslide-html', 
      cacheAjax: false })">
   Click to open
</a>

See also

New, Edit