Rajamanickam S. <[EMAIL PROTECTED]> wrote:
> Many thanks Aengus.
>
> After adding the line
>
> OUTPUT HTML
>
> as you said, in to the analog.cfg, the report page now opens in IE.
I just tried running anlgform.pl at the command line, and, with default
settings, this is what the ouput looks like:
C:\Analog>anlgform.pl
Content-Type: application/xhtml+xml; charset=ISO-8859-1
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>.....
If I modify the analog.cfg file to specify OUTPUT HTML, then the
Content-Type: header is different:
C:\Analog>anlgform.pl
Content-Type: text/html; charset=ISO-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>....
The Content-Type: header is generated by Analog if CGI ON is set.
It appears that IE6 doesn't recognize the application/xhtml+xml Mime
type, (this appears to be "widely known" but not not explicitly
documented anywhere). As far as I can tell, IE7 doesn't recognize it
either. IE will display the XHTML pages that Analog produces - if it
didn't, the issue would have been addressed a long time ago! But because
IE doesn't know to do when it receives "Content-Type:
application/xhtml+xml" from the web server, it prompts the users to save
the file instead of displaying it.
According to http://analog.cx/docs/whatsnew.html, XHTML has been the
default output for Analog since March 2003 :-).
There are a couple of different ways to deal with this problem. The
simplest is to set OUTPUT HTML in the analog.cfg, which changes the
output for everyone. A slightly better solution might be to modify
anlgform.pl to set OUTPUT HTML when it is called from IE. A better
solution would be for anlgform.pl to return "Content-Type: text/html"
for IE browsers, while still generating the XHTML output. It shouldn't
be too hard to do, but I can barely read perl, never mind write the
stuff!
Aengus
+------------------------------------------------------------------------
| TO UNSUBSCRIBE from this list:
| http://lists.meer.net/mailman/listinfo/analog-help
|
| Analog Documentation: http://analog.cx/docs/Readme.html
| List archives: http://www.analog.cx/docs/mailing.html#listarchives
| Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------