Web applications have been extensively applied for the simple deployment and easy maintenance. However, the traditional Web applications are based on a content-centric synchronous interactive model, for each interaction, a page is responsed as a unit, in the interactive process, the browser is always in a state of blank, that is, we often say, refresh. This means that the traditional Web applications low efficiency, poor performance, poor user experience.With Web2.0 concept proposed,a new Web development technology AJAX is quietly rising. AJAX, by senting asynchronous requests to the server and updating pages in client dynamically, can do on-demand data access and update the local pages partly. How AJAX will be introduced to Web development to improve the existing Web applications is a meaningful research subject.Firstly, a data-centric asynchronous Web interactive model based on AJAX is builded in this dissertation. In this interactive model, the browser and server interact with business functions as interactive units,all requests will be sented asynchronously by the AJAX engine in browser side, server will return data after dealing with these requests, and then the AJAX engine will update the local page dynamically in accordance with the return data.Web applications using this interactive model can do on-demand access to data, updating pages partly, local data cache, thereby improving traditional Web applications deficiencies.Secondly, the implement of this interactive model needs support from a AJAX engine in browser side, this requires a lot of JavaScript coding for browser, thus increasing the intensity and difficulty of the development, and reducing maintainability. To simplify development, this dissertation designs and implements an AJAX engine on the basis of MVC partten. The engine is orgainzed into three separate modules-the model,the view and the controller,thus making the code more structured and maintenance more convenient. The engine also developes some components for the common functinality, further reducing the burden of the developers.Finally,this dissertation discusses how the AJAX engine has been applied to a Web application system, demonstrating the feasibility of this data-centric Web interaction model and the framework of the AJAX engine from the practical point. |