House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion real time data updates possible?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Akos Fortagh
06/03/2012 04:57 PM

Wondering if anyone has a good suggestion how I might be able to achieve the following without using flash if possible. I have a simple interface where logged in users fill out 10 multiple choice questions and at the end they get a score like 5 out of 10 etc. The odd thing is that they must be able to see other users' scores real time so it all becomes like a live competition. Is there a way of 'pushing' the other users' scores somehow to the logged in user's screen as soon as the 'other' users score some points?  Hopefully this all makes sense... Or am I thinking the impossible? Any help or suggestions would be much appreciated. Akos

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Bobby
06/03/2012 07:17 PM

If you are on CF10 (in which case, I'd be jealous), then look into the new WebSockets. If not, then I believe you will be stuck polling for changes on regular intervals to get the submissions of others. Here is an example of websockets in CF10. http://www.bennadel.com/blog/2351-ColdFusion-10-Using-WebSockets-To-Push-A- Message-To-A-Target-User.htm On 6/3/12 4:57 PM, "Akos Fortagh" <akos.fortagh@yahoo.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Raymond Camden
06/03/2012 07:59 PM

As Bobby mentioned, CF10 provides websockets (you can fid my blog posts on it here: http://www.raymondcamden.com/search.cfm?search=websockets). If you aren't on CF10, there are other options too. You can use Node.js and socket.io (http://socket.io/) just for websockets while still using CF. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paul Hastings
06/03/2012 09:33 PM

On 6/4/2012 6:59 AM, Raymond Camden wrote: > > As Bobby mentioned, CF10 provides websockets (you can fid my blog > posts on it here: > http://www.raymondcamden.com/search.cfm?search=websockets). If you > aren't on CF10, there are other options too. You can use Node.js and > socket.io (http://socket.io/) just for websockets while still using or you could just use cf: http://bit.ly/KJ0OTt and of course only if all your users are on browsers that are websocket capable, otherwise they fallback on, wait-for-it...flash.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Akos Fortagh
06/05/2012 03:41 AM

thank you for all your suggestions. much appreciated


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 18, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference