Josh,

>> When you POST something to script this script should echo back  content
>of
>> the div. Is your script echoing back extra newline.
>
>This is what was happening.  I am using ColdFusion for the backend and I
>had
>to set <cfsetting enablecfoutputonly = "yes"> to get rid of the extra junk.

Depending on your version of ColdFusion, you can use <cfcontent reset="true"
/> to flush the output stream. This is extremely handy to ensure all
whitespacing before your content stream is cleared.

Example:
Aslkdl
Asdk
Asldk
<cfcontent reset="true" />Hello World!

In the above example, the only content that would be rendered to the browser
is the phrase "Hello World!" All the content above the <cfcontent /> would
be removed from the stream.

I think the reset attribute was added in CFMX 6.1, but you can use native
Java code for all CFMX versions to accomplish the same thing.

-Dan

Reply via email to