c# - Coldfusion - How to update Table Cells in Real time? -


i relatively new coldfusion (using coldfusion 10) , have question regarding creating real-time updated table.

currently have c# application have writing stock prices csv (text) file every 2 seconds , reflect these changes happen in table on web page. know have entire table refresh every 2 seconds, generate lot of requests server , know if there better way of doing ? achieved using coldfusion 10's new html5 web-sockets functionality ?

any advice/guidance on way proceed or how achieve appreciated !

thanks, alanjames.

i think rewrite question , @ least 5 answers in first hour.

now answer it, if understood you're asking.

imho websockets aren't there yet, if website wide population , not 100% sure they're coming recent chrome or ff, forget it.

you use javascript websocket library gracefully fallback flash or ajax http polling, http://socket.io/ or cloud service pusher.com . complicate life because have 2-3 times more work in backend if implement polling , websocket.

regarding amount of requests, if want real time data on screen, gotta have server support it.

you optimize if request once , refresh data table, not per cell. you'd new data @ once , update cells changed jquery. not pulling data again, or whole table html, minimal amount of data.

ajax polling amount of requests, time of request being open possible problem though. polling blazeds in coldfusion 9.

some pages at:

http://www.bennadel.com/blog/2351-coldfusion-10-using-websockets-to-push-a-message-to-a-target-user.htm

http://www.bennadel.com/blog/1956-very-simple-pusher-and-coldfusion-powered-chat.htm

http://nil.checksite.co.uk/index.cfm/2010/1/28/cf-blazeds-ajax-longpolling-part1


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -