> Why a Web utility would default to outputting in application/*
> instead of text/* I cannot fathom.

Because this is the recommended approach according to W3C's 2002
guidelines:
http://www.w3.org/TR/xhtml-media-types/#application-xhtml-xml


> >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!
> 
> I wanted to edit the script to upgrade all the XHTML code to HTML 4
> (the ideal solution), but it seemed that the "magic" was being called
> from elsewhere, and was not actually in anlgform.pl itself. I assumed
> it was hardcoded into Analog's compiled file, but if it's external
> then I would appreciate if someone could identify the relevant text
> file(s) and their location....

You can't make this change in anlgform.pl - it's encoded into analog
under the 'CGI' behavior. In fact, all anlgform.pl does is put a
protective wrapper around Analog (as well as the form parsing) for CGI
use.

Also, to clarify Aengus's statement, I don't believe that adding a
Content-type header output in anlgform.pl will help as Analog will still
output it's own and I'm pretty certain that if more than one of the same
header is read, browsers generally take the last one.

You'll have to hack to source code to change this, or get into the web
server and override it. I can't recall for certain, but IIS may have
some ability to override headers from CGI's.

--

Jeremy Wadsack
Seven Simple Machines

+------------------------------------------------------------------------
|  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
+------------------------------------------------------------------------

Reply via email to