Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

cfcontent generated unwanted script header

$
0
0

I have this weird thing happened to cfcontent.

<cfheader name="Content-Disposition" value="attachment;filename=#LSDateFormat(now(),"mm.dd.yy")#.txt">


<cfcontent type="text/plain">
<cfoutput>test_1,test_2,test_3,timestamp#chr(10)#</cfoutput>

 

This is what generated in the txt file.  It generated the output which I want but also generated the default cfide scripts.  How would I suppress and generate only the output stuff?  Thanks.

 

<script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/masks.js"></script>
<script type="text/javascript">
<!--
    _CF_checkheader_search = function(_CF_this)
    {
        //reset on submit
        _CF_error_exists = false;
        _CF_error_messages = new Array();
        _CF_error_fields = new Object();
        _CF_FirstErrorField = null;


        //display error messages and return success
        if( _CF_error_exists )
        {
            if( _CF_error_messages.length > 0 )
            {
                // show alert() message
                _CF_onErrorAlert(_CF_error_messages);
                // set focus to first form error, if the field supports js focus().
                if( _CF_this[_CF_FirstErrorField].type == "text" )
                { _CF_this[_CF_FirstErrorField].focus(); }

            }
            return false;
        }else {
            return true;
        }
    }
//-->
</script>

test_1,test_2,test_3,timestamp


Viewing all articles
Browse latest Browse all 5794

Trending Articles