> > I have yet to find a good CF-based chat program. Unfortunately, these
> > programs rely on auto page refreshes and can be quite annoying.
Dave Watts:
>If you're expecting to find a CF-based chat program which doesn't rely on
>automatic page refreshes, don't hold your breath! That's outside the scope
>of what CF, or any other web application server for that matter, can do.
That's not entirely true.
You could always write a script that keeps serving a page and never tells
the browser that it is done so the browser keeps loading it while content
is being added by the script.
I know this can't be done using cf since the cf engine processes the entire
script until it's done before handing it over to web server for serving,
but any jsp engine, or even asp, could do this.
A simple demo in perl:
#!/usr/bin/perl
$|=1;
print "Content-type: text/html\n\n<body>\n";
for (1..99) {
print "rad $_<br>\n";
system("sleep 2s");
}
print "</body>";
This demo doesn't write anything but keeps loading the page every 2 seconds
WITHOUT meta refresh. I could add a new line of content instead of just
loading nothing and that could very well be used in a web chat application
to show chat messages.
//Nille
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.