|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
What you think about this algorithm to create Web Based Chat Application?
To get messages, you send request using AJAX to server, if have new messages you save it in a COOKIES (enrypted, or encoded) with some format, after request is sent you check if cookies is changed and have new messages and if new messages is exists in cookies, using JavaScript you parse cookies data to recieve messages, generate HTML code and put it in chat window. In this case you don't preload data at all, all data will saved in Cookies and you will needed just to parce it, this is will make chat VERY VERY FAST, because will no traffic to receice messages. What you think about this? Please, let me know you opinion about this. Thank You, Vova |
|
#2
|
||||
|
||||
|
IIRC there is a limit to what you can store in a cookie, and you're still going to be transmitting cookies as traffic.
Using Ajax to send a request is fine, but you'd you'd just need to use the javascript to update a <DIV> element when you get the response Have you done any research on this, I'd be thinking that something similar should already be available as an opensource project?
__________________
--Ax without exception, there is no rule ... The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones ![]() 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ... |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Chat Ideas.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|