Solved

Migrated to Coldfusion 10 - PQgrid stopped displaying data

Posted on 2015-01-07
4
65 Views
Last Modified: 2015-02-24
We recently migrated to CF 10.  Using jquery 1.11 and PQgrid, I displayed a list of people.  It has stopped displaying the list of people.  On the CFC call I get the following error:
 ColdFusion was unable to add the text you specified to the output stream.  This is probably because you have already used a CFFLUSH tag in your template or buffered output is turned off.

If I take out my cfhtmlhead tag that puts the Javascript in the head, the grid doesn't show at all.

All of the pages on the site go through a default template that puts a dashboard at the top of the page.  Everything else is added using cfinclude.  That's why it's necessary to use cfhtmlhead.  There are other things I could do to get the javascript in the head, but I want to understand the problem.

I had the same error on another page and change the Maximum Buffer Size to 4096 to solve the problem.  Something has to be wrong when it takes 4mg to load a page.
0
Comment
Question by:lanterv
  • 3
4 Comments
 

Expert Comment

by:M Amir
Comment Utility
There is a configuration setting that is necessary for the <cfflush> tag to work properly with the web server. On the Configuring web servers in Windows documentation page, under the Configure IIS for ColdFusion in Windows section, among other things it states:


To disable webserver buffer, change the is_buffer_enable to false in the cfroot\config\wsconfig\1\isapi_redirect.properties file. Disable webserver buffer if you want cfflush to work over an IIS connector. If your application does not use cfflush, set it to true for increase in the performance.
 
You will need to restart IIS for this change to take affect.

I'm not sure what the performance ramifications are of disabling this setting. You will need to do some load testing for your particular environment to see.
0
 

Author Comment

by:lanterv
Comment Utility
I'm not using cfflush.  I am using cfhtmlhead.
0
 

Accepted Solution

by:
lanterv earned 0 total points
Comment Utility
I had to wrap my OnRequestEnd.cfm to check for .cfc so it won't add html after a function call.
0
 

Author Closing Comment

by:lanterv
Comment Utility
No further responses.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now