PDA

View Full Version : HEEEEELLLLLP!!!


phreeek
09-16-2000, 03:25 PM
HEEEEELLLLLP!!!!
I'm trying to write a chatroom that is run totally by javascript... I have the client side interface down..that's no problem. The trouble I'm having is tryin to figure out how to get it where other people can see what I type.

So I got 2 questions....

1. Can it be done using javascript, or do I have to use a cgi??

2. If it can be done, what am I missing....

I'm totally clueless

Titan
09-16-2000, 05:54 PM
Sorry friend, you'll need to have a script (CGI/ASP) to handle the server based file handling...Javascript is client side (on your system) language...

look at these examples if you'd like...
http://www.cgi-resources.com/Programs_and_Scripts/Perl/Chat/



------------------
Best of Luck!

Titan
ICQ 37149892

phreeek
09-17-2000, 02:11 AM
Thanx Titan... one more question... which is easier to write...ASP, or CGI???

Isaac
09-17-2000, 07:10 PM
That would depend upon waht your using them for...



------------------
Isaac
Big Resources Inc. (http://www.bigresources.com)
Big Resource Network
isaac@123webmaster.net
ICQ# 71401549

phreeek
09-18-2000, 03:18 AM
ok.... what about server-side javascript??

Isaac
09-18-2000, 08:04 AM
Well here's the deal:
-JavaScript is a client side language, so you can't use it server side.
-You could try to script out this thing on your own, but unless you just have tons of time to mess with it, use a free perl script. If you don't you could be here for a week...

Hope that this helps you :D


------------------
Isaac
Big Resources Inc. (http://www.bigresources.com)
Big Resource Network
isaac@123webmaster.net
ICQ# 71401549

phreeek
09-19-2000, 12:21 AM
ok.... the big problem i'm having is that i don't have access to a server that lets you use your own cgis...plus, i have absolutely no idea on how to write one... same thing on asp... totally clueless there...

i asked the same question on a similar board and someone replied that i could write a vb program and use that to run the chatroom with an html/javascript interface.... is that possible...

ps. the reason i'm not using a free perl script is that i want to learn how to get a chatroom going, how it runs, what makes it work...etc... plus i need it to accept certain commands from the user....

thanks for all your help....

Henrik
10-10-2000, 02:22 AM
Well if you just want to learn how to make one you could do it on your own computer. It is often faster to develop something on a local server.
You could either install a webserver in windows. Or you could install a *NIX OS like Linux and start from there. I personally use BeOS as a CGI development system. But for most people Linux or FreeBSD would be the best choice.
Then install Apache, Perl, PHP, MySQL or whatever you want to use.