This is called "alteration". This way you get the most control over what is shown to each device. 3. Automatic Adaptation: create content in one format and use a tool to generate device-specific versions. This is the most elegant method. Adapting to User Devices [ 76 ] Let us rebuild the pizza selection page on POTR to learn how we can detect the device and implement automatic adaptation. Fancy Pizza Selection Luigi has been asking to put up photographs of his delicious pizzas on the mobile site, but we didn't do that so far to save bandwidth for users. Let us now go ahead and add images to the pizza selection page. We want to show larger images to devices that can support them. Remember the XHTML to invoke a phone call? The two approaches of using wtai and tel? Some customers have complained that they were not able to make a call using that link. The cause is that their browsers did not understand the tel link. Let us adapt that so that the user gets the markup her or his browser can understand! Review the code shown below. It's an abridged version of the actual code. include_once("wall_prepend.php"); ?> Pizza On The Run 90
919293949596979899100101
102
103104105106107108109110111112113114