House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

How to output last line first

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
BG,
Greg Landers
05/22/04 09:26 P
> From: B G
Philip Arnold
05/23/04 07:44 A
Nando,
Greg Landers
05/23/04 10:30 A
> From: Greg Landers
Philip Arnold
05/23/04 11:22 A
Phillip,
Greg Landers
05/23/04 11:29 A
> From: B G
Philip Arnold
05/23/04 12:55 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
B G
05/22/2004 09:08 PM

Has anyone tried to present the output of a process so that the last line is at the top of the page? For example, I have a process that runs through thousands of records, I want the user to observe the results of each record.  In the CFLOOP I can CFFLUSH and print the results, but by default each new line is at the bottom of the page, thus creating a situation where the user will have to scroll to the end repeatedly.  But if that last result is printed at the top, the first records completed will be pushed to the bottom of the page and the user will not need to scroll at all. Thanks. BG

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Landers
05/22/2004 09:26 PM

BG, I think I understand the effect that you are wanting to create, but logically I don't see a way around it. I would look at one of two options: 1) try to configure your "process" to reverse the order before output begins ... or 2) maybe use JavaScript to scroll bump the page to the bottom/end every time that CFFLUSH throws HTML at the browser - that way, as the records are spewing out on the page, the page is automatically scrolling to the bottom with the output. There is probably a better way, but that is the first thing that comes to my mind.  : ) Thanks, Greg

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold
05/23/2004 07:44 AM

----- Excess quoted text cut - see Original Post for more ----- The problem is that HTML builds top-down, so as Greg suggested, you could have a JS push to the bottom of the page which will show progress If you wanted to show the last 10 entries or so, then you could have a JS function that is repeatedly called, handles in an array the "top down" approach - of course 10 is just an example, you could have much more Both of these reply on JS though

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Nando
05/23/2004 09:14 AM

I'd love to have a video of users' reactions as they watch their screen scroll down as every new record out of thousands hits their browser. Maybe you could generate a pop up with every JS autoscroll notifying them what's happening. :^) Just joking, of course. ----- Excess quoted text cut - see Original Post for more ----- The problem is that HTML builds top-down, so as Greg suggested, you could have a JS push to the bottom of the page which will show progress If you wanted to show the last 10 entries or so, then you could have a JS function that is repeatedly called, handles in an array the "top down" approach - of course 10 is just an example, you could have much more Both of these reply on JS though

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Landers
05/23/2004 10:30 AM

Nando, > I'd love to have a video of users' reactions as they watch their screen scroll down as every new record out of thousands hits their browser. Yes, I admit that I have not tried it, but I can imagine it being a pretty smooth effect. After thinking about it, let's say after about 100 records the user tries to scroll back to the top. It would be frustrating. But you could set an onClick event that ended the scroll bump effect returning scroll control to the user. Unfortunately, BG is looking for a CF solution and I am distracting everyone with this JS crap - I apologize. > Maybe you could generate a pop up with every JS autoscroll notifying them what's happening. :^) While we are joking about it, how about opening 3 more windows whenever the user closes one of the popups, telling them that they have closed a window. Wow, what a mess! hehehe Thanks, Greg

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold
05/23/2004 11:22 AM

----- Excess quoted text cut - see Original Post for more ----- How can it be just a CF solution? CF sends information to the browser, therefore it's a browser solution rather than a CF solution There is no straight HTML solution as all of the pages are top-down, therefore there HAS to be a more "advanced" solution

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Greg Landers
05/23/2004 11:29 AM

Phillip, > How can it be just a CF solution? CF sends information to the browser, therefore it's a browser solution rather than a CF solution Good point, thanks. Greg

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold
05/23/2004 12:55 PM

> From: B G > > Has anyone tried to present the output of a process so that > the last line is at the top of the page? Here's another idea Mix up the different suggestions 2 frames - one on the left with the "top down" approach I suggested, the right frame is just the long list with the JS code to "push" the left hand side The users would be able to scroll the right hand side to their heart's content, and still see the last x items on the left with the latest first :)

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Pascal Peters
05/24/2004 04:27 AM

I've done something like that for an app I wrote to convert files. 1. I flush the name of the file being processed wrapped in a div with an id. 2. With the next file being flushed, I flush a JS block to hide the div. 3. With the last record, I flush a bit of JS to display all divs. This shows a single line that changes all the time with the name of the file being processed. At the end, you see the whole list. Pascal ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference