JAVA-SCRIPT/WEB-SITE OBJECTS

 

Java-script Objects provide the basis of Internet Application software Presentation (visual effects, input forms, and processing results) and Control (asynchronous event management) design. Java-script is the Programming language of the Client-side (Browser) of every Web-site Application.

 

1.     Java-Script

 

Java-script is a Run-time execution language (Script language) with an instruction set that is interpreted/executed exactly the same by all different internet Browsers (Explorer, Firefox, Safari, etc.). Java-script is a Object Oriented Programming (OOPís) Language, meaning that it provides for the definition (Storage, Attributes and Functions/Methods) of structured elements (Classes) and their instantiation into named program referable objects.

 

2.     Web-site Application

 

A Web-site Application executes from two domains: Client and Server sides. The Client/local side and is controlled by Browser interpretation of the applicationís:

       HTML/HTML5 notations to create and update Page-Objects, and

       Cascading Style Sheets (CSS) instructions to update a Page-Objectís presentation when one of itís associated event conditions is sensed, and

       Java-script code to respond to and initiate events, and perform application functions.

The Server/Resource side is managed by the Server-Controller (Apache, MS-2008, MS-cloud, etc.) of the remote Internet location addressed (Universal Resource Location-URL) which:

 

       Returns a requested HTML/HTML5 file to the Client side/Browser to initialize or update a Page Object(s).

       Returns a requested image, movie type file to the Client side/Browser for presentation via a Page Object.

       Returns requested data to a Client side/Browser Program to initialize or update a Page Object(s).

 

3.     Web-site Page/Object Presentation (Browser)

 

The visual presentation of the current state of an Web-site Application is provided by the Client-side Object manager, namely a computer or mobile-device Browser. The Browser records and maps the state of all declared and/or altered objects/elements comprising the Applications ever changing Page/Document visual presentation in its Document Object Model (DOM) table. The Browser scans its internal tables to reconstruct page presentation for every addition or change to DOM table entry objects:

       Direct Java-script coding references to DOM object methods and attributes.

       HTML/HTML5 notation(s) decoded by the Browser into DOM object methods and attributes assignment references.

       An Objects Event Triggering attribute is sensed, in which case the Java-script code or Style (CSS) changing declaration associated with the Object is executed to alter the DOM presentation.

 

4.     Web-site Object Management

 

A Web-site Applicationís Presentation (Page display) consists of the establishing Page Objects/elements and modification of their contents (Attributes) for the Browser to interpret/execute and display Page/Document (DOM) results. A Page Object(s) can be established and/orchanged via HTML code received from the Server or Client side of the Application and/or Java-script code execution on the Client-side.

 

 

5.     Application PresentationObject Management

Web-site Application presentation software is event driven, mostly via User selection of provided option lists, therefore itís code is based on asynchronous modification of Page(DOM) Objects with new requested data (results and/or HTML instructions/code). The introduction of direct communication between Client and Server-side Application software (AJAX) allowed presentation modification to occur on an object rather then whole page re-rendering basis.

The implementation of Page object updating software techniques can be cumbersome and repetitive:

       Application Presentation Appearance must be Designed/Specified.

       All Objects must be assigned a unique ID name and their style specified in CSS declarations.

       Logic must be established to generate data for each Objectís updating needs on the Client or Server-side.

       The updating process must be accomplished asynchronously on the Client-side.

       A mechanism must be designed to record/log Object(s) data and restore their contents from a history log.

 

6.     Ajax Javascript Object Management Services (AJOMS)

The AJOMS Framework was created to provide simplified management of Client-side/Page object (element-container) presentation changes and triggered event processing for Web-site software creation, utilizing the inherent Active Page Objects (APO) design approach :

 

       Installing the initial/Master Page Objects/Elements of the Web-site Application.

       Responding to User initiated events with new application HTML/HTML5 code.

       Updating elements/objects (portions) of the Page with current information.

       Controlling Timed Application events.

       Manage Object-Data Communication with companion Client and/or Server-side Program Functions.

       Logging and Restoring (on click) Application Object presentation Data.

       HTML Startup Macros for Browser Ďadd-oní language processors (plug-ins).