You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Bjørn T Johansen <bt...@havleik.no> on 2009/01/23 22:42:25 UTC
Re: [a bit off topic] Trying to use xhtml instead of html, problem
with IE?
Ok, but I tried changing the content type to text/html with no change in the outcome...
What else do I need to do to make IE work?
BTJ
On Fri, 23 Jan 2009 12:57:27 -0700
Andrew Robinson <an...@gmail.com> wrote:
> Most browsers need content type of text/html, even for XHTML
> documents. It is a bug in the browser.
>
> -Andrew
>
> On Fri, Jan 23, 2009 at 11:57 AM, Bjørn T Johansen <bt...@havleik.no> wrote:
> > When I use the following in my xhtml page..:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!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" xml:lang="en" lang="en"
> > xmlns:ui="http://java.sun.com/jsf/facelets"
> > xmlns:f="http://java.sun.com/jsf/core"
> > xmlns:h="http://java.sun.com/jsf/html">
> > <head>
> > <meta http-equiv="Content-Type" content="application/xhtml+xml"/>
> > <meta http-equiv="Pragma" content="no-cache"/>
> > <meta http-equiv="Expires" content="-1"/>
> > <link href="#{facesContext.externalContext.requestContextPath}/secure/css/stylesheet2.css" rel="stylesheet"
> > type="text/css"/> </head>
> >
> > it works great in Firefox. But trying to open the same page in IE, IE just asks f I want to save the file or find a
> > program online to open it....
> >
> > How can I code the page so IE will display the page correctly?
> >
> >
> > Regards,
> >
> > BTJ
> >
> > --
> > -----------------------------------------------------------------------------------------------
> > Bjørn T Johansen
> >
> > btj@havleik.no
> > -----------------------------------------------------------------------------------------------
> > Someone wrote:
> > "I understand that if you play a Windows CD backwards you hear strange Satanic messages"
> > To which someone replied:
> > "It's even worse than that; play it forwards and it installs Windows"
> > -----------------------------------------------------------------------------------------------
> >
Re: [a bit off topic] Trying to use xhtml instead of html, problem
with IE?
Posted by bob <bo...@gmail.com>.
I open my xhtml page as :
<xhtml xmlns="http://www.w3.org/1999/xhtml"><!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html dir="ltr" lang="en">
I have no issues in any browser (ie/mozilla/opera/firefox/konqueror/safari).
Bob Hedlund
Andrew Robinson wrote:
> what is your content type header that the browser is sending?
>
> On Fri, Jan 23, 2009 at 2:42 PM, Bjørn T Johansen <bt...@havleik.no> wrote:
>
>> Ok, but I tried changing the content type to text/html with no change in the outcome...
>> What else do I need to do to make IE work?
>>
>> BTJ
>>
>> On Fri, 23 Jan 2009 12:57:27 -0700
>> Andrew Robinson <an...@gmail.com> wrote:
>>
>>
>>> Most browsers need content type of text/html, even for XHTML
>>> documents. It is a bug in the browser.
>>>
>>> -Andrew
>>>
>>> On Fri, Jan 23, 2009 at 11:57 AM, Bjørn T Johansen <bt...@havleik.no> wrote:
>>>
>>>> When I use the following in my xhtml page..:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <!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" xml:lang="en" lang="en"
>>>> xmlns:ui="http://java.sun.com/jsf/facelets"
>>>> xmlns:f="http://java.sun.com/jsf/core"
>>>> xmlns:h="http://java.sun.com/jsf/html">
>>>> <head>
>>>> <meta http-equiv="Content-Type" content="application/xhtml+xml"/>
>>>> <meta http-equiv="Pragma" content="no-cache"/>
>>>> <meta http-equiv="Expires" content="-1"/>
>>>> <link href="#{facesContext.externalContext.requestContextPath}/secure/css/stylesheet2.css" rel="stylesheet"
>>>> type="text/css"/> </head>
>>>>
>>>> it works great in Firefox. But trying to open the same page in IE, IE just asks f I want to save the file or find a
>>>> program online to open it....
>>>>
>>>> How can I code the page so IE will display the page correctly?
>>>>
>>>>
>>>> Regards,
>>>>
>>>> BTJ
>>>>
>>>> --
>>>> -----------------------------------------------------------------------------------------------
>>>> Bjørn T Johansen
>>>>
>>>> btj@havleik.no
>>>> -----------------------------------------------------------------------------------------------
>>>> Someone wrote:
>>>> "I understand that if you play a Windows CD backwards you hear strange Satanic messages"
>>>> To which someone replied:
>>>> "It's even worse than that; play it forwards and it installs Windows"
>>>> -----------------------------------------------------------------------------------------------
>>>>
>>>>
>
>
Re: [a bit off topic] Trying to use xhtml instead of html, problem with IE?
Posted by Burghard Britzke <bu...@charmides.in-berlin.de>.
Yes! the browser takes the content type, which is sent by the server
as part of the http-header. but have a look at this ugly anouncement http://blogs.msdn.com/ie/archive/2005/09/15/467901.aspx
.
burghard.
Am 23.01.2009 um 23:44 schrieb Bjørn T Johansen:
> Not sure if I understand your question... I thought the server sent
> the content type and not the browser?
>
> BTJ
>
> On Fri, 23 Jan 2009 15:19:37 -0700
> Andrew Robinson <an...@gmail.com> wrote:
>
>> what is your content type header that the browser is sending?
>>
>> On Fri, Jan 23, 2009 at 2:42 PM, Bjørn T Johansen <bt...@havleik.no>
>> wrote:
>>> Ok, but I tried changing the content type to text/html with no
>>> change in the outcome...
>>> What else do I need to do to make IE work?
>>>
>>> BTJ
>>>
>>> On Fri, 23 Jan 2009 12:57:27 -0700
>>> Andrew Robinson <an...@gmail.com> wrote:
>>>
>>>> Most browsers need content type of text/html, even for XHTML
>>>> documents. It is a bug in the browser.
>>>>
>>>> -Andrew
>>>>
>>>> On Fri, Jan 23, 2009 at 11:57 AM, Bjørn T Johansen
>>>> <bt...@havleik.no> wrote:
>>>>> When I use the following in my xhtml page..:
>>>>>
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <!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" xml:lang="en" lang="en"
>>>>> xmlns:ui="http://java.sun.com/jsf/facelets"
>>>>> xmlns:f="http://java.sun.com/jsf/core"
>>>>> xmlns:h="http://java.sun.com/jsf/html">
>>>>> <head>
>>>>> <meta http-equiv="Content-Type" content="application/xhtml+xml"/>
>>>>> <meta http-equiv="Pragma" content="no-cache"/>
>>>>> <meta http-equiv="Expires" content="-1"/>
>>>>> <link href="#{facesContext.externalContext.requestContextPath}/
>>>>> secure/css/stylesheet2.css" rel="stylesheet"
>>>>> type="text/css"/> </head>
>>>>>
>>>>> it works great in Firefox. But trying to open the same page in
>>>>> IE, IE just asks f I want to save the file or
>>>>> find a program online to open it....
>>>>>
>>>>> How can I code the page so IE will display the page correctly?
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> BTJ
Re: [a bit off topic] Trying to use xhtml instead of html, problem
with IE?
Posted by Bjørn T Johansen <bt...@havleik.no>.
Not sure if I understand your question... I thought the server sent the content type and not the browser?
BTJ
On Fri, 23 Jan 2009 15:19:37 -0700
Andrew Robinson <an...@gmail.com> wrote:
> what is your content type header that the browser is sending?
>
> On Fri, Jan 23, 2009 at 2:42 PM, Bjørn T Johansen <bt...@havleik.no> wrote:
> > Ok, but I tried changing the content type to text/html with no change in the outcome...
> > What else do I need to do to make IE work?
> >
> > BTJ
> >
> > On Fri, 23 Jan 2009 12:57:27 -0700
> > Andrew Robinson <an...@gmail.com> wrote:
> >
> >> Most browsers need content type of text/html, even for XHTML
> >> documents. It is a bug in the browser.
> >>
> >> -Andrew
> >>
> >> On Fri, Jan 23, 2009 at 11:57 AM, Bjørn T Johansen <bt...@havleik.no> wrote:
> >> > When I use the following in my xhtml page..:
> >> >
> >> > <?xml version="1.0" encoding="UTF-8"?>
> >> > <!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" xml:lang="en" lang="en"
> >> > xmlns:ui="http://java.sun.com/jsf/facelets"
> >> > xmlns:f="http://java.sun.com/jsf/core"
> >> > xmlns:h="http://java.sun.com/jsf/html">
> >> > <head>
> >> > <meta http-equiv="Content-Type" content="application/xhtml+xml"/>
> >> > <meta http-equiv="Pragma" content="no-cache"/>
> >> > <meta http-equiv="Expires" content="-1"/>
> >> > <link href="#{facesContext.externalContext.requestContextPath}/secure/css/stylesheet2.css" rel="stylesheet"
> >> > type="text/css"/> </head>
> >> >
> >> > it works great in Firefox. But trying to open the same page in IE, IE just asks f I want to save the file or
> >> > find a program online to open it....
> >> >
> >> > How can I code the page so IE will display the page correctly?
> >> >
> >> >
> >> > Regards,
> >> >
> >> > BTJ
> >> >
> >> > --
> >> > -----------------------------------------------------------------------------------------------
> >> > Bjørn T Johansen
> >> >
> >> > btj@havleik.no
> >> > -----------------------------------------------------------------------------------------------
> >> > Someone wrote:
> >> > "I understand that if you play a Windows CD backwards you hear strange Satanic messages"
> >> > To which someone replied:
> >> > "It's even worse than that; play it forwards and it installs Windows"
> >> > -----------------------------------------------------------------------------------------------
> >> >
Re: [a bit off topic] Trying to use xhtml instead of html, problem
with IE?
Posted by Andrew Robinson <an...@gmail.com>.
what is your content type header that the browser is sending?
On Fri, Jan 23, 2009 at 2:42 PM, Bjørn T Johansen <bt...@havleik.no> wrote:
> Ok, but I tried changing the content type to text/html with no change in the outcome...
> What else do I need to do to make IE work?
>
> BTJ
>
> On Fri, 23 Jan 2009 12:57:27 -0700
> Andrew Robinson <an...@gmail.com> wrote:
>
>> Most browsers need content type of text/html, even for XHTML
>> documents. It is a bug in the browser.
>>
>> -Andrew
>>
>> On Fri, Jan 23, 2009 at 11:57 AM, Bjørn T Johansen <bt...@havleik.no> wrote:
>> > When I use the following in my xhtml page..:
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <!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" xml:lang="en" lang="en"
>> > xmlns:ui="http://java.sun.com/jsf/facelets"
>> > xmlns:f="http://java.sun.com/jsf/core"
>> > xmlns:h="http://java.sun.com/jsf/html">
>> > <head>
>> > <meta http-equiv="Content-Type" content="application/xhtml+xml"/>
>> > <meta http-equiv="Pragma" content="no-cache"/>
>> > <meta http-equiv="Expires" content="-1"/>
>> > <link href="#{facesContext.externalContext.requestContextPath}/secure/css/stylesheet2.css" rel="stylesheet"
>> > type="text/css"/> </head>
>> >
>> > it works great in Firefox. But trying to open the same page in IE, IE just asks f I want to save the file or find a
>> > program online to open it....
>> >
>> > How can I code the page so IE will display the page correctly?
>> >
>> >
>> > Regards,
>> >
>> > BTJ
>> >
>> > --
>> > -----------------------------------------------------------------------------------------------
>> > Bjørn T Johansen
>> >
>> > btj@havleik.no
>> > -----------------------------------------------------------------------------------------------
>> > Someone wrote:
>> > "I understand that if you play a Windows CD backwards you hear strange Satanic messages"
>> > To which someone replied:
>> > "It's even worse than that; play it forwards and it installs Windows"
>> > -----------------------------------------------------------------------------------------------
>> >
>