Ajax Web Application Programming Model Research and Application Framework Implementation

Author
ZhangXiaTian
Advisor
DengFang
School
Beijing University of Posts and Telecommunications
Major
Computer Science and Technology
Classification
TP311.10 Programming
Degree
Master's thesis
Year
2007
Downloads
299
Citations
9

Request the full text

Abstract

Ajax technology is at the stage of rapid development, which greatly expanded the ability of Web applications. But there are some problems restrict the application of Ajax technology. The paper introduces the development and problems of Ajax. The paper analyses the design theories and methods of Ajax Web applications. Based on that, programming model was present. The programming model is divided into three parts : toolkit, frameworks and components. The toolkit is used to enhance JavaScript proficiency, such as inheritance mechanism, event mechanism and cross-browser support. The framework provides the basic services for the application, such as IoC container, configurable AOP, components management mechanism, event binding mechanism and the security control mechanisms. Application components are the basic functional units; the main task of developers is to develop components. The component is divided into shell and core two parts. Core is a private variable of the shell. Shell can prevent malicious code from the component. And, core holds business logic of the component. There are two ways of interoperability among components. First, using AppEevent mechanism. Second, invoke others indirectly by component manager. Prohibit direct interoperability among components is also to enhance the safety components. Component management mechanism and framework components together constitute the structure of a security mechanism. In addition, the framework provides a configurable security control mechanisms. Components are divided into two categories: widget components and service components. Widget components provide direct interaction interface with the users. Service components provide public services for others. The programming model defines a DataAccessService component, which provides unified data access interface for other components. In the end, a simple Ajax Web application framework has been implemented and a simple example application, the PetStore application, has been built.

Table of contents

Abstract 4-6 Abstract 6-11 Chapter Overview 11-21 1.1 Ajax technology Introduction 12-15 1.1.1 Ajax works 13 1.1.2 HTML and XHTML 13-14 1.1.3 CSS 14 1.1.4 DOM 14 1.1.5 JavaScript 14-15 1.2 Ajax Application Development and related technologies 15-18 1.2.1 existing applications 15-16 1.2.2 Web2.0 16-17 1.2.3 SaaS 17 1.2.4 SOA 17-18 1.3 Ajax technology existing problems 18-19 1.3.1 code management and client structure 18 1.3.2 data access interface 18-19 1.3.3 server and client responsibilities and structure 19 1.3.4 security control 19 1.4 purpose, significance and main work 19-21 AjaxWeb application design theory and method 21-40 2.1 regression static or strengthen a dynamic 21-22 2.2 Ajax Four Cardinal Principles 22-28 2.2.1 browser application, rather than the content 22-26 2.2.2 server delivered the data, rather than the content 26 2.2.3 smooth and continuous user interaction 26-27 2.2.4 serious programming 27-28 2.3 Ajax in MVC 28-29 2.3.1 fine-grained MVC 28-29 2.3.2 multi-level MVC 29 2.4 client responsibilities 29-32 two views 2.4.1 client responsibilities 30-31 2.4.2 client specific duties 31-32 2.5 server duties 32-34 2.5.1 server role 32-33 2.5.2 server-side construction 33-34 2.6 communication and data access 34-36 2.6.1 data format 34-35 2.6.2 communication queue 35-36 2.7 event mechanism 36 2.8 IoC and AOP 36-37 2.9 Security 37-40 the the 2.9.1 browser security mechanism 37-38 2.9.2 Ajax security vulnerabilities 38-40 Chapter AjaxWeb application programming model 40-63 3.1 programming model target 40-41 3.2 overall structure 41-44 3.2.1 tool package 41-42 3.2.2 framework 42-43 3.2.3 Widget component 43 3.2.4 Service components 43 3.2.5 Ajax client structure 43-44 3.3 IoC container 44-49 3.3.1 IoC container structure 45-46 3.3.2 JavaScript reflection mechanism 46-47 3.3.3 configuration file format 47-49 3.4 AOP module 49-50 3.4.1 AOP module structure 49 3.4.2 AOP configuration format 49-50 3.5 AppEvent transponder 50-52 3.5.1 AppEvent repeater structure 50-51 3.5.2 AppEvent data structures 51-52 3.6 framework 52-54 3.7 component model 54-61 3.7.1 component model structure 54-56 3.7.2 component interface 56-57 3.7.3 Widget component 57-59 3.7.4 Service components 59 the 3.7.5 data access services 59-60 3.7.6 Component Manager 60-61 3.8 security module 61-63 3.8.1 security module structure 61-62 3.8.2 security rules configured format 62-63 the Chapter AjaxWeb application framework designed and realized 63-78 4.1 framework for the design and implementation 63-65 4.1.1 framework UML class diagram 63-64 4.1.2 implementation details 64-65 Design and Implementation 4.2 IoC container 65-67 4.2.1 IoC container UML class diagram 65-66 4.2.2 implementation details 66-67 4.3 AOP module design and implementation 67-68 4.3.1 AOP module UML class diagram 67 4.3.2 implementation details 67-68 Design and Implementation 4.4 AppEvent transponder 68-70 4.4.1 AppEvent transponder UML class diagrams 68-69 4.4.2 implementation details 69-70 4.5 Component Manager, Design and Implementation 70-71 4.5.1 Component Manager UML class diagram 70-71 4.5.2 implementation details 71 4.6 security module design and implementation 71-72 4.6.1 security module UML class diagram 71-72 4.6.2 implementation details 72 4.7 Component base class design and implementation 72-74 the the 4.7.1 components based class UML diagram 72-73 4.7.2 implementation details 73-74 the the 4.8 Widget component-based design and Implementation 74-77 4.8.1 Widget Component base class of UML class diagrams 74-76 4.8.2 implementation details 76-77 4.9 Data Access Service Design and Implementation 77-78 4.9.1 Data Access Services UML class diagram 77 4.9.2 implementation details 77-78 Chapter PetStore application 78-88 5.1 the PetStore the function 78 5.2 the PetStore the interface 78-80 5.3 the PetStore the structure 80-85 5.3.1 directory structure 80-81 5.3.2 main.html page 81-82 5.3.3 configuration file 82-85 5.4 of the PetStore of components 85-88 5.4.1 FrameWidget 85-86 5.4.2 LoginWidget 86-88 Chapter VI Conclusion 88-89 6.1 summarizes 88 6.2 the next step of the work 88-89 the References 89-90 Acknowledgements 90

