I have a rather long form (1000 checkboxes) that the customer goes through to order.
But I get the following error when it goes over a certain limit (100 items):
Failed to add HTML header.ColdFusion was unable to add the header 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
Q: Is that an IIS setting or a ColdFusion administrator setting?
I did some research before posting this question, and it doesn’t have to do with AJAX and debug settings. All debug settings are turned off and I get the error on form submit.
Does your form POST or GET? If it’s a GET you may be maxing out the URL length limit. If it’s a POST, then you are probably running into the limit in CF on the number of form fields. This article details how to modify the value.
You may want to consider other ways of sending that data to the server. Perhaps using jQuery to serialise the form and send the JSON as a single parameter?