JavaScript Customization Tutorial

JavaScript Customization Tutorial. Version 2.0.0. English Version 2.0.0c. December 18, 2007 … The JavaScript in this system controls each element in the HTML …

More PDF Content

Table of Contents
1 The Roll of JavaScript ………….. 5
2 JavaScript File Structure ……………… 5
3 Class and Object Structure …………… 7
3.1 asm.js file ………………. 7
3.2 asmmain.js file ……………… 7
3.3 asmfw.js file ……………. 8
3.4 asmgui.js file ………….. 9
3.5 asmpltool.js file …………… 14
4 Process Summary ……………… 15
4.1 Initial Process ……………… 15
4.2 Event Process (ActiveX Control) ………………. 16
4.3 Event Process (HTML Element) ……………….. 19
5 Customization Examples ……………. 23
5.1 Getting the Values From the Settings file (setting.xml) …………… 23
5.2 Changing the Error Message Display ………………. 23
5.3 Using Properties and Methods of the ActiveX controls …………… 23
5.4 Registering the Callback Function Executed When an ActiveX Control Event Occurs ……………… 23
5.5 Adding HTML Element’s Event Processes ……………… 25
5.6 Adding an External js File ………….. 25
5.7 Adding HTML Elements and Related Processes ……………. 26
5.8 Changing the Settings of the Set Interval Slider ……………… 28
6 Debugging ……………. 29
5 / 29 FrameFree Super SmartMorph 1997 – 2008 Monolith Co., Ltd. All rights reserved. FrameFree Super SmartMorph 1 The Roll of JavaScript The JavaScript in this system controls each element in the HTML documents, provides an interface to access the ActiveX control properties and methods, and interfaces the communication between them (transmitting data and processing events issued from the ActiveX controls). 2 JavaScript File Structure The JavaScript consists of the following files. Table 1 JavaScript File Structure File/Directory Names Function/Role asm.js Launches the JavaScript processes and stores various setting values. asm Stores Super SmartMorph specific js files. asmmain.js Loads main processes and various XML files. asmfw.js Provides the interface to access the ActiveX controls. asmgui.js Controls the GUI and processes events triggered by user actions. asmpltool.js Install checker of the ActiveX controls lib prototype.js A base framework (version: 1.5.0_rc1)(*1) scriptaculous An framework providing various effects (version:1.6.5 *2 scriptaculous.js builder.js controls.js dragdrop.js effect.js slider.js User action Set values JavaScript Change display Reflect values Display messages Input check, etc. Read external files Event Dis

Download JavaScript Customization Tutorial pdf from www.framefree.com, 29 pages, 520.7KB.