1 person found this helpful
Well with normal HTTP web applications there is no way to push new data to a client. Because the client does not remain connected to the server between requests so the server has no pipe to which it can push the data.
If you want true data push from server to client you need to use some technology beyond a basic http connection. Adobe's tool for this type of feature is the Flex|Flash|Air client that maintains a connection to the server that data can be pushed through.
If you do not want to go into a Flex|Flash|Air, you will have to work with a client app that pulls the data with new requests on a regular cycle. If you would like this request to be done behind the scenes so that the browser interface does not need to refresh for each request, then yes AJAX would be a common tool to allow behind the scene requests.
So yes, ColdFusion 9's new ORM feature is not going to provide any ability to pull or push the data to the client, though it could be very handy on the backend of the system where the data is getting pulled or pushed from.
Ne way, this is the "Fast and dirty" solution, but i want to use ajax one, where should i start investigating the way to do the Asynchronous push or pull to the client?, basically i need some sort of "task" to run this query every 2 seconds and push (or pull) the info to the client.
Your down and dirty way is another way to have the client make new requests for new data on specified cycle. I.E. a data pull model.
Yes you could use the ColdFusion <CFAjaxProxy...> or other ColdFusion features that help you build AJAX functionally into your applications.
I feel important to note that these tools are just abstracting how one builds AJAX into wizards and auto-magically generated code. This is all well and good and can be a great time saver. But one should understand the realities going on under the hood so that one can better deal with unexpected behavior.
Very "illuminating" info
Thnx a ton!