flare1028us
10-05-2004, 02:53 AM
First off, I would like to thank the people who have taken time to help
me on this site. You guys are great!
Next: My problem
I am writing a perl chat server and am using javascript to refresh the chat
page. The chat page refreshes with the onkeyup event.
The perl script takes the current value of the textbox (where the user types
thier text to send) and after refreshing, writes it to the box on the refreshed
page.
(So that the user's message won't disappear when the page refreshes)
However, spaces disappear in the textbox after refreshing.
Here is the javascript code for the refresh function:
<script language="javascript">
document.f.msg.focus();
function rfrsh()
{
setTimeout("window.location='chat.cgi?com=view&msg='+document.f.msg.value", 0);
}
</script>
Why are the spaces disappearing and how can I fix it?
To see the page with the problem, go to
http://flare-designs.cjb.net/t/chat/chat.cgi?com=login&un=CF%20User
If I did not explain my problem where it could be fully understood,
or if you need to see the perl code, please tell me.
Help is always apreciated.
Carlton
me on this site. You guys are great!
Next: My problem
I am writing a perl chat server and am using javascript to refresh the chat
page. The chat page refreshes with the onkeyup event.
The perl script takes the current value of the textbox (where the user types
thier text to send) and after refreshing, writes it to the box on the refreshed
page.
(So that the user's message won't disappear when the page refreshes)
However, spaces disappear in the textbox after refreshing.
Here is the javascript code for the refresh function:
<script language="javascript">
document.f.msg.focus();
function rfrsh()
{
setTimeout("window.location='chat.cgi?com=view&msg='+document.f.msg.value", 0);
}
</script>
Why are the spaces disappearing and how can I fix it?
To see the page with the problem, go to
http://flare-designs.cjb.net/t/chat/chat.cgi?com=login&un=CF%20User
If I did not explain my problem where it could be fully understood,
or if you need to see the perl code, please tell me.
Help is always apreciated.
Carlton