Results 1 to 2 of 2

Thread: File format for mobile html?

  1. #1
    Join Date
    May 2012
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default File format for mobile html?

    I have done many regular websites, but am building my first mobile page using the IUI-js interface because it is pretty simple and easy to understand. A regular website would just be saved as index.html and then uploaded to my hosting service, however what file format would I save my mobile page up for uploading to my hosing service?

    The computer knows to go to the homepage because it is saved as index.html.... but how would a mobile phone or tablet know to go to my mobile html and not my regular index? Hopefully this is a simple question to answer such as the correct file format.... Thanks.

    P.S.

    I know mobile websites are m.domain.com With the difference being the m. so does that have anything to do with it?

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by WebDizzy777 View Post
    what file format would I save my mobile page up for uploading to my hosing service?
    Plain text, just like any other webpage. .html for html files, .php for php files, and so forth.

    Quote Originally Posted by WebDizzy777 View Post
    The computer knows to go to the homepage because it is saved as index.html....
    Not exactly: your server knows [is configured] to give that page in response when a visitor asks for a directory with no filename.

    Quote Originally Posted by WebDizzy777 View Post
    but how would a mobile phone or tablet know to go to my mobile html and not my regular index?
    It knows nothing like that. It never will. You have to make that decision (or provide a way for the visitor to decide).

    Quote Originally Posted by WebDizzy777 View Post
    I know mobile websites are m.domain.com With the difference being the m. so does that have anything to do with it?
    Using a subdomain for a mobile version of a site (e.g., m.example.com) is fairly common, but not necessarily what you want.

    The idea is:
    a) determine if the user is on a mobile device
    b) send (redirect) them the the mobile version of the site

    The disadvantages here (among others) are:
    1) you don't always have a good way of determining a). The most common approach is to check the USER_AGENT request header - but this means you have to have an up-to-date list. There will always be edge cases where you have false results.

    2) mobile users don't always want a mobile site. Phones can have screens with bigger resolutions than desktop computers these days. Personally, I hate mobile sites because they're almost always terrible to use.

    3) most importantly, you have to maintain two different versions of your site. From now until forever.

    You might consider responsive design - redesign your site for small screens first, then start making changes for larger screens. Your javascript should use feature detection to decide what functions/events/etc. are available before trying to use it (do I have "click"? do I have "touch"? etc... moderizer is a good resource for this).

Similar Threads

  1. Send Email in HTML Format
    By aweklin in forum PHP
    Replies: 2
    Last Post: 06-21-2012, 02:07 PM
  2. Replies: 2
    Last Post: 11-24-2009, 08:53 PM
  3. what is .tpl file format?
    By renlphim in forum Other
    Replies: 1
    Last Post: 05-27-2009, 08:13 AM
  4. Replies: 0
    Last Post: 01-06-2009, 06:47 PM
  5. Standard File Format Problem
    By Aidanx in forum Computer hardware and software
    Replies: 4
    Last Post: 09-22-2007, 09:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •