RE: chat room application

2001-04-06 Thread bflynn

Depending on the client's connection, auto-refresh the message frame could
be annoying at best.

I can envision a way of doing this entirely in Javascript using frames where
you could autorefresh a "hidden" frame (one that doesn't draw anything),
then use JS to check when a certain control field in that frame changes and
update the main window, perhaps mainly a textarea box.  Along the same
lines, the "send a message" client frame would post to a script on your
server that would cause the hidden frame's server source file to update.

Getting it all to work out would be pretty cool...but not specifically cold
fusion.  The real trick of it all would be in the javascript; you could use
CF to create the source pages, but thats about the limit of it.


For grins and giggles, heres what I see the logic of individual frames would
be:

Frame:Submit, contains an input box and submit button.  Action=post to
server
Frame:MainWindow, contains a textarea for messages and a hidden field called
"lastMessage"
Frame:JSControl, contains some javascript, a variable number of hidden
fields and a meta refresh tag, time delayed 5-10 seconds
The javascript would run everytime the page loads:
int lastMessage=MainWindow.lastMessage
while (there are messages in this frame later than
MainWindow.lastMessage )
{
get the message and message#
append it to MainWindow.TextArea1
set MainWindow.lastMessage = this message number
}

On the server side, you would save the messages in some way, perhaps in a
database; every time you get a post, age out the oldest one and add the
newer one.  The JSControl page would refresh and rebuild the message list
from the database.  The action page (when they post a message) would
maintain the database and then redirect the client back to the original
framed pages.

Brian



-Original Message-
From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 4:39 PM
To: CF-Talk
Subject: RE: chat room application


you can do it by auto refreshing a message pane with the META tag. if you
want persistence, you should use something like Java or Flash.

-Original Message-
From: Jason Green [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 11:38 AM
To: CF-Talk
Subject: chat room application


does anyone know of a place where i can find information about writing a
chat room in coldfusion?  or has anyone done this?  i'm looking for
something that would be like MSN Messenger, but not having to refresh the
page all the time to view the new chats.  if it can't be done in coldfusion,
then i'll have to look elsewhere.  thanks.

jason
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: chat room application

2001-04-05 Thread tom muck

Somebody posted a link here a couple weeks ago about passing data between
the client and the server with  tags using JavaScript -- it was a
brilliant idea and would probably work well for a chat application, but I
can't find the link any more.

tom


"Jason Green" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> does anyone know of a place where i can find information about writing a
> chat room in coldfusion?  or has anyone done this?  i'm looking for
> something that would be like MSN Messenger, but not having to refresh the
> page all the time to view the new chats.  if it can't be done in
coldfusion,
> then i'll have to look elsewhere.  thanks.
>
> jason




~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: chat room application

2001-04-05 Thread Jason Green

so how does microsoft do their chat rooms running asp?  or is it asp with 
java mixed in?



>From: Costas Piliotis <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: RE: chat room application
>Date: Thu, 05 Apr 2001 15:29:20 -0700
>
>Isn't there a meta-tag that forces a refresh?
>
>How about using the setInterval javascript method?
>
>You're right though, an Applet is the best way to write this...
>
>-Original Message-
>From: Clint Tredway [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 05, 2001 1:25 PM
>To: CF-Talk
>Subject: Re: chat room application
>
>
>you have to refresh the page to get new messages. browsers don't work any
>other way. to do this you need an applet to do what you want.
>
>I built a simple chat application for this reason.
>
>-- Original Message --
>From: "Jason Green" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>Date: Thu, 05 Apr 2001 18:38:07 -
>
>does anyone know of a place where i can find information about writing a
>chat room in coldfusion?  or has anyone done this?  i'm looking for
>something that would be like MSN Messenger, but not having to refresh the
>page all the time to view the new chats.  if it can't be done in 
>coldfusion,
>
>then i'll have to look elsewhere.  thanks.
>
>jason
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: chat room application

2001-04-05 Thread Parker, Kevin






e.g. http://www.mysite.com/index.htm">

But I', not sure this is an appropriate application for what you are trying
to do. I think you can also set a page expiry date in the past for the same
effect but again I'm not too sure this is an appropriate application for
this code.




Kevin Parker
Web Services Manager
WorkCover Corporation

[EMAIL PROTECTED]

www.workcover.com

p: +61 8 82332548
f: +61 8 82332000
m: 0418 800 287




-Original Message-
From: Costas Piliotis [mailto:[EMAIL PROTECTED]]
Sent: Friday, 6 April 2001 7:59:AM
To: CF-Talk
Subject: RE: chat room application


Isn't there a meta-tag that forces a refresh?

How about using the setInterval javascript method?

You're right though, an Applet is the best way to write this...

-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 05, 2001 1:25 PM
To: CF-Talk
Subject: Re: chat room application


you have to refresh the page to get new messages. browsers don't work any
other way. to do this you need an applet to do what you want. 

I built a simple chat application for this reason. 

-- Original Message --
From: "Jason Green" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Thu, 05 Apr 2001 18:38:07 -

does anyone know of a place where i can find information about writing a 
chat room in coldfusion?  or has anyone done this?  i'm looking for 
something that would be like MSN Messenger, but not having to refresh the 
page all the time to view the new chats.  if it can't be done in coldfusion,

then i'll have to look elsewhere.  thanks.

jason
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: chat room application

2001-04-05 Thread Costas Piliotis

Isn't there a meta-tag that forces a refresh?

How about using the setInterval javascript method?

You're right though, an Applet is the best way to write this...

-Original Message-
From: Clint Tredway [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 05, 2001 1:25 PM
To: CF-Talk
Subject: Re: chat room application


you have to refresh the page to get new messages. browsers don't work any
other way. to do this you need an applet to do what you want. 

I built a simple chat application for this reason. 

-- Original Message --
From: "Jason Green" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Thu, 05 Apr 2001 18:38:07 -

does anyone know of a place where i can find information about writing a 
chat room in coldfusion?  or has anyone done this?  i'm looking for 
something that would be like MSN Messenger, but not having to refresh the 
page all the time to view the new chats.  if it can't be done in coldfusion,

then i'll have to look elsewhere.  thanks.

jason
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: chat room application

2001-04-05 Thread Dylan Bromby

you can do it by auto refreshing a message pane with the META tag. if you
want persistence, you should use something like Java or Flash.

-Original Message-
From: Jason Green [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 11:38 AM
To: CF-Talk
Subject: chat room application


does anyone know of a place where i can find information about writing a
chat room in coldfusion?  or has anyone done this?  i'm looking for
something that would be like MSN Messenger, but not having to refresh the
page all the time to view the new chats.  if it can't be done in coldfusion,
then i'll have to look elsewhere.  thanks.

jason
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: chat room application

2001-04-05 Thread Howie Hamlin

Fusetalk does this but it's commercial.

www.e-zonemedia.com

HTH,

Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc.
www.CoolFusion.com
631-737-4668 x101
inFusion Mail Server (iMS) - the World's most configurable mail server


- Original Message -
From: "Jason Green" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, April 05, 2001 2:38 PM
Subject: chat room application


> does anyone know of a place where i can find information about writing a
> chat room in coldfusion?  or has anyone done this?  i'm looking for
> something that would be like MSN Messenger, but not having to refresh the
> page all the time to view the new chats.  if it can't be done in
coldfusion,
> then i'll have to look elsewhere.  thanks.
>
> jason
>
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: chat room application

2001-04-05 Thread Clint Tredway

you have to refresh the page to get new messages. browsers don't work any other way. 
to do this you need an applet to do what you want. 

I built a simple chat application for this reason. 

-- Original Message --
From: "Jason Green" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Thu, 05 Apr 2001 18:38:07 -

does anyone know of a place where i can find information about writing a 
chat room in coldfusion?  or has anyone done this?  i'm looking for 
something that would be like MSN Messenger, but not having to refresh the 
page all the time to view the new chats.  if it can't be done in coldfusion, 
then i'll have to look elsewhere.  thanks.

jason
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists