100 likes | 252 Views
Online Chatting Room. Ji Xu & Yuhong Chen. Objective. Build an Online Chatting Room which allows multiple users to logon and communicate at the same time. Features. User need a unique user name to logon the chatting room.
E N D
Online Chatting Room Ji Xu & Yuhong Chen
Objective Build an Online Chatting Room which allows multiple users to logon and communicate at the same time.
Features • User need a unique user name to logon the chatting room. • When a user logon to the chatting room, the information of the IP address as well as exact time when user enters will be collected. • Once logon to the chatting room, the user can type the message (no more than 200 characters) in a text area, and then clicks the submit Button to upload the message to the chat lobby window. • User can set font, color, and size of the input text. Images and special symbols are allowed to post.
Features • The chat lobby window will display the messages from all users currently in chatting. Page will refresh every 5 seconds so new posts can be displayed and some old messages may get purged. • If a user has not input anything for 20 minutes, the session will expire and the user has to re-logon to continue the chat. • A user can log off /log on at any time. • The latest 100 messages will be saved in a text file, and others will be deleted automatically.
Technologies • Active Server Pages (ASP),VBScript • Jscript & Javascript, HTML
Active Server Pages (ASP) • ASP is a technology (not a language) for building dynamic and interactive web pages. • ASP takes the scripting language code and converts it into HTML on the server, before sending it back to the browser. • ASP is executed on the web server, so any client (browser) can be used to view the results. • ASP decreases the demand on browsers, by getting the server to do some of the work instead.
ASP Read the request from the browser Find the page in the server Perform any instructions provided in ASP to modify the page Send the page back across the Internet to the browser HTML Reads the request from the browser Finds the page in the server Sends the page back across the Internet to the browser ASP vs. HTML
Advantages of ASP • Make it easier to edit contents of a web page, by updating a text file or the contents of a database rather than the HTML code itself. • Create pages that will be customized to display only things that will be of interest to a particular user. • Display and update databases contained in the web page, and manipulate the data therein, by being able to sort the entries into any order or view a subset of them.
Online Chatting Room • http://www26.brinkster.com/xuchen/default.asp