Go to file
Timothy Warren f7ae0b8bbb Merge branch 'master' of github.com:timw4mail/kis-js
Conflicts:
	README.md
2011-06-14 13:03:29 -04:00
README.md Merge branch 'master' of github.com:timw4mail/kis-js 2011-06-14 13:03:29 -04:00
kis.js Added store module, ecapsulated QS module 2011-06-14 12:20:53 -04:00

README.md

Keep It Simple JS Library

A Minimal, Modular Javascript library for Modern browsers.

Aims to be fast, small, and easily split into individual modules.

Browser support: IE8+, Latest versions of Firefox, Chrome, Safari, Opera

Basic Use:

  • Selector: var x = $(selector);

  • Function: $_.module.function(params);

Modules:

Ajax: simple, jQuery-like ajax functions

functions:
	
	* Get: 
		Use:
		    $_.get(url, data_object, callback);
	
	* Post:
		Use:
		    $_.post(url, data_object, callback);

QS: querystring parsing and serialization for hashbang strings, and pushState urls

functions:
	
	* Parse:
		Use:
		    $_.qs.parse(hb);
	
	* Set: This function will set the hash url if browser doesn't have history.pushState
		Use:
		    $_.qs.set(key, value);
	
	* Get: Retrieves the value of the key in the url string
		Use:
		    $_.qs.get(key);

<<<<<<< HEAD

Store: localstorage wrapper with automatic data serialization

functions

	* Get:
		Use:
			$_.store.get(key);
	
	* Set
		Use:
			$_.store.set(key, value);
			
	* getALL: Retreives all localstorage data in raw form
		Use:
			$_.store.getAll();

=======

1b66cdd29d