Related dissertations

  1. Research of Data-Centric Asynchronous Web Interactive Model
    ZhouDongXing ·Hefei University of Technology ·2008 ·Master's thesis
  2. Health Services Cloud Computing Platform Web Front Design and Implementation
  3. Design and Implementation of Competition Software Based on Web
  4. A Client-side Solution against Session Hijacking through XSS Attacks
  5. Research and Implementation of Web Crawler for URL-Specified Crawling of Ajax-Based Web Applications
  6. Design and Implementation of Ajax-based Mail Client
    ZhuJiaXing ·Jilin University ·2012 ·Master's thesis
  7. WEB-Based Network Operation, Maintenance Information Management System for Research and Implementation
    LongTao ·Northeast University of Petroleum ·2012 ·Master's thesis
  8. Design and Implementation of the Financing Platform for SMEs Based on.NET Technology
  9. Design and Implementation of Push Technology Based on Web-server
    LiaoQingPing ·Sun Yat-sen University ·2013 ·Master's thesis
  10. Design and Implementation of a Web-based Network Office Platform
  11. The Management Research about Ajax Technology in the Real Estate
  12. Customer Experience Optimization and the Operating Pressure Decomposition Based on Ajax Technology
    ZuoShiZuo ·Jilin University ·2012 ·Master's thesis
  13. The Design of Shipboard Satellite Communication Earth Station Monitoring System Based on Embedded Web Server
  14. Design and Realization of Power Dispatching Automation System of Yuechi Power Grid
  15. Web System Modeling and Performance Evaluation
    WangKaiYu ·Yanshan University ·2010 ·Doctoral dissertation
  16. The AJAX Applications in the Information Management System and It’s Security Analysis and Practice
  17. Web-based Dynamic Geometry System
    SunHuaLi ·Central China Normal University ·2008 ·Master's thesis
  18. AJAX technology -based Web application framework design and implementation
  19. The Designment and Realization of Web Servers Based on Range Digital Image Monitoring System
    XiaoZuo ·Wuhan University of Technology ·2007 ·Master's thesis
  20. Based on the development and use of Ajax server-side control theory (SCBA)
    ChaiChunZuo ·Shanghai Normal University ·2007 ·Master's thesis