Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old July 7th, 2006, 05:15 PM
VovaN1 VovaN1 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 3 VovaN1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 31 m 13 sec
Warnings Level: 1
Reputation Power: 0
Lightbulb Chat Ideas..

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

Reply With Quote
  #2  
Old July 8th, 2006, 08:56 AM
Axweildr's Avatar
Axweildr Axweildr is offline
CPAN medic ...
Click here for more information.
 
Join Date: Mar 2003
Location: Location: Location:
Posts: 11,279 Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)Axweildr User rank is General 26th Grade (Above 100000 Reputation Level)  Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1Folding Points: 122403 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 22 h 38 m 24 sec
Reputation Power: 2731
Send a message via Google Talk to Axweildr
Orkut
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 ...

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Chat Ideas..


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway