Tweet



 
A very easy to use, cross platform, jQuery based UI toolkit, that’s still small in size, has the features you need, and doesn’t get in your way of doing things! Put jQuery and jKit on all your pages and HTML becomes so much better. And the best thing? You really don’t have to be a programmer to create a trully amazing website! jKit has 99% of all the features you ever need. You don’t have to check out dozens of plugins, learn how to use them, only to find out they don’t work in a specific browser. And even if jKit doesn’t have that one feature you need right now, jKit is fully extendable with plugins and command replacements, all that and your API always stays the same.

Hi, stranger

jKit is growing almost daily, if you don’t find what you need, let us know with a post on the community forum or our social pages. Hey, who knows, maybe it’s already on our ToDo list.

Content Summary

jKit Button

If you like jKit, use and want to support the project, here’s a small button you can use to link to the jKit website.

Btw, if you did something really nice with jKit, send us a link to your work and if we like it, we would sure love to feature it.

Ajax command

Easely convert normal href links into ajax links.

Basic Usage (HTML)

data-jkit="[ajax:element=#mydivtoreplace]"

Advanced Init (JavaScript)

$('#myelement').jKit('ajax', { 'element': '#mydivtoreplace' });

Options

OptionValuesDefaultDescription
animation“fade”, “slide” or “none”slideThe type of animation used for the transition
speedInt or “fast”, “slow” (Milliseconds)250The duration of the animation in milliseconds, bigger = slower.
easingString (“linear” or easing plugin option)linearThe easing behavior of the animation
when“load”, “viewport”, “shown” or “click”clickWhen to load the external content
hrefStringOptional url in case the url attribute of the element isn’t used
srcStringOptional src in case the src attribute of the element isn’t used
macroMacro nameThis optional macro will be applied to the element after the data is loaded

Events

EventDescription
completeTriggered as soon as the content is loaded

Examples

Ajax content:

Easely convert normal href links into ajax links:

Link 1, Link 2
Initial text …
Source:
<a href="../stuff/ajax_sample_content_1.html" data-jkit="[ajax:element=#ajaxdiv]">Link 1</a>, 
<a href="../stuff/ajax_sample_content_2.html" data-jkit="[ajax:element=#ajaxdiv]">Link 2</a>
<div id="ajaxdiv">
	Initial text ...
</div>

DOM ready:

Load content into a div on page load (after the DOM is ready):

Source:
<div data-jkit="[ajax:when=load;href=../stuff/ajaxcontent1.html]">
	<!-- load this stuff after the dom has loaded -->
</div>

Lazy content:

Lazy load content into a div as soon as the element comes into the viewport:

Source:
<div data-jkit="[ajax:when=viewport;href=../stuff/ajaxcontent2.html]">
	<!-- load this stuff after the div is inside the viewport -->
</div>

Lazy image:

Lazy load an image:

Source:
<img src="../img/fb_logo_min.jpg" data-jkit="[ajax:when=viewport;src=../img/fb_logo_full.jpg]">

Replacements

There are currently no replacements for this command.

[ Learn more about replacements ]

 

Discussions

Do you have questions or do you want to suggest new features? Than head over to our new community:

[ jKit Community ]