>
>Thanks for your help, Spike.
>
>Let me clean up after myself!
>
>>
>>I was looking for a non-flash solution. I personally really 
>like flash 
>>but I don't often get to code for myself and want to try straight to 
>>the browser if possible ...
>>
>
>Translates as:
>Some of my clients are specifically asking for non-flash 
>implementations of their applications so I want to know of an 
>alternative route.
>

Yes, that makes a bit more sense. In that case a java applet would probably
be the most sensible alternative to Flash. My guess is that if someone's
browser permits neither Java nor Flash you're not going to have a lot of
luck with any other alternative either, so having both a java and flash
option for the comms proxy should cover you pretty well. The flash one will
load a lot faster and as mentioned before will be easier to write, so I'd
still suggest having it there as an option. It would also allow you to have
the rest of the system working when you write the applet. That way you can
narrow down the possible causes of problems to the applet itself.

>
>>So it might be possible to do something like this ...
>>
>>1, Instantiate the java chat server from CF - maybe even have 
>a CF GUI 
>>for an admin or two.
>>
>
>Translates as:
>There will be a need to instantiate the Java chat server once. 
>The ColdFusion generated HTML would probably have controls 
>that could start/stop the chat server - and as you say to find 
>out how many clients are connected.

Yes, The simplest implementation of this is to use CFEXECUTE to run a batch
file that starts or stops the chat server. Once the server is up and running
you'd need to have some way of talking to the server from CF. Off the top of
my head I'd say the most likely implementation would be to write a class
that CF can instantiate. That class would have public methods that CF could
call to connect to the server and issue commands.

>
>
>Hope this clears things up a bit and thanks again,

Yep, that's clearer now.

You're welcome

Spike

