Click to See Complete Forum and Search --> : asp chatroom??
Justin
08-13-2004, 10:26 AM
Does anybody know of a good chatroom that is in asp, or can be easly encorporated into an asp site (where when people are signed in, they click chat, and my asp can supply the login info so they dont have to see a login form) java or something could work, but i need it to use a form that i can have the asp page to fill in hidden fields so all they have to do is click join.
buntine
08-13-2004, 11:41 PM
I once created an ASP chat room using the Application object. A quick google search returned a link to ASP Index, which lists some free ASP chatroom software.
http://www.aspin.com/home/community/chatroom
Regards.
Justin
08-14-2004, 10:17 AM
thanks for the imput
PeOfEo
08-14-2004, 12:27 PM
Applets would be good to use. If you know java, I suggest it. Its not a must, but it saves a page from having to be refreshed and is less annoying for the user.
Justin
08-15-2004, 10:56 AM
i aggree, but i dont know java, so ill have to go with one that refreshes. I think i will even write my own, and i think i've found a way to use javascript and frames to make it so it doesn't have to refesh the whole page. Ill use javascript to add to the chatbox so it will only refresh the users box and the server will give the information to javascript from the users box so that it doesn't appear as refreshing.
PeOfEo
08-15-2004, 03:53 PM
How. Java script and a server side script cannot communicate.... The only way you would be able to do something is if you somehow used the js to write out information from another file that is constantly being written by the server. Like you would have ot use js to get contents from a text file the server is writing with the input I gues. That is the only way it would seem possible.
Justin
08-15-2004, 04:09 PM
have a small i frame that javascript will be refreshing by useing the location method, and i would assign a number to each line of the post (the user wouldnt see) and it would set the iframs location "chat.asp?chatnum=42" and then the frame would be loaded and the server will have the commands in the i frame, ie. <script language="javascript">parrent.update("sdnbfsdfs","dsfsdfs")</script>
and update would be the function to update the chat. and for posting, i would have the target be that frame so that the page remains.
PeOfEo
08-16-2004, 09:07 PM
Yes but for any server side script to be fired that gives no information to the frame the whole thing still has to refresh. You would somehow have to retrieve the data completely with the client side script in order for the page within the frame to not refresh. I think the only way to acheive this would be to have the server side script writing to a file and then having the js check that file regularly if that is possible. I am not a js man so I do not know how that would be acheived, but it may be possible.
Justin
08-17-2004, 11:42 AM
well i would like to find a java one that is very costomizable, and is logged in though an html form (so the server can fill it out in hidden feilds) and all they need to do is click enter
Justin
08-19-2004, 02:54 PM
I think i WILL write my own chatroom. AND YES javascritp can talk to the server, ive tryed it!! you use an iframe that javascript it refreshing and get instructions through the iframe using a parent.Function("COMMANDS"), and javascript gives the server instruchtions through the use of a QueryString. And in the form for the user, just have target="FrameName" and it works Great!
If anyone would like the source code of my chatroom, just let me know, or even better, when im done, ill just post the source here!!!!