Known Issue with Internet Explorer and Plain Text Content

If the content type for a file is set to text/plain in the HTTP header and the file name ends with .ssp or .ss extension (in the response header or URL), Internet Explorer might try to save the file instead of showing it inline.

This is a known issue with Internet Explorer 9 and might happen in earlier versions too. This issue doesn't happen with files that have HTML content instead of plain text.

Note:

For more information on SuiteScript 1.0, see SuiteScript 1.0 Guide.

To ensure that Internet Explorer shows the file contents inline, use response.setContentType() to rename the file with a .txt extension, like in this example:

          function service(request, response)
{
        response.setContentType('PLAINTEXT', 'my_SSP.txt', 'inline');
        response.writeLine('hey');
} 

        

Related Topics

General Notices