Phil thank you, you helped me understand from submission allot better also, as I sorta had the same issue..
MA WarGod
I believe if someone can think it, it can be programmed
in thinking what you said about a elegant solution.
I came up with this..
<script type="text/javascript">
$('document').ready(function(){
$('#chatDiv').hide();
$('#EnterChatDiv').show();
var url = '<?php echo...
ok I am stuck
I would like to be able to toggle <div>'s in the script
here what the user hits now coming to the room
<div id="chatForm">
<form id="formChatForm" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
Your Name: <input type="text"...
OK GOT THAT PART!!!
I ended up abit of both of ours and instead of returning chatPerson I reurned UserName, this way chatPreson was stripped as you had it but UserName on lowwer half(chat output) is not
MA WarGod
I believe if someone can think it, it can be programmed
wait I think I follow what your saying if I create a row in db named username and the strip the html from chatPreson and Insert it.
MA WarGod
I believe if someone can think it, it can be programmed
ok so make a $ variable like $SchatPerson ?
so like?
$_SESSION['chatPerson'] = $SchatPerson;
or does that conflict with
$_SESSION['chatPerson'] = $chatPerson;
MA WarGod
I believe if someone can think it, it can be programmed
<script type="text/javascript">
$('document').ready(function(){
var url = '<?php echo $_SERVER['PHP_SELF'];?>';
var timestamp = 0;
var interval = 5000;
var first = true;
$('#formChatForm').bind('submit'...
Yes but the text isn't where I wish to strip the html its in the username (chatPreson, when entering the room with html tags the full html tag appears at the top of the room, it is that display that I want to strip I would like to strip it that way the user name displays just text, only there...
Awesome!!! Thank You so much..
Ok I had to change host as their add wrapper was creating a error I think with the script..
I also have it on xamp where I am testing and tweaking it..
I added tables to the chat output so if its a long post it displays nicely..
I also added a function...
http://www.codewalkers.com/c/a/Miscellaneous-Code/Simple-Chat-Room/
jpadie are you CodeKadiya there?
the reason I ask is that's this script!!
MA WarGod
I believe if someone can think it, it can be programmed
wait I am getting a error in firebug
missing ) in parenthetical
http://htmlchat.x10.mx/chat/chatRoomServer.js
Line 24
MA WarGod
I believe if someone can think it, it can be programmed
as a note any info I shared by over looking it has been changed all db's, users, and passwords.. a edit feature here would be great for cases like this!!! Sorry again!!!
MA WarGod
I believe if someone can think it, it can be programmed
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.