>
>Sam
>
>
>-----Original Message-----
>From: Stephen Milligan [mailto:[EMAIL PROTECTED]
>Sent: 23 April 2004 18:52
>To: [EMAIL PROTECTED]
>Subject: RE: [ cf-dev ] push / pull in CF
>
>
>>
>>I was looking for a non-flash solution. I personally really 
>like flash 
>>but I don't often get to code for myself and want to try straight to 
>>the browser if possible ...
>>
>
>I really don't understand what you mean here.
>
>>So it might be possible to do something like this ...
>>
>>1, Instantiate the java chat server from CF - maybe even have 
>>a CF GUI for an admin or two.
>>
>
>Probably not such a good idea. Why would you want to create an 
>instance from
>CF?
>
>It's a bit like saying you want to have CF create an instance of a mail
>server. The chat client isn't going to talk to CF at all, so it doesn't
>really make much sense to have CF creating an instance of it. Having an
>admin GUI that is generated by CF makes some sort of sense. 
>You might want
>to use CF to interrogate the chat server to find out how many 
>clients are
>connected and to generate a HTML page showing summary details 
>for each of
>them.
>
>>
>>2, Embed an applet in a CF page (could even by HTML?) that 
>>deals with setting up a client socket and can call to a 
>>JavaScript function to update the interface when it receives a 
>>message from the server
>
>If you're going to do this you could write the comms proxy for 
>the client in
>either Flash or as an Applet. Again, I'd suggest using Flash. 
>It's an order
>of maginitude simpler. Then again, if it's a personal project 
>that you're
>doing just to learn new stuff an Applet will give you more of that.
>
>
>>
>>
>>3, Do all the display updating using JavaScript.
>
>You could write the comms proxy so it calls a JavaScript 
>function when it
>recieves new data, so this is certainly feasible.
>
>>
>>
>>Did you mean that it might be possible to replace the applet 
>>(which is not used as a gui in this case - only for comms), 
>>with some JavaScript? Do you know of any resources / tutorials 
>>for this?
>
>
>
>If you don't mind using Mozilla as the browser you could go 
>and have a look
>at the chatZilla project
>http://www.mozilla.org/projects/rt-messaging/chatzilla/
>
>I expect there's something similar for Internet Explorer, but 
>a quick search
>on google didn't bring anything up.
>
>Spike
>
>>
>>Thanks,
>>
>>Sam
>>
>>-----Original Message-----
>>From: Stephen Milligan [mailto:[EMAIL PROTECTED]
>>Sent: 23 April 2004 17:56
>>To: [EMAIL PROTECTED]
>>Subject: RE: [ cf-dev ] push / pull in CF
>>
>>The chat client I wrote for it uses Flash and takes advantage 
>>of XMLSocket() so the server can push changes out to any 
>>connected clients. Neither the client nor the server make 
>>regular scheduled refresh requests. The requests are triggered 
>>by some user input to one of the connected clients.
>>
>>You could build the client as a java applet if you wanted to, 
>>but I found that Flash is much better suited to building the 
>>UI for a chat client than Java.
>>
>>I think you can also use a signed JavaScript file to do socket 
>>level stuff, but again Flash just seems like an easier option.
>>
>>The chat client and server part is relatively straightforward. 
>>The tricky bit is how you want this to hook up to ColdFusion.
>>
>>Spike
>>
>>>-----Original Message-----
>>>From: 
>>>[EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED]
>>>o.uk] On Behalf Of Sam Westlake
>>>Sent: Friday, April 23, 2004 8:39 AM
>>>To: [EMAIL PROTECTED]
>>>Subject: RE: [ cf-dev ] push / pull in CF
>>>
>>>Well, I am still trying to get my head around the edges of what's 
>>>possible in CF.
>>>
>>>A chat server sounds good ... does it force the client to update or 
>>>does each client refresh every n seconds?
>>>
>>>I guess that you would instantiate a ServerSocket object on 
>>the server 
>>>with a port number, as in a standard Java app, but can you 
>>implement a 
>>>Socket object on each client?
>>>
>>>Would this invovle having to use an applet on the client instead?
>>>
>>>-----Original Message-----
>>>From: Stephen Milligan [mailto:[EMAIL PROTECTED]
>>>Sent: 23 April 2004 17:16
>>>To: [EMAIL PROTECTED]
>>>Subject: RE: [ cf-dev ] push / pull in CF
>>>
>>>I have written a lightweight socket based chat server in Java that 
>>>could be modified to do something like this. How to go about 
>>modifiying 
>>>it would depend on exactly what it is that you want to do.
>>>
>>>Can you provide any more info?
>>>
>>>Spike
>>>
>>>
>>>>-----Original Message-----
>>>>From: 
>>>>[EMAIL PROTECTED]
>>>>[mailto:[EMAIL PROTECTED]
>>>>o.uk] On Behalf Of Sam Westlake
>>>>Sent: Friday, April 23, 2004 7:59 AM
>>>>To: [EMAIL PROTECTED]
>>>>Subject: [ cf-dev ] push / pull in CF
>>>>
>>>>Has anyone tried to implement any push-from-the-server type 
>apps. in 
>>>>ColdFusion?
>>>> 
>>>>I have found Java components that can be accesed from CF for
>>>connecting
>>>>to other servers but I want to try and set up some sort of 
>>>>socket-widget-thingy that will allow the CF server to push
>>>data back to
>>>>a web browser. Like the XMLSocket in available in flash?
>>>> 
>>>>Any thoughts?
>>>>
>>>
>>>
>>>--
>>>These lists are syncronised with the CFDeveloper forum at 
>>>http://forum.cfdeveloper.co.uk/
>>>Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>>> 
>>>CFDeveloper Sponsors and contributors:- *Hosting and support 
>provided 
>>>by CFMXhosting.co.uk* ::
>>>*ActivePDF provided by activepdf.com*
>>>      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
>>>proworkflow.com*
>>>           *Tutorials provided by helmguru.com* :: *Lists hosted by
>>>gradwell.com*
>>>
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>--
>>>These lists are syncronised with the CFDeveloper forum at 
>>>http://forum.cfdeveloper.co.uk/
>>>Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>>> 
>>>CFDeveloper Sponsors and contributors:- *Hosting and support 
>provided 
>>>by CFMXhosting.co.uk* ::
>>>*ActivePDF provided by activepdf.com*
>>>      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
>>>proworkflow.com*
>>>           *Tutorials provided by helmguru.com* :: *Lists hosted by
>>>gradwell.com*
>>>
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>>--
>>These lists are syncronised with the CFDeveloper forum at 
>>http://forum.cfdeveloper.co.uk/
>>Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>> 
>>CFDeveloper Sponsors and contributors:-
>>*Hosting and support provided by CFMXhosting.co.uk* :: 
>>*ActivePDF provided by activepdf.com*
>>      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
>>proworkflow.com*
>>           *Tutorials provided by helmguru.com* :: *Lists hosted by
>>gradwell.com*
>>
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>--
>>These lists are syncronised with the CFDeveloper forum at 
>>http://forum.cfdeveloper.co.uk/
>>Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>> 
>>CFDeveloper Sponsors and contributors:-
>>*Hosting and support provided by CFMXhosting.co.uk* :: 
>>*ActivePDF provided by activepdf.com*
>>      *Forums provided by fusetalk.com* :: *ProWorkFlow 
>>provided by proworkflow.com*
>>           *Tutorials provided by helmguru.com* :: *Lists 
>>hosted by gradwell.com*
>>
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>
>
>
>-- 
>These lists are syncronised with the CFDeveloper forum at
>http://forum.cfdeveloper.co.uk/
>Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
>CFDeveloper Sponsors and contributors:-
>*Hosting and support provided by CFMXhosting.co.uk* :: 
>*ActivePDF provided
>by activepdf.com*
>      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
>proworkflow.com*
>           *Tutorials provided by helmguru.com* :: *Lists hosted by
>gradwell.com*
>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>
>
>
>-- 
>These lists are syncronised with the CFDeveloper forum at 
>http://forum.cfdeveloper.co.uk/
>Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
>CFDeveloper Sponsors and contributors:-
>*Hosting and support provided by CFMXhosting.co.uk* :: 
>*ActivePDF provided by activepdf.com*
>      *Forums provided by fusetalk.com* :: *ProWorkFlow 
>provided by proworkflow.com*
>           *Tutorials provided by helmguru.com* :: *Lists 
>hosted by gradwell.com*
>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>


-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to