Get Jelotop #
Including Jelo on your website is easy:
<script src="http://fatfreejelo.com/load/"></script>
That's it!
By using this address for Jelo, you can take full advantage of caching and compression, and you can use the same address on more than one site. This means some of your visitors may already have Jelo in their browser cache, which improves performance.
Use Jelotop #
You can get started with Jelo right away. Copy and paste the following code into a blank
text file, and save it as jelo.html. You can save this anywhere on your
home computer or web server.
<!DOCTYPE html>
<html>
<head>
<title>Jelo Test</title>
</head>
<body>
<script src="http://fatfreejelo.com/load/"></script>
<script>
Jelo.load(function() {
alert("I'm using Jelo!");
});
</script>
</body>
</html>
Open the file you just saved in a browser (or visit it on your web server), and the message "I'm using Jelo!" will appear as soon as the document is finished loading.
Loading Additional Modulestop #
Jelo by itself is less than 2 kilobytes of code, and provides very basic functionality.
Jelo.load() performs asynchronous, on-demand loading of the rest of the Jelo library
For example, if you want to make an AJAX request,
load the io module:
<script src="http://fatfreejelo.com/load/"></script>
<script>
// 'io' makes Jelo.Ajax, Jelo.JSON, and Jelo.Session available.
Jelo.load('io', function() {
Jelo.Ajax.request({
url: 'webservice.php',
success: function() {
var response = this.responseText; // output from webservice.php
}
});
});
Jelo.load('all', function() {
// 'all' makes every Jelo module available
});
</script>
Find out all about on-demand loading with Jelo.
Archived Versionstop #
An official versioning process was established for Jelo 2 on April 11, 2010. Please refer to the Release Notes for the complete list of code changes. If you use these archived versions, you should NOT use the seed file or load any additional modules, as everything is already built-in. For example:
<!-- this is the same as loading the seed file AND all modules -->
<script src="http://fatfreejelo.com/2.0.4/"></script>
<script>
Jelo.load(function() {
// this code executes as soon as the DOM is ready
// every Jelo module is available inside this block
});
</script>
- recent changes — (see all)
-
- Sep 14, 2010 — Simplified DragDrop.
- Jul 19, 2010 — Fixed typo preventing reliably aborting pending Ajax requests.
- Jun 17, 2010 — Fixed a conflict preventing Easing.SWINGOUT and Easing.SWINGBOTH from running simultaneously.
- Apr 22, 2010 — Added Array support to CSS.toggleClass.
- random jelo shots — (see all)
