You are here: Re: XHTML MOBILE « HTML « IT news, forums, messages
Re: XHTML MOBILE

Posted by Toby Inkster on 02/12/06 18:42

Kurniawan wrote:

> the advantage of coding web using XHTML is it can use it mobile.
> so it can be displayed in the WAP, etc.

There are a whole bunch of different browsers used on Mobile phones. The
earliest mobile browsers only supported WML, an XML-based markup language
specifically designed for mobile Internet.

As WML evolved it became a trivial extension of XHTML (a few extra
elements and attributes), so fairly soon Mobile browsers started to evolve
that could handle XHTML too.

More modern mobile browsers can understand HTML too.

That said, most mobile browsers still have limitations. Don't expect
Javascript or CSS to work (except on Opera Mobile and Embedded MSIE).

Avoid using images larger than 100x100px. (In fact, avoid images
altogether, as 2.5G mobiles only offer fairly slow connections, and the
users pay per byte of download.)

Pages should try to be under 10 kbytes, as mobiles tend to have very
little RAM.

Avoid tables like the plague.

For a site that I've been working on (it's a members only site that
requires logins, so I won't post a URL) I've added a "mobile edition"
option.

All it does is: in my included PHP at the start of the page, print out a
more minimal header (just a DOCTYPE, TITLE and H1 -- no style sheets and
top navigation which the regular version has) and switch on PHP output
buffering. In the PHP included at the foot of the page, grab the text from
the output buffer, strip all the HTML tags out of it except for a few
basic ones (<hX>, <b>, <i>, <p>, <a>, etc), split it into sub-pages if it
is over 10 kbytes, print out the first sub-page, offer links to the other
sub-pages, and a links to the site map, home page, "what's new" and log
out pages. Took about an hour to put together and seems to work quite well.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация