Author |
Topic  |
|
inworg
Junior Member
 
Italy
153 Posts |
Posted - 12 June 2001 : 07:34:06
|
I apologize if this is an off topic.... we're developing and testing a chat ASP-based without reload. More informations (in italian) at our domain www.inworg.com. We think, is possible to create it as a Forum MOD.
www.inworg.com/Admin/minilogo.gif" border=0> |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
Posted - 12 June 2001 : 08:10:27
|
i dont see anyway you can make an asp chat app. i might be completely wrong, but asp is run at the server, so their is no way that it can keep sending information without the page loading so it can send info to the browser.
Brad |
 |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 12 June 2001 : 10:44:30
|
quote:
i dont see anyway you can make an asp chat app. i might be completely wrong, but asp is run at the server, so their is no way that it can keep sending information without the page loading so it can send info to the browser.
Brad
I've spent alot of time with this. It would be possible, with a wait function. However, the only wait() functions are components, and none of them really work the way you would need.
With a wait(), you loop continuously, sending a message (<<- Keep alive comment-->) to the client every 5 seconds, and it will keep the page in a continuous receive state. However, I'd love to see how you accomplish this, because I've searched high and low.
I ended up using refresh myself. =/ (http://www.getitcrunk.com/cog/index2.html).
-Dan
|
 |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
|
stuF
Average Member
  
United Kingdom
561 Posts |
Posted - 12 June 2001 : 19:20:58
|
check this one out: http://36-degrees.co.uk/chat.htm the skins/moods feature is cool, and its easy to setup..the d-load nifo is in the chatroom menu!
|
 |
|
inworg
Junior Member
 
Italy
153 Posts |
Posted - 13 June 2001 : 02:57:04
|
redbrad0, u're right... but there's a trick... to refresh an HTML page without reload it u can use (as me) an applet + JavaScript... try my chat at this address, choose a nick and try it. I know that there are some bugs but it's just a preview. Pls try and let me know your opinion. I was forgeting to teel u that in this chat only new messages are sent, the others are in cache inside the applet!!!
 |
 |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 13 June 2001 : 14:13:09
|
Brad, I honestly don't know the performance drain(not running on my server ). I do know that when I first got it up and running, on the hidden refresh page I forgot to close the DataConn at the bottom, and brought the server to its knees. I put a 3 second refresh on the hidden control page...and the lower the number, the bigger the server drain. It also affects your ability to browse in other windows (especially on a modem). If you test it on your own server, let me know your results.
I've zipped the application up. It's at: http://www.getitcrunk.com/chat/chat.zip
It should work for you, but I won't guarantee anything. I'll try to help in any way I can if it doesn't work. And, sorry, I'm not good at providing lots of code comments. I've never given it out, so I never had a reason to.
Let me know how it goes. -Dan
quote:
i have been looking for a good chat app also for www.buddyconnections.com. your chat app seems pretty good dan, would you mind sharring? what kind of performance drain is on the server??
quote:
I ended up using refresh myself. =/ (www.getitcrunk.com/cog/index2.html" target="_blank">http://www.getitcrunk.com/cog/index2.html).
Brad
|
 |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
Posted - 13 June 2001 : 14:40:30
|
thanks dan, i will try and add it in the next couple of days to www.buddyconnections.com. i will let you know if i have any problems.
quote:
Brad, I honestly don't know the performance drain(not running on my server ). I do know that when I first got it up and running, on the hidden refresh page I forgot to close the DataConn at the bottom, and brought the server to its knees. I put a 3 second refresh on the hidden control page...and the lower the number, the bigger the server drain. It also affects your ability to browse in other windows (especially on a modem). If you test it on your own server, let me know your results.
I've zipped the application up. It's at: www.getitcrunk.com/chat/chat.zip" target="_blank">http://www.getitcrunk.com/chat/chat.zip
It should work for you, but I won't guarantee anything. I'll try to help in any way I can if it doesn't work. And, sorry, I'm not good at providing lots of code comments. I've never given it out, so I never had a reason to.
Let me know how it goes. -Dan
quote:
i have been looking for a good chat app also for www.buddyconnections.com. your chat app seems pretty good dan, would you mind sharring? what kind of performance drain is on the server??
quote:
I ended up using refresh myself. =/ (www.getitcrunk.com/cog/index2.html" target="_blank">http://www.getitcrunk.com/cog/index2.html).
Brad
Brad |
 |
|
inworg
Junior Member
 
Italy
153 Posts |
Posted - 14 June 2001 : 03:00:54
|
Good Chat! ...but there're some important differences between this chat and the mine. The main (and important!) is that your chat reloads ALL the page (=traffic) using my chat, instead, are sent only the new lines after the last query, so the traffic is less! Well, mine chat is only an alfa-test in preview version but we're working on it! Another big difference is that due to increase speed, we not use databases but only Applicatio and Session variables. If u find too slow my chat is why: a) the refresh is set now to 5 secs., if needed more refresh speed we can set it to 3,2 or 1 secs. b) my provider is very cheap (25$/year, no space-limit, ASP, CDONTS, no traffic limits, 5 POP-email, MDB database, FTP)... I can't have line speed too!!!
We're not yet thinking to develop more rooms or private messages until all bugs are removed.
If u've more ideas to increase speed or develop a better code please contact me in this forum! Regards 

Edited by - inworg on 14 June 2001 03:48:24 |
 |
|
gonzo
Starting Member
USA
5 Posts |
Posted - 15 June 2001 : 16:44:18
|
I have done some looking around for ASP chat software. A lot of them use the app scope variables for storing convo's. One of the best I've seen is over here.
http://www.coolcafe.ca/v3/index.asp
|
 |
|
inworg
Junior Member
 
Italy
153 Posts |
Posted - 15 June 2001 : 17:45:37
|
I use App scope too. I want to remark one more time that mine does not reload the page (=all lines & graphics) while Cool cafe does this!  I you'll try mine you'll see. Of course the code is in alfa testing... but the idea seems real good .
 |
 |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
Posted - 15 June 2001 : 17:50:06
|
inworg,
your chat app uses an applet, did you write the applet?
Brad |
 |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 15 June 2001 : 18:33:06
|
quote:
Good Chat! ...but there're some important differences between this chat and the mine. The main (and important!) is that your chat reloads ALL the page (=traffic) using my chat, instead, are sent only the new lines after the last query, so the traffic is less!
That's incorrect. My chat incorporates a hidden frame. Javascript functions are sent to that hidden control frame that cause document.write to the main display frame. I only send new data to that control frame. I don't refresh the entire display area each iteration.
-Dan
Edited by - Dan Martin on 15 June 2001 18:36:30 |
 |
|
inworg
Junior Member
 
Italy
153 Posts |
Posted - 16 June 2001 : 05:33:34
|
Dan Martin Ok, so 'cause i saw the horglasses+arrow & refresh click every 1/2 seconds I've thinked that your chat have to reload all page. If I remeber right your (really good!!!) chat writes last message in the top of the page... mine not (as IRC)... is this asp chat a your code?
redbrad0 Yes, I wrote 3 applets with threads: the first refreshes the frame with messages, the second check out for users on line, the third sends the message to server.
After a hard test (pls test my chat) I'll try to develop a better java code and I'll release it under a GPL licence....
   
Pls Help us! Test our chat and check out for bugs!
 |
 |
|
Dan Martin
Average Member
  
USA
528 Posts |
Posted - 16 June 2001 : 06:03:20
|
quote:
Dan Martin Ok, so 'cause i saw the horglasses+arrow & refresh click every 1/2 seconds I've thinked that your chat have to reload all page. If I remeber right your (really good!!!) chat writes last message in the top of the page... mine not (as IRC)... is this asp chat a your code?
I do rely on refresh. I have a 0 sized frame which refreshes constantly (I have 3 second). If there is new data, that control page gets this in the body:
<script languange=javascript> parent.displayFrame.document.write("Dan says, 'Hello, how are you'); </script>
So actually my chat goes top to bottom, like most chat apps, rather than reversed. It would be easy enough to do to make yours do the same thing.
I do like your chat. It is very nice that it avoids the refresh. AND it worked through the firewall at my work, so it's not using a port other than the http :80 to communicate, which is good. Most applet implementations rely on opening another port, and thus don't work on firewalls.
|
 |
|
inworg
Junior Member
 
Italy
153 Posts |
Posted - 16 June 2001 : 12:13:09
|
Dan Martin I think (I say it again) that your chat is great! Let me show some triks about my chat (maybe usefull for yours). My scroll is simulated 'cause I use an array of strings. I do (not exactly) something like this
while RemoteInput<>""{ for (ct=1; ct<99; ct++){ writestring[ct]=writestring[ct-1] //does the scroll } writestring[100]=RemoteInput } StringOut=''; for (ct=1; ct<100; ct++){ StringOut=StringOut + "<br>" + writestring[ct]; //makes the html }
document.write StringOut;
I hope this idea is usefull 4 your code. If u want we can make a workgroup to create a new chat... let me know! 
 |
 |
|
|
Topic  |
|