(OT) Problem in displayiing on the browser
Anonymous Monk
created: 2006-05-03 00:41:37
Hi monks,
In our application, we are generating 2 types of reports. One is tabular & other is text. Tabular report is getting generated & displayed properly on the browser. But if I try to generate Text report, Instead of displaying the report on the browser, it prompts whether to save or open the file.
Is this the problem with browser settings? If so what is that I need to change?
Thanks in advance

2006-05-03 Retitled by g0n, as per Monastery guidelines
Original title: 'Problem in displayiing on the browser'

Re: (OT) Problem in displayiing on the browser
created: 2006-05-03 01:32:39
Are you specifying a "Content-type" at the beginning of your TEXT report ?

     "For every complex problem, there is a simple answer ... and it is wrong." --H.L. Mencken

Re^2: (OT) Problem in displayiing on the browser
created: 2006-05-03 01:55:04
Yes. Content-type: text/plain\n\n for text report. Content-type: text/html\n\n for tabular report
Re: (OT) Problem in displayiing on the browser
created: 2006-05-03 01:59:52
Hi

This will happen in the following scenario also. If you have not coded your embeded HTML tags inside perl, you will get this error. To avoid this you have to re-look your HTML code which is responsible for creating the reports.

"Keep pouring your ideas"
Re^2: (OT) Problem in displayiing on the browser
created: 2006-05-03 02:51:33
This solved the problem. Thanks a lot
Re: (OT) Problem in displayiing on the browser
created: 2006-05-03 02:27:38
You could just do HTML format for both and put
tags around your text. The advantage of this is you can display your reports as basic text - thus massively speeding up display time if your reports are large - but still insert images and markup wherever needed.

perlmonks.org content © perlmonks.org and Anonymous Monk, jesuashok, NetWallah, TedPride

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03