|
>Message: 1 >Date: Tue, 17 Dec 2002 09:08:09 -0600 >From: Pete Prodoehl <[EMAIL PROTECTED]> >To: html-template-users <[EMAIL PROTECTED]> >Subject: Re: [htmltmpl] HTML-Pager and Netscape > > >If it works in IE, but not other browsers, it probably is the mime type, >IE often likes to 'guess' what the mime type might be, whether it's >correct or not. Other browsers tend to do the right thing, and honor the >mime type being served. >Pete
Howdy Pete!
Thanks for the insight into the browser differences. I also found that if you use the "print_to" option with the output method and the Content-type line together on the same line you get a 500 error. So You have to separate the two lines, only if you are using the "print_to" option. Here's an example:
## Line 16 - Works, if you are only using the bare output method. $tmpl->output() ## Line 16 Below. -- DOES NOT WORK ##print "Content-type: text/html\n\n", $tmpl->output(print_to => *STDOUT);
## Send Both the Content-type and template output method on separate lines. ## -- THIS WORKS WITH BOTH BROWSERS. print "Content-type: text/html\n\n"; ## Send Only the template output. -- THIS ONLY WORKS WITH IE CORRECTLY. $tmpl->output(print_to => *STDOUT);
I am not sure if this is only seen in IIS or not and it's not that big of a deal. I just wanted to note this for others using IIS and H:T.
-- Jeff Pelkey |
- [htmltmpl] HTML-Pager and Netscape Jeff Pelkey
- Re: [htmltmpl] HTML-Pager and Netscape Sam Tregar
- RE: [htmltmpl] HTML-Pager and Netscape Aranda, Christian
- Re: [htmltmpl] HTML-Pager and Netscape Pete Prodoehl
- Re: [htmltmpl] HTML-Pager and Netscape Jeff Pelkey
- Re: [htmltmpl] HTML-Pager and Netscape Roger Burton West
- Re: [htmltmpl] HTML-Pager and Netscape Jeff Pelkey
