HTML with WAP on same pages ?!

Discussion in 'HTML & Website Design' started by surfer33, Mar 7, 2008.

  1. #1
    Can we buid a template that work for mobiles and PC ? !

    for example this is the source code of that page that i want use that :


    <!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">
    <head>
    <title>pc view</title>
    </head>
    <body>
    <p>sample text for show on pc </p>
    </body>
    </html>
    <wml>
    <card id="index" title="WAP showen" newcontext="true">
    <p align="center">
    sample text that shown on mobile browser
    </p>
    </card>
    <card id="about" title="About Me">
    <p>my name is LOL man<br/>
    You can scroll down the screen, of course.
    </p>
    </card>
    </wml>
     
    surfer33, Mar 7, 2008 IP
  2. surfer33

    surfer33 Banned

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    any body here?
     
    surfer33, Mar 7, 2008 IP
  3. handsetdetection

    handsetdetection Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Use handsetdetection.com and then send the user to the appropriate site / view based on their device..
     
    handsetdetection, May 26, 2008 IP
  4. hillord

    hillord Well-Known Member

    Messages:
    2,211
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    140
    #4
    you can always make a mobile and pc use for your user.
    if a user is on a mobile, you can ask them to go to domain.com/m. there, you can do the necessary xml format type of your site while leaving your original website alone.
     
    hillord, May 26, 2008 IP
  5. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #5
    My system crashed not long ago and I lost all my data, but I had a simple .htaccess file redirecting surfers to an appropriate page according their browser or mobile devices.

    It is available somewhere inside this www.hotscripts.com/PHP/Scripts_and_Programs/WAP_and_WML/index.html or any other of the PHP-related sections, don't remember.
     
    Trusted Writer, May 26, 2008 IP