Introducing LaCo (or AJAX for the non-programmer)

"Late Content" (LaCo) - or AJAX for the non-programmer is a “technique to speed up your page by initially showing only important content". LaCo can be used in four ways: 1. Automatic: It can just be used to partition off parts of the page (the less important parts) and have them load later…. 2. Response to […]

"Late Content" (LaCo) - or AJAX for the non-programmer is a “technique to speed up your page by initially showing only important content". LaCo can be used in four ways:

1. Automatic: It can just be used to partition off parts of the page (the less important parts) and have them load later….

2. Response to a user click: When the user clicks on your link, instead of navigating to a new page, it updates only part of the current page.

3. Response to a user click, with toggle: This is similar to Usage #2, except that a subsequent click from the user will hide the content again.

4. On mouse over: The content is loaded and displayed as soon as the user mouses over the link, no click necessary.

To use the above examples, your page must reference the LaCo.js file and the prototype.js file like so:

<head> <title>LaCo</title> <script type="text/javascript" src="prototype.js"></script> <script type="text/javascript" src="laco.js"></script> </head>

You can download the Protytype.js library from the prototype homepage (linked to the right), but it is also included in the LaCo download zip.

blog.spotty | ajaxian

"Late Content" (LaCo) - or AJAX for the non-programmer