(OT) Problem in displayiing on the browser
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
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
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
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
This solved the problem. Thanks a lot
Re: (OT) Problem in displayiing on the browser
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.