Explore Sample Page

ready event

We use the jQuery callback. when using the $i.ready you wont need $(function(){});

  1. $i.ready(function(){
  2. //code
  3. });
  4. $i.ready({debug:false},function(){
  5. //code
  6. });

Cache

Uses localStorage if exists

  1. $i.Cache.Data("Key", "LO World");
  2. var val = $i.Cache.Data("Key");

Data

Get data from a .json file and put it into Cache

  1. var url = "test.json";
  2. $i.Data.getData(url, null, function (data) {
  3. $i.Cache.Data(url, data);
  4. }, function (text, error) {
  5. //error
  6. });