Skip to main content
October 25, 2011
Question

Displaying realtime data changes

  • October 25, 2011
  • 2 replies
  • 678 views

Hi all,

Im fixing to start a project that will require the data changes to be displayed realtime. When an employee logs in at different areas of the plant, that info is written to the database and a main office monitoring station will display his where abouts. I dont want to do browsers refreshes if I can help it. Someone may already know of an app that does this. Keeping Coldfusion in mind, can someone point me in the right direction. Tutorials and examples are always good.

Thanks for any and all help.

Brian

This topic has been closed for replies.

2 replies

Sean Coyne
Participating Frequently
October 25, 2011

Since you don't want the browser to refresh I would suggest you use a Javascript solution.  You can use the setTimeout function to execute a function every "x" seconds.  You could use that to run a function that calls a CFC via AJAX and use the results to update your display.  jQuery will make this easier, but is not required and all the well known javascript libraries have ajax functionality baked in.

Inspiring
October 25, 2011

There are a couple of approaches for the constantly changing part.  You could use frames or iframes.  Alternatively you could use ajax to talk to ColdFusion to get the data and write the display to a <div>