Research on the Application of AJAX in Web Development

Author
ZhuHua
Advisor
GuoJiangHong
School
Harbin Engineering University
Major
Applied Computer Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2009
Downloads
318
Citations
8

Request the full text

Abstract

Ajax is a front technology in the web. It provides a new model of Internet interaction, which greatly expanded the capacity of web applications, but there are also some problems that restrict the application of Ajax technology. The research of the design method and model of Ajax Web has just started, the most web applications of Ajax is at the initial experiment stage, it is difficult to achieve deep use and standardization of the applications of Ajax since the absence of more standardized and mature design patterns.In this paper, we first analyze the principles of Ajax and its key technologies, and then research on the typical Ajax Design Patterns based on a deep discussion of code management, architecture, communications control, security, and performance issues in the application of Ajax. We present the concept of Ajax design patterns, and put forward four typical Ajax design patterns which are Dynamic Loading, Cache-predictable Data, Content Partitioned, and Persistent Communication. We described the various design patterns on the aspects of the problems, typical scene, blueprint and architecture. The Dynamic Loading mode provide the most basic Ajax application design methods; The Content Partitioned mode provides a common model for Ajax page design by the partition of page; Cache-predictable mode changed the data access experience significantly through an innovative mechanism for data acquisition; Persistent Communication mode realize a two-way communication between the server and client.At last, we design and implement the Cosmetics Store System in use of the Ajax Design Pattern we proposed, and test the system and old system with same function by NetLimiter. Comparison of network traffic and server load show that the Ajax Design Pattern can reduce the Network traffic, server load and improve the user experience effectively.

Table of contents

Abstract 5-6 Abstract 6-10 Chapter 1 Introduction 10-15 1.1 project background 10-11 1.2 Development Status 11-13 1.3 research 13 1.4 paper structure 13-15 Chapter 2 AJAX technology analysis and discussion 15-24 2.1 RIA and AJAX 15-18 2.1.1 RIA and AJAX Overview 15-16 2.1.2 Common RIA technology 16-17 2.1.3 AJAX advantage 17-18 2.2 AJAX technology principle 18-19 2.3 AJAX key technology 19-23 2.3.1 use XMLHttpRequest for asynchronous communication 19-21 2.3.2 use XML and XSLT for data exchange and processing 21 2.3.3 use XHTML and CSS to achieve standardization View interface 21-22 2.3.4 using the DOM implementation dynamic display and interaction 22 2.3.5 with JavaScript binding everything 22-23 2.4 Summary 23-24 AJAX applications in Chapter 3 of the basic design theory and methods 24-41 3.1 AJAX client code refactoring 24-29 3.1.1 with Facade and Adapter pattern resolve browser compatibility issues 24-26 3.1.2 Observer pattern used to reconstruct the event handler 26-29 3.1.3 Use of resources to achieve the Singleton pattern unique reference 29 3.2 AJAX applications MVC pattern 29-32 3.2.1 MVC Pattern Overview 30 3.2.2 AJAX application of the MVC architectural pattern 30-32 3.3 AJAX data communication 32-34 3.3.1 using XML as the communication standard carriers 32-33 3.3.2 use plain text 33 3.3.3 Using HTML 33 3.3.4 Using JSON 33-34 3.4 AJAX application security issues 34-37 3.4.1 AJAX application security situation analysis 34-36 3.4.2 AJAX application security measures 36-37 3.5 AJAX application performance problems 37-40 3.5.1 optimized JavaScript execution speed 37-38 3.5.2 enhanced memory management 38-40 3.6 Summary 40-41 Chapter 4 The typical design pattern AJAX applications research 41-59 4.1 AJAX design patterns introduced 41-42 4.1.1 AJAX design patterns concepts clear 41 4.1.2 AJAX design patterns and other design pattern comparison 41-42 4.1.3 AJAX design patterns describe 42 4.2 Dynamic load mode 42-46 4.2.1 motive - to exchange data on demand dynamic refresh 42-43 4.2.2 application scenarios 43-44 4.2.3 Solution 44-46 4.3 foreseeable Cache Mode 46-50 4.3.1 Motivation - forecast user demand for early access to data 46-47 4.3.2 application scenarios 47 4.3.3 Solution 47-50 4.4 Content block mode 50-53 4.4.1 Motivation - decomposition page implementation , to promote the \ 4.4.2 application scenarios 50-51 4.4.3 Solution 51-53 4.5 persistent communication mode 53-58 4.5.1 Motivation - overcome deficiencies, to achieve two-way communication 53-54 4.5.2 application scenarios 54 4.5.3 Solution 54-58 4.6 Chapter Summary 58-59 Chapter 5 AJAX comprehensive application : COSMETICS STORE 59-73 5.1 Overview 59 5.2 system analysis 59-61 5.2.1 Main Module Features 59-60 5.2.2 identify actors and use cases 60-61 5.3 system design and implementation 61-70 5.3.1 Cosmetics Store system architecture 62 5.3.2 achieved with a dynamic load mode register login module 62-64 5.3.3 with the contents of the block model to achieve viewed products module 64-66 5.3.4 with predictable Cache Mode for commodity management module 66-68 5.3.5 with a lasting message communication mode to achieve real-time response 68-70 5.4 AJAX model and the traditional model systems analyzed 70-72 5.5 Chapter Summary 72-73 Conclusion 73-74 References 74-77 papers published during the master's degree and research achievements 77-78 Thanks 78

Related dissertations

  1. Design and Practice of E-Learning System for Agriculture Bank of China
  2. Design and Realization of AJAX-Based Information System of Internet Multimedia Resouce Management
    YuKai ·Beijing Jiaotong University ·2008 ·Master's thesis
  3. Analysis of the new Web mode system development technology Ajax
    ZhangYeLing ·Dongbei University of Finance ·2007 ·Master's thesis
  4. Research of Manufacturing Simulation and Workshop Control
    KongFanZuo ·Dalian Polytechnic University ·2013 ·Master's thesis
  5. And the Realization of Hardware Sales Website Design Based on.NET
  6. Research and Implement of Distributed Crawler System Supporting AJAX
  7. Research and Implementation on E-commerce Recommendation System
    LiShiShi ·Hunan University ·2013 ·Master's thesis
  8. Design and Implementation of a Recommender System Framework Based on Collaborative Filtering Algorithm
    ChiXuan ·Shanghai Jiaotong University ·2013 ·Master's thesis
  9. The User Database Resource Management System Based on WEB Design and Implementation
  10. The Design and Implementation of the Hospital Wards Management System Based on J2EE
    ChenHao ·Hubei University ·2013 ·Master's thesis
  11. Design and Implement of Telematics System Service Center Subsystem
    WangHuaChen ·Northeastern University ·2013 ·Master's thesis
  12. Design and application of J2EE persistence layer framework DR-ORM
  13. The Research of Applications Based on Combination of SSH2and ExtJs
  14. Implementation of Residential Property Management System Base on ASP
  15. The Research and Implementation of the College Counselors Skills Competition Training System
    YanSiJing ·Xiangtan University ·2013 ·Master's thesis
  16. Design and Realization of Training Grade Comprehensive Rating System of Nanjing Information Technology Institute
  17. Design and Implementation of Human Resource Management System for MIRLE Company
    GuJiaQing ·Dalian University of Technology ·2013 ·Master's thesis
  18. The Design and Development of Shaanxi Primary and Secondary School Teachers Training Management System
  19. Health Services Cloud Computing Platform Web Front Design and Implementation
  20. Research and Application of Classroom Teaching Assessment System in Primary and Middle School