back to main Purchase

SOW : Ajax content

SOW plugins are part of Smarty Core, written from scratch!

src/js/sow.core/sow.ajax_content.js

Load ajax content to any container just by passing few params.

Overview:
  • load content via ajax request
  • callback support for each request/container
  • option to reload content
  • lightweight, 4Kb minified (1.7Kb gzipped)

Note: .js-ajax is also used as a default selector by different plugins:


form.js-ajax used by SOW : Ajax Forms
a.js-ajax used by SOW : Ajax Navigation
div.js-ajax and section.js-ajax used by SOW : Ajax Content (this plugin).


Please pay attention where you plan to use it to avoid conflicts in case all ajax plugins are active.

Ajax content Example

Reload