Creating Scribble applications based on AJAX technology

Source: Internet
Author: User
Tags file system web services visual studio

Brief introduction

ASP.net atlas is a rich class library for ASP.net development of AJAX-style applications. This article attempts to explain the general features of the Atlas framework, and since Atlas is a large library, this article focuses on the two most important features of Atlas:

1. Ability to invoke server-side Web services from client script

2. Making it easy to develop CROSS-BROWSER-compliant JavaScript code

Through the introduction of these two features, readers can be familiar with the Atlas class library using methods.

Background

MFC scribble application is one of the famous examples of learning MFC programming. The Scribble application allows the user to use the mouse to paint freely. I have seen such a similar application using AJAX technology on the web. Unfortunately, this JavaScript drawing site can only be run on the Firefox browser. So I'll explain how to build a cross-browser version of the Scribble program in this article.

Installing Atlas

At the end of this article, you can click this link to download the December CTP for Atlas. If the link doesn't work, you can always go to the Atlas site and get the right link. The Atlas library can be used as a template (VSI) for Visual Studio 2005. There is a description of how to install this template at the download site just now.

Create an Atlas Project

Once the Atlas template is installed, you can create a blank Atlas project by clicking the menu option "File->new->web Site". You can then open the New Web Site dialog box, shown in Figure 1.

Under "Location", you can select either "File System" or "HTTP". Choosing HTTP will allow you to base your site on an IIS server, and choosing File system will allow you to create a site on the local filesystem (you can use the development Web server for debugging and testing). You can choose either option, but I find that the application works better if you use Internet Explorer and run on IIS.

Atlas Air Engineering

The latest Atlas site created above has the following directory structure:

· App_Data

This is the empty directory where the data file is placed.

· Bin

This directory places the DLL file corresponding to the assembly set Microsoft.Web.Atlas. This directory contains the server location for the Atlas Library.

· ScriptLibrary

In this directory, you can place any JavaScript files for the application.

o Atlas

The Atlas client script is placed here, which has the following two subdirectories:

§debug

The debug version of the Atlas client JavaScript file is placed in this directory.

§release

The Atlas client JavaScript file release version is placed in this directory. The scripts in this directory are more compact and have some debugging code removed.

Atlas Client Script

The December release of Atlas provides the following client-side scripts:

· Atlas.js

This is the core Atlas script file, which includes basic tool functions and client controls and components.

· Atlascompat.js

This file contains the Atlas compatibility layer to support Mozilla Firefox and Apple's Imac-safari Web browser. This script will ensure that the Atlas code is cross-browser compatible.

· Atlascompat2.js

This file contains other functions to ensure compatibility with Safari web browsers.

· Atlasruntime.js

This is a miniature version of the core Atlas script file, which does not contain client components and controls. This script file is used when the previously mentioned component or control is not in use.

· Atlasuidragdrop.js

Contains tool functions that provide mouse drag-and-drop functionality in Web pages.

· Atlasuiglitz.js

Contains tool functions that provide animations and other special effects in Web pages.

· Atlasuimap.js

Script files that support the Atlas mapping framework using Virtual Earth.

Related Article

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.