File: example.js

Recommend this page to a friend!
  Classes of martin barker  >  JS AJAXify PushState  >  example.js  >  Download  
File: example.js
Role: Example script
Content type: text/plain
Description: Example of Usage
Class: JS AJAXify PushState
Make link clicks be converted into AJAX requests
Author: By
Last change:
Date: 5 years ago
Size: 408 bytes


Class file image Download
// Basic Full Page Setup Example
var state = new AjaxifyPushState();

// Advanced Controlled Page Setup
var state = new AjaxifyPushState({
  "Ajaxify":true, // should we auto handle the ajax calls
  "PushState":true, // enables auto handle of the Push State
  "element":"body"  // the element to target all content will be erased and new content will be placed in all matching this selector clause