Get data to the html page

How can I send data to html text box, for example, from a cgi ?
gilad111397Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gilad111397Author Commented:
My target is to create a simple chat form where there is:
1. a text box to write new message
2. a large text box to show the conversation
0
shiversCommented:
AFAIK, the best way to do this is with a Java applet, all the HTML versions i know of refresh the whole page every few seconds to get the latest chat comments
0
jhurstCommented:
Shivers is correct - it is not possible in html as such.  Html requires that the whole page be sent.  You can not re-write parts of it.

You could make it look like an area was being updated by creating that area as a separate frame and having that frame refreshed regularly, but this will be very poor in terms of performance.

You could even make things a little faster by having a hidden frame that is refreshed regularly and contains very little.  When the main area needs to be refreshed you could send informaion to this hidden frame, being javascript that would cause the real frame to refresh.

You can also have that hidden frame write into the text box by using javascript to access the value of the input field.

Having said all this.  Html is not the way to do this!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.