Welcome to WebmasterWorld Guest from 54.145.44.134

Forum Moderators: bakedjake

Message Too Old, No Replies

A little too much XML

.Mobi site got 5/5 rating on validation but doesnt work in browser

     

r3nz0

2:15 pm on Feb 12, 2007 (gmt 0)

10+ Year Member



Hey guys,

Im just working on a .mobi version of an existing site. Now i got a 5/5 rating on [ready.mobi...] But,

When i look in Firefox it renders as an XML file; and IE jumps into stress!

These are my MIME types at the moment... those are recommended by the .mobi guys.

application/xhtml+xml
UTF-8

This is working correct on mobile phones..

The page source code starts with <?XML etc..?> , so its a logic problem imo but are there workarrounds to get it working in normal browsers?

sabai

9:53 pm on Feb 13, 2007 (gmt 0)

10+ Year Member



I believe IE doesn't handle the xhtml header correctly because it doesn't actually understand xhtml & treats it as plain html. One workaround is to serve text/html content-type if the Accept request headers don't include xhtml... though this is obviously not ideal. Try googling for IE xhtml.

r3nz0

11:13 am on Feb 15, 2007 (gmt 0)

10+ Year Member



Thnx, i found something;

IE isn't supporting the application/xhtml+xml :(

working on a dynamic mime-type system..

jtara

4:31 pm on Feb 16, 2007 (gmt 0)

WebmasterWorld Senior Member jtara is a WebmasterWorld Top Contributor of All Time 5+ Year Member



You will need to do browser detection, and serve an alternative page, if you want it to work on PC browsers.

As a practical matter, you need to do browser detection, as well, to look good on a mobile device - right down to the specific model of phone. There are too many variations, and a small number of precious pixels, and you need to make the most of them.

One problem that will be increasing is that there is an increasing number of phones with a horizontal-format screen.

r3nz0

3:04 pm on Feb 18, 2007 (gmt 0)

10+ Year Member



Nice comment Jtara,

I will develop to a system with detection. I will say to all other members: .mobi is hot. Have some good links and maybe you're .mobi will win of another domain.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month