SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 105 | Next

Nirav Mehta

"Mobile Web Development"

laacz.lv/.
That's what we are using for POTR.
Adapting to User Devices
[ 78 ]
Let's Make Sense of This Code!
What are the critical elements of this code? Most of it is very similar to standard
XHTML MP. The biggest difference is that tags have a "wall:" prefix. Let us look at
some important pieces:
The wall_prepend.php file at the beginning loads the WALL class, detects
the user's browser, and loads its capabilities. You can use the $wall object in
your code later to check device capabilities etc.
tells the WALL parser to start the document code. xmlpidtd /> will insert the XHTML/WML/CHTML prolog as required. This
solves part of the headache in adaptation.
The next few lines define the page title and meta tags. Code that is not in
tags is sent to the browser as is.
The heading tag will render as a bold text on a WML device. You can use
many standard tags with WALL. Just prefix them with "wall:".
We do not want to enable WML support in the form. It requires a few more
changes in the document structure, and we don't want it to get complex for
this example! If you want to support forms on WML devices, you can enable
it in the tag.


Pages:
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6