Click here to Skip to main content
15,895,799 members
Articles / Programming Languages / Javascript

Writing ASP Chat using JavaScript and XML (Part 3)

Rate me:
Please Sign up or sign in to vote.
3.67/5 (3 votes)
21 Jan 20042 min read 66.4K   1.2K   20  
Step-by-step article about writing web-based chat. This article explains the chat with users list and registration.
/// Specifies messages refresh time-out, im seconds.
function getMessageRefreshTime() {
	return 7;
}

/// Specifies messages refresh time-out, im seconds.
function getVisitorsRefreshTime() {
	return 7;
}

/// Specifies expiration time-out, in seconds.
function getSessionExpirationTime() {
	return 40;
}

/// Specifies maximum quantity of messages to represent for users.
function getMaxMessages() {
	return 30;
}

/// Specifies users persistence location.
function getUsersDataPath() {
	return Server.MapPath("../db/users.xml");
	//return "C:\\Documents and Settings\\All Users.WINDOWS\\Documents\\users.xml";
}

/// Specifies auto save interval in seconds.
function getAutoSaveInterval() {
	return 10;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Ukraine Ukraine
Alexander Fedorenko is a professional C++ developer since 1996. He completed many custom and shareware projects. One of the successful projects is DevPlanner - tool for personal planning and time management.

Comments and Discussions