Constructor Method
ezAnchorPosition.get$ (anchorname)
The “ezAnchorPosition.get$ (anchorname)” function takes one argument that is the anchor element’s identifier or name. The value that is returned is an ezAnchorPosition Object instance.
All Objects that are defined to be part of the ezAJAX Community Edition Framework share some common architectural similarities such as the following:
- Constructor Method
- Destructor Method
- Object instance cache
- Object instances Destructor Method
- Class variables (where applicable)
- Instance variables (where applicable)
- Class Methods (where applicable)
- Instance Methods (where applicable)
Object Instance Cache
The Object Instance Cache for the “ezAnchorPosition” object is stored in the variable “ezAnchorPosition.$” which is an Array Object instance that holds all the instances of ezAnchorPosition Objects that are created at run-time. This makes it easy to perform the appropriate clean-up functions before closing the browser whenever the window.onUnload event is fired. The technique of caching all the instances of certain Objects also aids in developing applications that use these Objects because if one can access certain Object instances at run-time one can leverage this ability to make certain development tasks easier. |