Javascript Foundations in KDF
From KallestadWiki
Contents |
Overview
The Kallestad Development Framework makes heavy use of the prototype.js library, however the prototype.js library is not a requirement of the Framework. Published pages can utilize the library, a different framework, or even not use javascript altogether.
The back end server application makes no assumption that javascript is enabled on the client side, however it can make use of AJAX requests for robust user interface designs.
Load Status
For simple web pages, you may not recognize how quick or how slow a javascript framework initiates itself, but large web pages with large javascript dependencies can hamper the user experience. For this reason, the KDF framework can supply and initiate functionality at various load stages.
- On Page Access
- On DOM Ready
- Page Load Complete
- On Page Ready
These load stages are not necessarily linear. The time differential between the stages is not known. The initiation of each stage does not signify the completion of javascript actions triggered in any other stage.
These load stages can be used for initiating javascript actions as soon as it is possible to do so. They really are mainly important for developers interested in expanding the javascript capabilities of KDF.
Unobtrusive
Where possible, the KDF uses unobtrusive javascript. That means that the page will not get littered with a lot of unnecessary javascript markup within the output code, and functionality that is javascript-client specific is not exposed to clients without access to that functionality.
Elements with Javascript Dependencies
Certain elements within KDF require javascript for implementation. When an element has a javascript dependency, that dependency is automatically loaded and initiated upon access.
KDF Built In Objects
KDF defines a series of helper objects in order to get things done.
KDF Reserved Variables and Object Names
Reserved Variables are used by KDF as part of the framework and should not be modified with your own javascript code unless you know what you are doing.
Kallestad Development Framework Topics
- KDF Home
- Project Overview
- Technical Information
- Licensing
