Ajax-based asp.net chat room-how to build consensus

Source: Internet
Author: User
Tags net
ajax|asp.net| Chat Room

This is a very entry-level article from a technical point of view, although the title is Ajax and chat room, it is used to the complex things like Atlas and HttpHandler, in fact it only uses XMLHttpRequest and page. This lowers the technical threshold that the reader needs to cross, even if you usually just use page and have a little knowledge of xmlhttprequest and will not prevent you from reading this article.

The first paragraph of the article introduction a brief introduction to the background of the project, the author said that he originally designed the chat room using ASP, only placed two text boxes, and used every few seconds to refresh the method. That sounds "primitive," right, but I think it's the "raw" stuff that makes it easier for beginners to understand and imitate, and then they can do something more advanced in one step at a time.

The second paragraph of the article describes some cases of sample, for example, it has only one chat room, and the user list changes with the user's logon and session timeout. The third paragraph of the article tells you some of the features of the program, such as creating a Chatengine class that handles the entire chat room logic and declares a static instance of the HttpApplication.

The next article will elaborate on this chat room workflow, if you have the experience of making a chat room, you can compare your experience, while understanding the meaning of the article and its code. Although this chat room's sample is writes with ASP.net, but is mixes the ASP and the ASP.net writing style, but does not let the person feel the disorderly, but may let you feel "simple is good" the truth Sometimes it's good to make a simple application in asp.net, especially a page-oriented one, and think back to the flow-oriented way of ASP.

How to build consensus (building Consensus)
The author is Brad Abrams, the first sentence of which says "one of the core skills of the" a program manager are to build consensus, which is "a key skill of the process manager is building consensus". Then the author takes two paragraphs to illustrate how important it is to build consensus within an enterprise such as Microsoft, and then start enumerating the ways to build consensus.

In the article, the author lists 25 ways to build consensus, including "Ask for help", "Write down", "Get Data", and so on, and each method has a short paragraph behind it to help you understand its meaning. You can try to use your experience to understand the name of the method, and then see if the following instructions are consistent with what you think. Don't forget, "not all of them work in every cases, pick the ones that feel the best for you and for the situation", which means "not all methods are applicable in various situations , choose the ones that make you feel the best for you and the current situation.

Finally, the authors point out 3 practices that will make it impossible for you to build consensus, namely, "Pray for Neglect", "event escalation", and "tasks from the top." Using this 3 approach usually leads to a lack of consensus.

Display a specific font on a page (SIFR 2.0:rich Accessible typography for the masses) by using the Flash replacement method
The bonus part comes again, this time with a flash+javascript gadget that allows you to replace the text in a particular area (usually the title) on the page with Flash, and the benefit of course is that you can display any font you want, because Flash can be embedded in a font.

If you need to download this tool, you can scroll directly to the last part of the article to find the download link. The middle part of the article explains how it works:

An ordinary XHTML page is loaded into the browser.
A JavaScript function starts checking to see if Flash is installed and searches for the tag, ID, or class you assigned it to handle.
If Flash is not installed, nothing will happen. If you have Flash installed, it will help you traverse the elements that you have assigned it to handle and measure their current size.
Once the measurement is complete, JavaScript creates a flash of the same size on the element to cover the original text, and the original text is passed through the form of a flash variable.
In Flash, ActionScript will draw the incoming text in the font you specify, zooming in from the 6-point font until it's just filled with the size of the flash.

Http://www.cnblogs.com/cathsfz/archive/2007/01/03/610876.html



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.