Hussain,

The problem is IE won't display a table until all content is in. FF will load 
the table as the data arrives.

To get past this problem try putting this at the top of the page in question:

<cfflush interval="1000">  <!--- number of bytes --->

Michael

 From the docs:


Usage 

The first occurrence of this tag on a page sends back the HTML headers and any 
other available HTML. Subsequent cfflush tags on the page send only the output 
that was generated after the previous flush. 

When you flush data, ensure that enough information is available, as some 
browsers might not respond if you flush only a small amount. Similarly, set the 
interval attribute for a few hundred bytes or more, but not thousands of bytes. 

Use the interval attribute only when a large amount of output will be sent to 
the client, such as in a cfloop or a cfoutput of a large query. Using this form 
globally (such as in the Application.cfm file) might cause unexpected errors 
when CFML tags that modify HTML headers are executed. 

Caution:   Because the cfflush tag sends data to the browser when it executes, 
it has several limitations, including the following: Using any of the following 
tags or functions on a page anywhere after the cfflush tag can cause errors or 
unexpected results: cfcontent, cfcookie, cfform, cfheader, cfhtmlhead, 
cflocation, and SetLocale. (These tags and functions normally modify the HTML 
header, but cannot do so after a cfflush tag, because the cfflush sends the 
header.) Using the cfset tag to set a cookie anywhere on a page that has a 
cfflush tag does not set the cookie in the browser. Using the cfflush tag 
within the body of several tags, including cfsavecontent, cfquery, and custom 
tags, cause errors. If you save Client variables as cookies, any client 
variables that you set after a cfflush tag are not saved in the browser. 

Note:   Normally, the cferror tag discards the current output buffer and 
replaces it with the contents of the error page. The cfflush tag discards the 
current buffer. As a result, the Error.GeneratedContent variable resulting from 
a cferror tag after a cfflush contains any contents of the output buffer that 
has not been flushed. This content is not sent to the client. The content of 
the error page displays to the client after the bytes that have been sent. 






At 07:10 AM 2/6/2007, you wrote:
>I am working on a coldfusion page in which I am displaying the Query result on 
>the screen in a table.But before displaying the data in the cells I am 
>performing some checks on it.So by the time the browser displays the 100 
>records on the screen it eats up lot of time.
>I tried creating table for each row so that the data is displayed as it 
>fetches it but here the problem is aligning successive tables.So the screen is 
>cluttered as there is no alignment of the tables.
>Following is the sample code which I tried:-
><cfoutput query="Counter" startrow="1" maxrows="100">
><table>
><tr>
><td>.....</td>
><td>.....</td>
></tr>
><tr>
><td>.....</td>
><td>.....</td>
></tr>
></table>
></cfoutput>
>
>Is there any other alternative to this?
>
>Thanks in advance,
>Hussain.
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http: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:268820
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to