back to main Purchase

SOW : Ajax navigation

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

src/js/sow.core/sow.ajax_navigation.js
Unique feature!

No other template in any marketplace has it!


Plugin written from scratch to enable full ajax navigation, solving many common problems.
This documentation is using it, all pages are served by ajax.


Full Ajax demo poroject is using this plugin!

.js-ajax class on your links is all you need!
Features
  • parsing the content and "catching" javascript files & inline js code.
  • -or- serving content without parsing (dynamic websites)
  • URL update without page refresh & enableing back|forward history
  • callback available for each link
  • scroll up when new content is loaded (optional)
  • able to reinit all plugins used by that specific ajax page (example: datepicker will work for any ajax page without doing anything)
  • SEO - not affected in any!
  • very impressive speed for visitors - pages are loaded in milliseconds - instantenously!
  • Lightweight ~10Kb minified (~3.5Kb gzipped).
How the parser works?

This documentation is full ajax - so you can see it as a real example!
We have two important containers on each page:
1. #middle - main content of each page
2. #page_js_files - containing only SPECIFIC javascript files of each page. The main javascripts (like core.min.js) are outside of this container.

When you click a link (let's say <class="js-ajax" href="changelog.html">), the plugin is loading changelog.html page this way:

  1. load changelog.html via ajax
  2. extract the #middle content of changelog.html
  3. extract specific page javascripts (files and/or inline code) from #page_js_files container (if there is any).
  4. The plugin will now update the content and firing javascripts in their order (if page has js files/code).

Note: Watch your browser console while you navigate in this documentation - you can see how ajax is firing!


Ajax navigation


Ajax Partial / Content