Mobile Web Pages

They have: 2 posts

Joined: Nov 2005

Hi Everyone,

I want to make a version of my website for mobile phones, and creating the pages as xhtml or xml is easy enough. GoLive allows me to easily design for different phones. However, once I have the pages done and placed on my website, how do I direct mobile phones to them? For example, I can place index.xhtml in the same directory as my main index.html, but how do I ensure that mobile phones are directed to the xhtml?

Thanks,

timjpriebe's picture

He has: 2,667 posts

Joined: Dec 2004

Do mobile phones execute Javascript? If so, you could always write Javascript in your index.html that redirects the user to index.xhtml if the browser window is under a certain size.

They have: 8 posts

Joined: Dec 2005

parse UserAgent string... if it matches against list of mobile devices, serve index.xhtml

They have: 2 posts

Joined: Nov 2005

boccio wrote: parse UserAgent string... if it matches against list of mobile devices, serve index.xhtml

Okay, that sounds really cool. What's it mean?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.