Wednesday, May 23rd, 2007
Chat Infection: Embed Web Chat
<>p>Todd Fisher has created Chat Infection, a simple chat widget that sits on top of Prototype.You can see Todd’s work via core.js, which is worth looking at to see the Event.onDOMReady(..) and the like.
Here is a new room:
Related Content:











and what about my chat (prototype) ? i sent you an url last week…
i add some method to transform xsl with prototype
http://chat.cyrilpereira.com
chatinfection.com seems to be down. therefore ajaxian takes 3.24 minutes to be completely displayed (thanks firebug!). sucks! :)
@Stephan
Yeah I noticed that too, I installed Adblock Plus just to block content from the domain so I could view Ajaxian.
Dion, no more live demos on the main page. They often break your site.
Unfortunately, this highlights why including javascript from third-party domains etc. can be troublesome for site performance (browser waits for a timeout before resuming page render, and so on.)
An alternate approach could be using script to insert or load this content on or after domReady/window.onload(). At the least, the initial site render would not be affected.
Yes, no more demos in main page. Is very slow. :)
I didn’t write this Eddie wrote this.
See => http://www.chatinfection.com/
Not my work in anyway!
Eddie also is responsible for the core.js file, I may have helped a little in debugging or designing but he’s the implementor and should get the credit.
The Event.onDOMReady work was something I worked on but that was definitely derived from a lot of other work on the web and it’s use in the core.js file above was solely Eddies doing…
The dig link is here: http://www.digg.com/gadgets/Viral_chat_web_widget_allows_chat_rooms_to_be_embedded_and_shared
Thanks a lot for the post.. any chance we could bump the Ajaxian container iframe up to 420px height?
Cheers,
Eddie
oh what a tiring code for server! getting all posts at every 5 seconds is very tiring stuff for a server. this kind of applications must send active text messages with alive-connection thru client. i coded an instant messenger to my site with alive-connection stuff anyl bad thing about this is classic asp wont let you open a alive-connection unless you made a loop. and a loop exhausting one (: (checking messages in miliseconds whoa!)
so, use alive-connection and write data to invisible iframe. call window.parent.writefunction() in iframe for new messages.
i hope u understand my technique guys. sorry about my non-fluent english too (:
ilkin aka ir2:
Duly noted re: pushlets, etc. However, it’s more complicated and brittle that way..
The way the backend mechanism was constructed, the app can handle the polling fine (as it’s very easy to scale horizontally.)
and what about my chat (prototype) ? i sent you an url last week…
Say Med, maybe it’s because that page is nauseating to look at?
Everybody try to plug their chat system. I will do the same than. http://www.conceptuel.co.uk/index.php?transaction=chat&categorie=120&language=EN&categorieClicked=120
Try to inject image on chat Infection and it is working fine. Not sure if you want to do that
thanx George Bailey…. remind me to not invite you to my birthday ;)
George Bailey… did you find ZuZu’s petals? Please tell Mary and Clarence I said hi :)
(sorry, you’ve probably heard that a million times)
interesting