Analysis of Atlas-Microsoft's Ajax Toolkit

Source: Internet
Author: User
Currently, almost all browsers provide the technology required by Ajax. Program Also appears constantly. Today, there are countless Ajax-style sites in the world, including many Google sites, A9 and Flickr. Many websites of Microsoft also use this technology, such as start.com and MSN Virtual Earth projects.

The popularity of Ajax shows that users' demand for rich web experience is growing. However, developing and debugging Ajax-style Web applications is a very difficult task. To compile a rich web UI, developers need to have a detailed understanding of DHTML and JavaScript, as well as the differences in design details between various browsers. However, there are no tools to simplify the design and development of these applications. Finally, debugging and testing these applications can become very difficult.

Microsoft is committed to simplifying the development of Ajax-style web applications and providing a rich, interactive, and personalized user experience. Developers do not know much about client scripts, but they can seamlessly integrate the browser UI with other applications they write, and they can easily develop and debug these applications.

Atlas client script framework

The Atlas client script framework is a scalable, 100% object-oriented JavaScript client script framework, allows developers to easily build Ajax browser applications that have rich UI functions and can connect to Web Services. With Atlas, developers can use DHTML, JavaScript, and XMLHTTP to write Web applications without having to grasp the details of these technologies.

The Atlas client script framework can run on all modern browsers, No matter what Web servers are used. It does not need to be installed yet. You only need to reference the correct script file on the page.

The Atlas client script framework contains the following components:

A scalable core framework that adds many new features to Javascript, such as lifetime management, inheritance, multicast event processor, and interfaces

A basic library that provides common features, such as rich string operations, timers, and running tasks.

A ui framework that enables Dynamic HTML behavior across browsers

A network stack is used to simplify connection to servers and access to web services.

A group of controls with rich UI functions, such as automatically complete text boxes, pop-up panels, animation controls, and drag-and-drop

A browser-compatible layer for locating different script behaviors in different browsers

ASP. NET Server Control of Atlas

For ASP. NET applications, Microsoft has designed a set of Ajax-style server controls and strengthened the existing ASP. NET page framework and controls to support the Atlas client script framework.

ASP. NET 2.0 has a new feature called asynchronous client callbacks, which makes it easy to build an ASP. NET page that will not cause page interruption when updating content from the server. Asynchronous client callback encapsulates XMLHTTP and can work in many browsers. ASP. NET itself includes a lot of controls that Use callback, including the gridview and detalsview controls with the client paging and sorting functions, and the virtual list support of the Treeview control.

The Atlas client script framework fully supports ASP. NET 2.0 callback, but Microsoft hopes to further enhance the integration between browsers and servers in the future. For example, you can bind the data of the Atlas client control to the ASP. NET data source control on the server and asynchronously control the web page features from the client.

ASP. NET web services integration

Like any client application, an Ajax-style Web application usually needs to access some functions of the Web server. The model of connecting the Atlas application to the server is similar to that of other platforms, and is implemented using Web Services.

Through ASP. net web services integration. The Atlas application can directly access any host through the Atlas client on any XMLHTTP-supported browser using this framework. asp. net asmx or indigo service. This framework will automatically process the serialization of proxies and scripts to objects and objects to scripts. By using web services integration, developers can use a single programming model to write web services and use them in any application, whether on a browser site or smart client application.

ASP. NET build block of Atlas

In ASP. NET 2.0, Microsoft built a rich set of building block services, which made building powerful and personalized Web applications incredibly simple. These building blocks greatly reduce the numberCodeNumber of users, such as managing users, verifying users through roles, and storing user personalized settings.

With Atlas, we can access these functions as we access web services in any client application on any browser. For example, if you are developing a site to display your to-do project, you can use ASP.. NET profile service to store them in user-defined configuration files on the server. In this way, users can access these projects even if they are transferred from one machine to another.

The services provided by Microsoft include (all Based on ASP. NET 2.0 ):

Profile: stores the unique data of each user on the server.

Ui PERSONALIZATION: stores personalized UI settings on the server

Verify: Verify the user

Role: verifies user tasks based on user roles and provides different UIS

Because these building blocks are server-based, developers need the same security model for their applications and other sites. These services do not require the client to download anything-you just need to reference the script proxy in the browser.

All ASP. NET 2.0 block services are pluggable, which is implemented in the background using a common provider (provider) model extension mode. Microsoft's built-in providers allow developers to use SQL Server databases or Active Directory as storage containers, and developers can easily plug in their own providers. For example, you may want to use a cluster instead of a database server to store your configuration files. In this case, you only need to plug in your provider-all this is determined by the developer.

Client build block service

In addition to DHTML, JScript, and XMLHTTP, Microsoft also provides a set of additional services to enhance client functions and provide enhanced experience.

For such a service, the local browser cache is a good example. When the local browser cache is enabled, the Web site can store the content in the cache and retrieve the content as soon as needed. However, the browser does not provide APIs for storing data in the cache, and applications such as Google map or OWA have to generate a unique URL through a lot of work to make the browser cache it. In Atlas, Microsoft provides programmable local storage/cache, so applications can cache data locally conveniently, effectively, and securely.

Integration with other applications is another new standard to check whether the Web experience is rich. For example, when a user browses an auction website and bids for a commodity, he may want to know at any time when the auction will end, but how can he add this event to a personal calendar program? Atlas provides a series of client-side block services. When you select "add to calendar", the browser will call the connection point to obtain calendar data and pass it to a local calendar program. On the page, you do not need to download or run any special code or perform any initialization actions. Therefore, this is much safer than ActiveX.

Next step

As our technology advances, many things will happen. We have now started to develop, develop, and debug the next version of the tool, so we will soon provide a great development experience for these types of rich web applications.

One question you may ask is: how does Atlas work on aveon and Smart Clients?

We can see that Atlas is the best way to write rich, interactive, and personalized Web browser applications, while aveon is Microsoft's next-generation presentation layer model, it can provide the most abundant user experience on the Windows platform. Aveon will use the latest media integration features and hardware acceleration devices to deliver an excellent visual experience. Aveon will bring a better experience than the browser.

Of course, you can reuse programming models in ASP. NET and Atlas when building an aveon application. For example, you can still use ASP. NET to build block services and clients to build block services. This model allows you to smoothly transition to the next generation of applications.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.