"> http://wp.netscape.com/home/demo/1.1b1/pushpull.html
I got a "Page Not Found" error on the above URL." That URL still works for me? hmm... If the link I sent still doesn't work, just do a search for 'server-push' in google and I'm sure you'll find what I'm talking about. (http://www.google.com.au/search?q=server+push&ie=UTF-8&oe=UTF-8&hl=en&meta=) "If you want to create such a thing in CF just use <CFFLUSH> and keep constantly looping." using CFFLUSH in this way is a hack of 'client pull' - not 'server push' - and the effect would be very different. The idea is the browser downloads some content (eg. an image) and is told by the server not to close that connection. Then when that content changes, the server pushes out the new one, WITHOUT any client side refresh or javascript etc. In your case here you would probably be pushing the entire HTML content when the server updates. I am pretty sure you can't do this elegantly (if at all) in ColdFusion - the only implimentations I have tried myself were in Perl, using a similar method as CFSCHEDULE in a Unix CRON job. As I understand it, it used to be more popular, but it IS a standard thing to do. (eg. in most circumstances it's just easier to set a refresh header, or a meta refresh tag. - James -----Original Message----- From: Gary Menzel [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 8:45 AM To: CFAussie Mailing List Subject: [cfaussie] RE: Client refresh triggered by Server... > http://wp.netscape.com/home/demo/1.1b1/pushpull.html I got a "Page Not Found" error on the above URL. In any case, you want to use a "portable" mechanism to get updates from a server (so if this is Netscape/Browser specific - it isn't portable). Many servers just don't stop streaming data (evidenced by a progress bar that always remains half full and a top right icon spinning away continuously). These types of pages are very easy to create in PHP. If you want to create such a thing in CF just use <CFFLUSH> and keep constantly looping. As long as data is streaming then you wont get a timeout. However, this is not much good for "tidy" HTML pages where you want to go and update certain portions of the page. In this case, you would need one of the mechanisms described using a hidden IFRAME or FRAME to get your "streaming" data, decode it, and then deliver it via Javascript to the right portions of your page. The other (better?) option is to use XMLHTTP from Javascript. Then set up a timer to regularly do a call to the server and get back an XML/HTML packet that you then interpret and deliver. We are currently using the above technique for a full windowing system based in DHTML and it works very reliably. For an example of how this works (and a cross-browser class for XMLHTTP) check out the XLoadTree at http://webfx.eae.net And - in just checking to ensure WebFX is currently available I have discovered they have their own "Windows in HTML" project up and running. I'll have to check that out. Gary Menzel Web Development Manager IT Operations Brisbane -+- ABN AMRO Morgans Limited Level 29, 123 Eagle Street BRISBANE QLD 4000 PH: 07 333 44 828 FX: 07 3834 0828 **************************************************************************** If this communication is not intended for you and you are not an authorised recipient of this email you are prohibited by law from dealing with or relying on the email or any file attachments. This prohibition includes reading, printing, copying, re-transmitting, disseminating, storing or in any other way dealing or acting in reliance on the information. If you have received this email in error, we request you contact ABN AMRO Morgans Limited immediately by returning the email to [EMAIL PROTECTED] and destroy the original. We will refund any reasonable costs associated with notifying ABN AMRO Morgans. This email is confidential and may contain privileged client information. ABN AMRO Morgans has taken reasonable steps to ensure the accuracy and integrity of all its communications, including electronic communications, but accepts no liability for materials transmitted. Materials may also be transmitted without the knowledge of ABN AMRO Morgans. ABN AMRO Morgans Limited its directors and employees do not accept liability for the results of any actions taken or not on the basis of the information in this report. ABN AMRO Morgans Limited and its associates hold or may hold securities in the companies/trusts mentioned herein. Any recommendation is made on the basis of our research of the investment and may not suit the specific requirements of clients. Assessments of suitability to an individual's portfolio can only be made after an examination of the particular client's investments, financial circumstances and requirements. **************************************************************************** --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
