No, I'll call you...
Ok, so I am working on some very long reports and am peddling ideas... Here's the idea: The user runs a very long report, and the request will simply be placed in some sort of queue to be ran asynchronously. The user is told he/she will be notified when it is completed. Then the user surfs away to another portion of the site. Half an hour later when the report finishes, a message pops up on the users screen saying Your report is finished, you may view the result now. My first thought was I could place a receiver JavaScript function in every page in the site, then make an Ajax call to run the report. When the Ajax call returned, it would fire the function and display/alert the message. Well, no dice on that. I tried it in IE and FF. IE actually leaves the TCP connections open until the call returns, but there is nothing listening to receive it. FF actually threw an unhappy error when I tried to navigate away while the call was going, and then it closed the TCP connection. I'm really afraid the correct answer to this is The web is stateless. What you need is a client server app. Convert your entire site to Flex 2 Enterprise and use their sweet messaging services and all your woes will disappear Now, as much as I would like to do that, that's not really an option right now. Any suggestions? ~Brad ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264743 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: No, I'll call you...
I am considering something very similar. My only thought is running a tasks to process the report requests and then send en email to the user with a link to the results. But my problem is some users do not want to wait. So I am considering showing a subset of records and say you can either restructure the request to limit the amount of data or submit it as a request and we will send you the email blah blah Would love to hear other feedback on this topic. -Original Message- From: Brad Wood [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 11:50 AM To: CF-Talk Subject: No, I'll call you... Ok, so I am working on some very long reports and am peddling ideas... Here's the idea: The user runs a very long report, and the request will simply be placed in some sort of queue to be ran asynchronously. The user is told he/she will be notified when it is completed. Then the user surfs away to another portion of the site. Half an hour later when the report finishes, a message pops up on the users screen saying Your report is finished, you may view the result now. My first thought was I could place a receiver JavaScript function in every page in the site, then make an Ajax call to run the report. When the Ajax call returned, it would fire the function and display/alert the message. Well, no dice on that. I tried it in IE and FF. IE actually leaves the TCP connections open until the call returns, but there is nothing listening to receive it. FF actually threw an unhappy error when I tried to navigate away while the call was going, and then it closed the TCP connection. I'm really afraid the correct answer to this is The web is stateless. What you need is a client server app. Convert your entire site to Flex 2 Enterprise and use their sweet messaging services and all your woes will disappear Now, as much as I would like to do that, that's not really an option right now. Any suggestions? ~Brad ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264748 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: No, I'll call you...
This probably isn't what you want either, but... You could have your report program write to a table when it's complete. The record would consist of who needs to be notified, and the status of their notification. Maybe the session ID or some session variable could be stored. Then you could have a javascript function that you include at the top of every page (like from the Application.cfm) that fires off an ajax call to check this table for the presence of finished jobs that belong to the current session or user or whatever. Does that sound feasible? Cheers, Chris Brad Wood wrote: Ok, so I am working on some very long reports and am peddling ideas... Here's the idea: The user runs a very long report, and the request will simply be placed in some sort of queue to be ran asynchronously. The user is told he/she will be notified when it is completed. Then the user surfs away to another portion of the site. Half an hour later when the report finishes, a message pops up on the users screen saying Your report is finished, you may view the result now. My first thought was I could place a receiver JavaScript function in every page in the site, then make an Ajax call to run the report. When the Ajax call returned, it would fire the function and display/alert the message. Well, no dice on that. I tried it in IE and FF. IE actually leaves the TCP connections open until the call returns, but there is nothing listening to receive it. FF actually threw an unhappy error when I tried to navigate away while the call was going, and then it closed the TCP connection. I'm really afraid the correct answer to this is The web is stateless. What you need is a client server app. Convert your entire site to Flex 2 Enterprise and use their sweet messaging services and all your woes will disappear Now, as much as I would like to do that, that's not really an option right now. Any suggestions? ~Brad ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264752 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: No, I'll call you...
We have a similar architecture at my work where those long reports are sent as an Async request (Async Gateway) and then user is notified via email when reports are complete. Thanks On 12/21/06, Christopher Jordan [EMAIL PROTECTED] wrote: This probably isn't what you want either, but... You could have your report program write to a table when it's complete. The record would consist of who needs to be notified, and the status of their notification. Maybe the session ID or some session variable could be stored. Then you could have a javascript function that you include at the top of every page (like from the Application.cfm) that fires off an ajax call to check this table for the presence of finished jobs that belong to the current session or user or whatever. Does that sound feasible? Cheers, Chris Brad Wood wrote: Ok, so I am working on some very long reports and am peddling ideas... Here's the idea: The user runs a very long report, and the request will simply be placed in some sort of queue to be ran asynchronously. The user is told he/she will be notified when it is completed. Then the user surfs away to another portion of the site. Half an hour later when the report finishes, a message pops up on the users screen saying Your report is finished, you may view the result now. My first thought was I could place a receiver JavaScript function in every page in the site, then make an Ajax call to run the report. When the Ajax call returned, it would fire the function and display/alert the message. Well, no dice on that. I tried it in IE and FF. IE actually leaves the TCP connections open until the call returns, but there is nothing listening to receive it. FF actually threw an unhappy error when I tried to navigate away while the call was going, and then it closed the TCP connection. I'm really afraid the correct answer to this is The web is stateless. What you need is a client server app. Convert your entire site to Flex 2 Enterprise and use their sweet messaging services and all your woes will disappear Now, as much as I would like to do that, that's not really an option right now. Any suggestions? ~Brad ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264753 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: No, I'll call you...
Isn't this what the Event Gateway in ColdFusion could be used for? Either the CFML or a combo of the CFML and Directory Watcher. This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Christopher Jordan To: CF-Talk Sent: Thu Dec 21 17:04:02 2006 Subject: Re: No, I'll call you... This probably isn't what you want either, but... You could have your report program write to a table when it's complete. The record would consist of who needs to be notified, and the status of their notification. Maybe the session ID or some session variable could be stored. Then you could have a javascript function that you include at the top of every page (like from the Application.cfm) that fires off an ajax call to check this table for the presence of finished jobs that belong to the current session or user or whatever. Does that sound feasible? Cheers, Chris Brad Wood wrote: Ok, so I am working on some very long reports and am peddling ideas... Here's the idea: The user runs a very long report, and the request will simply be placed in some sort of queue to be ran asynchronously. The user is told he/she will be notified when it is completed. Then the user surfs away to another portion of the site. Half an hour later when the report finishes, a message pops up on the users screen saying Your report is finished, you may view the result now. My first thought was I could place a receiver JavaScript function in every page in the site, then make an Ajax call to run the report. When the Ajax call returned, it would fire the function and display/alert the message. Well, no dice on that. I tried it in IE and FF. IE actually leaves the TCP connections open until the call returns, but there is nothing listening to receive it. FF actually threw an unhappy error when I tried to navigate away while the call was going, and then it closed the TCP connection. I'm really afraid the correct answer to this is The web is stateless. What you need is a client server app. Convert your entire site to Flex 2 Enterprise and use their sweet messaging services and all your woes will disappear Now, as much as I would like to do that, that's not really an option right now. Any suggestions? ~Brad ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264754 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: No, I'll call you...
So, basically I would set a session variable which would tell my app to keep polling the server with Ajax until it found that the report had completed. Hmm that could work. scratches chin while thinking... ~Brad -Original Message- From: Christopher Jordan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 11:04 AM To: CF-Talk Subject: Re: No, I'll call you... This probably isn't what you want either, but... You could have your report program write to a table when it's complete. The record would consist of who needs to be notified, and the status of their notification. Maybe the session ID or some session variable could be stored. Then you could have a javascript function that you include at the top of every page (like from the Application.cfm) that fires off an ajax call to check this table for the presence of finished jobs that belong to the current session or user or whatever. Does that sound feasible? Cheers, Chris ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264756 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: No, I'll call you...
Yes, I believe so. But isn't that limited to CF Enterprise? We only have standard. *sigh* ~Brad -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 11:04 AM To: CF-Talk Subject: Re: No, I'll call you... Isn't this what the Event Gateway in ColdFusion could be used for? Either the CFML or a combo of the CFML and Directory Watcher. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264757 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: No, I'll call you...
Isn't the event gateway only available in CF7? If it fits though, and this is the sort of thing it was meant for, then... sweet! :o) Robertson-Ravo, Neil (RX) wrote: Isn't this what the Event Gateway in ColdFusion could be used for? Either the CFML or a combo of the CFML and Directory Watcher. This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Christopher Jordan To: CF-Talk Sent: Thu Dec 21 17:04:02 2006 Subject: Re: No, I'll call you... This probably isn't what you want either, but... You could have your report program write to a table when it's complete. The record would consist of who needs to be notified, and the status of their notification. Maybe the session ID or some session variable could be stored. Then you could have a javascript function that you include at the top of every page (like from the Application.cfm) that fires off an ajax call to check this table for the presence of finished jobs that belong to the current session or user or whatever. Does that sound feasible? Cheers, Chris Brad Wood wrote: Ok, so I am working on some very long reports and am peddling ideas... Here's the idea: The user runs a very long report, and the request will simply be placed in some sort of queue to be ran asynchronously. The user is told he/she will be notified when it is completed. Then the user surfs away to another portion of the site. Half an hour later when the report finishes, a message pops up on the users screen saying Your report is finished, you may view the result now. My first thought was I could place a receiver JavaScript function in every page in the site, then make an Ajax call to run the report. When the Ajax call returned, it would fire the function and display/alert the message. Well, no dice on that. I tried it in IE and FF. IE actually leaves the TCP connections open until the call returns, but there is nothing listening to receive it. FF actually threw an unhappy error when I tried to navigate away while the call was going, and then it closed the TCP connection. I'm really afraid the correct answer to this is The web is stateless. What you need is a client server app. Convert your entire site to Flex 2 Enterprise and use their sweet messaging services and all your woes will disappear Now, as much as I would like to do that, that's not really an option right now. Any suggestions? ~Brad ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264761 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: No, I'll call you...
Ah, yes. It is Ent only... :-( This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Brad Wood To: CF-Talk Sent: Thu Dec 21 17:14:18 2006 Subject: RE: No, I'll call you... Yes, I believe so. But isn't that limited to CF Enterprise? We only have standard. *sigh* ~Brad -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 11:04 AM To: CF-Talk Subject: Re: No, I'll call you... Isn't this what the Event Gateway in ColdFusion could be used for? Either the CFML or a combo of the CFML and Directory Watcher. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264762 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: No, I'll call you...
Mark Mandel has written an excellent library to perform Aynsc without CF Enterprise. http://www.compoundtheory.com/?action=asynchttp.index HTH On 12/21/06, Brad Wood [EMAIL PROTECTED] wrote: Yes, I believe so. But isn't that limited to CF Enterprise? We only have standard. *sigh* ~Brad -Original Message- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 11:04 AM To: CF-Talk Subject: Re: No, I'll call you... Isn't this what the Event Gateway in ColdFusion could be used for? Either the CFML or a combo of the CFML and Directory Watcher. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264763 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: No, I'll call you...
If your network will support it, I've done some messaging of this type with NET SEND called with cfexecute... tags. HTH -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264775 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: No, I'll call you...
Hmm, I hadn't thought of that. Net set works on my network, but can I do that from a Linux webserver? ~Brad -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 11:55 AM To: CF-Talk Subject: RE: No, I'll call you... If your network will support it, I've done some messaging of this type with NET SEND called with cfexecute... tags. HTH ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264790 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: No, I'll call you...
Brad, We've got an application where the user requests the report, and the actual report generation is handled by an asynchronous event gateway. When the gateway is done generating the report, it then generates an email to the user notifying them that their report is ready. Our users will have a Report Inbox page on the web that will be flex powered, and if they keep that screen up, the report just automatically appears there, but they're free to do other stuff while they're waiting. Rick ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264799 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: No, I'll call you...
Hmm, I hadn't thought of that. Net set works on my network, but can I do that from a Linux webserver? ~Brad I don't know. I don't get to play with Linux very often, but if it doesn't the web server maybe able to call the NET SEND from another machine if the appropriate paths and permissions are allowed. I have never played with this either. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - C code. C code run. Run code run. Please! - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Create robust enterprise, web RIAs. Upgrade integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264803 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4