English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i need help on where and how 2 start for my project on
creating a chat application using javascript and ASP.
we are allowed 2 use any other programming language as well.
are there any good resources 2 help me for this project?
thx in advance.

2007-03-10 04:59:09 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

thanks rex...but im supposed to do
a chat application which should be able to communicate from one computer to another.how is this possible? and a icon 2 launch the application should also be created...i need help on these too..

2007-03-10 05:10:45 · update #1

2 answers

There is a very easy way to make a chat room using ASP and JavaScript. It is very crude but it works and can be done in 30 minutes:

Make a page in ASP that accepts a form submission with one field (a chat entry) - wrap the chat entry in some nice HTML and append it to the end of an Application variable, then write the contents of the entire Application variable to the page.

Make a page that has a single input field and submits to the above page. Put these two pages in a frameset.

Use JavaScript to continuously refresh the upper page and scroll to the bottom of the page.

You should have no trouble finding out the technical details of each of these steps on Google.

Edit:

Communicating between users is answered by using the Application variable to store the chat messages. Application is global to the entire web server, so if you have multiple users looking at the page, they will all see the same Application variable (for example, if I say Application("Message") = "Hello"

And then

Response.Write Application("Message")

Every user who visits that page will see "Hello"

So, taking that a step further, every user will see every message as it is appended to the chat Application variable.

Secondly, as far as an icon... you just need to make a shortcut to your web page that is hosting the chat app. It's not possible to make a standalone chat program with ASP.

2007-03-10 05:05:43 · answer #1 · answered by Rex M 6 · 0 0

i got here upon a pair blunders on your code. First, you used the two single expenses and double expenses synonymously in line 11 of the script. 2d, interior the onclick journey handler, you could placed a semicolon after interest(). i don't be attentive to if it is authentic for the browser you're utilising, yet for some browsers like Safari, no longer putting a semicolon on the top will injury your code. it is my journey besides.

2016-11-23 19:21:55 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers