Using Java For a chat room...

They have: 5,633 posts

Joined: Jan 1970

What everybody think's???
it is better use HTML or java for a personal java chat room
in my own personal page about music ???
Thanks all people who answer... !!!

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi,

You will be unable to use javascript and/or html to write a chat room. Both are client-oriented; that means that each and every visitor to the page has his/her own variables and functions, including the screen. So, for example, you would never get to see what I type. You might be able to use java, but I'm not sure.
Virtually all of the chat rooms that I know of are implemented through a cgi program. That's because cgi programs run off the server, which is capable of displaying the same screen to all the visitors.

Vinny

Where the world once stood
the blades of grass cut me still

They have: 10 posts

Joined: Jan 2000

With simple HTML its virtually impossible to create a Chat program as far as I know.

Java Chat is good but it takes a lot of loading time and browser support. When loaded its the best unless the applets are buggy. Also your server should support java.

Using Cgi or Asp is the common alternative. But these usualy don't look neat.

Next option is use Macromedia Flash (needs browser support)
create front-end of chat and Cgi or Asp to process the back end.

SK
[email protected]

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.