Welcome to Dream.In.Code
Become an Expert!

Join 150,413 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,008 people online right now. Registration is fast and FREE... Join Now!




html-coded chat help!

 
Reply to this topicStart new topic

html-coded chat help!, what can I do?

derekhahn
14 Mar, 2008 - 11:37 AM
Post #1

New D.I.C Head
*

Joined: 7 Mar, 2008
Posts: 8

Hi. I'm trying to make an HTML chat engine for my friends, and I got, so to say, "coder's block." It works like this: fill in a box and click a button next to it, so then a new comment will appear in a little dropdown window, but Im terrible with typed, nonvisual coding. help me out!! sad.gif

CODE
<HTML><HEAD><TITLE>chat room</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.5730.11" name=GENERATOR><LINK href="/favicon.ico" rel="shortcut icon"></HEAD>
<BODY>
<P><INPUT maxLength=35 size=35 value="type it here!" name=typbx>&nbsp;<INPUT type=submit value="say it" name=klikybtn></P>
<P><SELECT id=null style="WIDTH: 260px"></SELECT></P>
<P>&nbsp;</P></BODY></HTML>

User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Html-coded Chat Help!
14 Mar, 2008 - 12:10 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,660



Thanked: 314 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
I am afraid what you are attempting to do is going to take more than just some HTML. You typically need a place to store messages temporarily so that people you are chatting with can see your messages. To get them into this storage place you usually need a server-side language like PHP or ASP.

The series usually goes, you type into a textbox and hit the button to send... the data is sent to a PHP/CGI/ASP script which takes the message and either stores it in a database or file. The page then reloads and loads any new messages that have been stored.

This way that other people you are chatting with will reload their pages (usually by an automatic mechanism every minute or so) and gets the new messages you typed to them.

I am just telling you this because I wanted you to know there is more involved than just HTML when building this. The reason it is built this way is because of how web pages work in that they don't update without being told to and the data needs to be sent out to those who are chatting with you.

I hope this makes sense. smile.gif
User is offlineProfile CardPM
+Quote Post

ahmad_511
RE: Html-coded Chat Help!
14 Mar, 2008 - 06:26 PM
Post #3

D.I.C Regular
Group Icon

Joined: 28 Apr, 2007
Posts: 351



Thanked: 8 times
Dream Kudos: 400
My Contributions
Nothing to add,as Martyr2 said you need more than HTML
So maybe this will give you an idea about how things may goes with Simple Text Chat Box
Good Luck smile.gif
User is offlineProfile CardPM
+Quote Post

spearfish
RE: Html-coded Chat Help!
15 Mar, 2008 - 12:29 AM
Post #4

Monkey in Training
Group Icon

Joined: 10 Mar, 2008
Posts: 746



Thanked: 2 times
Dream Kudos: 225
My Contributions
Yep, you need some sort of server side programming.

For *live* chats, try phpfreechat.net
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 07:57PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month