RE: page self refresh whenever database gets new input
> Flex LiveCycle Data Services > (http://www.adobe.com/products/livecycle/dataservices/) > allows the server to "push" messages to the client which > means a users page could refresh data without having to be > refreshed or "poll" the server. > > I'm not sure how they do it, but it might be similar to how > SeeFusion's Flex interface will stream data to the client > indefinitely by keeping a TCP connection open and pushing XML > down the pipe. They do it by using an asynchronous protocol. RTMP is the same protocol used by Flash Media Server and Connect. The server keeps track of registered connected clients, and broadcasts messages to all of those clients. You can approximate this functionality using AMF and polling, which is what the Messaging component of BlazeDS uses. You don't get messages immediately, though, since it's client-pull rather than server-push. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308269 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: page self refresh whenever database gets new input
This may be a hand grenade for your ant, but I've got to throw it out there since no one else has. Flex LiveCycle Data Services (http://www.adobe.com/products/livecycle/dataservices/) allows the server to "push" messages to the client which means a users page could refresh data without having to be refreshed or "poll" the server. I'm not sure how they do it, but it might be similar to how SeeFusion's Flex interface will stream data to the client indefinitely by keeping a TCP connection open and pushing XML down the pipe. ~Brad -Original Message- From: anthony tran [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 10:24 PM To: CF-Talk Subject: page self refresh whenever database gets new input Hi, I'm having a system that has two different consoles one for people input data, and other for people view data. One isn't connected to the other. Meaning, they work separatedly but at the same time. If there is a new input, then the new input will show on the diplay console right away, no need to hit any key nor button to refresh the page. The idea similar to MS Outlook. Whenever a new mail comes, it just shows up by itself. Or just like a stock reports with live feeding. Is there any way to do this in cold fusion ? Database is MS Access. Thanks Anthony ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307959 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: page self refresh whenever database gets new input
I can't give you sample code, no. It is far too broad a topic and there is heaps of info at the end of a search engine. However, the idea would be something like: Sys admin page Do Loop every x seconds Request user data through js ajax -> request would be to a url that would point to your cfm/cfc that will output the data (as either JSON or Xml) Update user data display End loop To do it this way with ajax you will need to do some learning. You need to know / do: a) Basic ajax fundamentals b) Pick an ajax library or use your own (libraries include, Spry, Ext, JQuery, cfajax...) and figure out how to use it c) Figure out how to load data using the library you choose and display it in page d) Figure out how to continually request the data at a given time interval I've have used Spry very briefly and have found it extremely easy to learn and quick to get going with. HTH Dominic 2008/6/21 anthony tran <[EMAIL PROTECTED]>: > Thanks, but forgive me, I don't know AJAX much. Coule you please give some > example code.? > Let's say: table user is used by both consoles, sys admin section and > enrole i CAN'T GIVEsection. Whenever a new user submit an enrolment, sys > admin can see the new user from the sys admin page > Thanks > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307910 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: page self refresh whenever database gets new input
I would jus have a periodic refresh of the page...there is nothing that could "detect" a change then cause a refresh that I could think of...though that would be cool. Set a metataq refresh to occur every x number of seconds as appropriate for the frequency of user input. Even outlook checks mail to see if there is new mail and refreshes the window with each check. If there is no email, you really don't see anything. Eric /*-Original Message- /*From: Will Tomlinson [mailto:[EMAIL PROTECTED] /*Sent: Saturday, June 21, 2008 12:20 AM /*To: CF-Talk /*Subject: Re: page self refresh whenever database gets new input /* /*he /*> idea similar to MS Outlook. Whenever a new mail comes, it just shows /*> up by itself. Or just like a stock reports with live feeding. /*> /*> Is there any way to do this in cold fusion ? Database is MS Access. /*> /*> Thanks /*> /* /*Sounds like you just need some SQL to show the newest items first. /* /*ORDER BY someIDField DESC /* /*Will /* /* ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307909 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: page self refresh whenever database gets new input
Thanks, but forgive me, I don't know AJAX much. Coule you please give some example code.? Let's say: table user is used by both consoles, sys admin section and enrole section. Whenever a new user submit an enrolment, sys admin can see the new user from the sys admin page Thanks ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307902 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: page self refresh whenever database gets new input
This would involve a client side language (ie. javascript) to repeatedly request the new info; ColdFusion can only act server side. I'd say some kind of AJAX setup will be the ideal solution as opposed to some javascript that constantly auto-refreshes the page. HTH Dominic 2008/6/21 Will Tomlinson <[EMAIL PROTECTED]>: > he > > idea similar to MS Outlook. Whenever a new mail comes, it just shows > > up by itself. Or just like a stock reports with live feeding. > > > > Is there any way to do this in cold fusion ? Database is MS Access. > > > > Thanks > > > > Sounds like you just need some SQL to show the newest items first. > > ORDER BY someIDField DESC > > Will > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307901 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: page self refresh whenever database gets new input
he > idea similar to MS Outlook. Whenever a new mail comes, it just shows > up by itself. Or just like a stock reports with live feeding. > > Is there any way to do this in cold fusion ? Database is MS Access. > > Thanks > Sounds like you just need some SQL to show the newest items first. ORDER BY someIDField DESC Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307898 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
page self refresh whenever database gets new input
Hi, I'm having a system that has two different consoles one for people input data, and other for people view data. One isn't connected to the other. Meaning, they work separatedly but at the same time. If there is a new input, then the new input will show on the diplay console right away, no need to hit any key nor button to refresh the page. The idea similar to MS Outlook. Whenever a new mail comes, it just shows up by itself. Or just like a stock reports with live feeding. Is there any way to do this in cold fusion ? Database is MS Access. Thanks Anthony ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307894 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4