Mobile Web Lecture 2 N Amanquah Spring 2011.

Slides:



Advertisements
Similar presentations
HTML5 ETDs Edward A. Fox, Sung Hee Park, Nicholas Lynberg, Jesse Racer, Phil McElmurray Digital Library Research Laboratory Virginia Tech ETD 2010, June.
Advertisements

IE 9Google .mp4.ogv.webm Width Height Src Poster Loop Autoplay Mute Preload controls.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
A really fairly simple guide to: mobile browser-based application development (part 1) Chris Greenhalgh G54UBI / Chris Greenhalgh
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
COMP101 – Exploring Multimedia and Internet Computing LA2 (Thur 14:00 – 16:50) TA: Jackie Lo.
MWD3002 Multiplatform Applications Week 5 – Designing for Mobile.
CM143 - Web Week 2 Basic HTML. Links and Image Tags.
Responsive Web Design Design websites so that they can adapt to different devices seamlessly. Image by Muhammed RafizeldiMuhammed Rafizeldi.
Identification of Mobile Devices from Network Traffic Measurements - a HTTP User Agent Method Master’s Thesis August 2 8, 2012 Supervisor – Prof. Heikki.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
CIS 375—Web App Dev II WAP. 2 Introduction to WAP WAP ________________________ is an application communication protocol that uses a ______ Browser in.
18 People Surveyed HTML (HyperText Markup Language) HTML “tags” Describes structure Building blocks Headings, paragraphs, lists, links, images, quotes,
Taking Your Website On The Road Technology No Where to Go.
Intro to Dreamweaver Web Design Section 7-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
Web Pages: Creating & Maintaining Body Tags. There have been several versions of HTML since its inception. VersionYear HTML1991 HTML HTML
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
CAUSES OF EMERGENCE DAY 1. NETWORK TOPOLOGIES FOR FUN.
Cascading Style Sheets Chris Vollmer IT 5610 Chatfield Senior High School.
Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
HTML5 and CSS3 Illustrated Unit F: Inserting and Working with Images.
Chapter 13: DHTML: Object Model and Collections CIS 275—Web Application Development for Business I.
CSS (Cascading Style Sheets). CSS CSS – Cascading Style Sheets – Cascade because of the way CSS rules can stack on top of each other. Allows you to add.
Chapter 9 HTML 5 Video and Audio
The HTML5 logo was introduced by W3C in 2010
Cascading Style Sheets (CSS) Internal Style Sheets Classes
Web Development & Design Foundations with HTML5
Prepared by Dr. Maher Abuhamdeh 2014/2015 First semester
Web Basics: HTML/CSS/JavaScript What are they?
Project 1 Introduction to HTML.
Javascript and Dynamic Web Pages: Client Side Processing
SOEN 287 Web programming Tutorial 03- HTML5 & CSS
HTML5 and CSS3 Illustrated Unit D: Formatting Text with CSS
Web Basics: HTML and HTTP
4.01B Authoring Languages and Web Authoring Software
Introduction to HTML5.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Introduction and Principles
Intro to Dreamweaver Web Design Section 8-1
W3C Web standards and Recommendations
Simple PHP An Introduction.
Web Development & Design Foundations with HTML5
COMPUTING FUNDAMENTALS
CSS – Cascading Style Sheet DOM – Document Object Model
Introduction to HTML5.
Web Systems Development (CSC-215)
4.01B Authoring Languages and Web Authoring Software
5.2.3 Be able to use HTML and CSS to construct web pages
December 1, 2017 Web Design.
Introduction to Web Authoring
What are Cascading Stylesheets (CSS)?
The Internet 10/6/11 Cascading Style Sheets
Static and Dynamic Web Pages
Nov. 1, 2018 Drop-down menu.
Structuring Content in a Web Document
Javascript and JQuery SRM DSC.
Introduction to HTML5.
Web Application Development
CIS 133 mashup Javascript, jQuery and XML
CS3220 Web and Internet Programming HTML and XML Basics
HTML & CSS 7 Languages in 7 Days.
Pertemuan 1 Desain web Pertemuan 1
Web Development & Design Foundations with HTML5
Lesson 2: HTML5 Coding.
Introduction to HTML5.
Creating your website and learning HTML
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

Mobile Web Lecture 2 N Amanquah Spring 2011

xHTML WAP2.0 devices support xHTML –MP 1.0 in addition to WML1.x all tags written in small caps all tags must be closed Eg <b>bold text</b> <br />

Start an html page with header ("Content-Type: application/xhtml+xml "); <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

xHTML-MP- IE challenges <?php $msie = strpos($_SERVER[“HTTP_USER_AGENT”],’MSIE’) > 0; if (!$msie) {     header(“Content-Type:    application/xhtml+xml; charset=UTF-8”);} else {     header(“Content-Type: text/html; charset=UTF-8”);} ?>

CSS WAP 2.0 supports WCSS, a subset of CSS Provide CSS file if desired <head>      <title>Our page</title>      <link rel="stylesheet" href="style.css" type="text/css"/> </head> Provide CSS file if desired body { color: #00ff00; background-color: #FFFFFF} .mytext { color: #FF0066; } h1{……}

Menus… Make use of Access keys in menus Use Lists for menus <a accesskey="1" href=“page1.html">Link 1</a> Use Lists for menus <ol> <li><a accesskey="1" href="page1.html">Page1</a></li> <li><a accesskey="2" href="page2.html">Page2</a></li> <li><a accesskey="3" href="page3.html">Page3</a></li> <li><a accesskey="4" href="page4.html">Page4</a></li> </ol> Telephone Tag <a href=“tel:+23324419419” > Call us </a>

Mobile Web Dev- Tips Balance goals and constraints Meet your business goals Meet your user’s needs – Context: what will they do on the move? What info required? They usually need info they can action. What tasks will be accomplished

Lab 1. Device Detection 2. Device properties 3. Image adaptation Static Dynamic

Testing Tools FF -User agent switcher https://addons.mozilla.org/en-US/firefox/addon/59 Download and install Small screen renderer Web developer toolkit/toolbar for FF

User agent for N95 8GB phone Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95_8GB/10.0.021; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413 See link for some User agent strings http://wiki.forum.nokia.com/index.php/User-Agent_headers_for_Nokia_devices

Device Atlas Make use of to obtain all properties of your device getProperties($tree, $_SERVER['HTTP_USER_AGENT']) to obtain all properties of your device Use mobileDevice property to determine if it is a mobile. (=0/false if it is not) See doc folder for documentation and usage

usage include "Mobi/Mtld/DA/Api.php"; $tree = Mobi_Mtld_DA_Api::getTreeFromFile("json/Sample.json"); $ua = $_SERVER['HTTP_USER_AGENT']; try{ $vendor = Mobi_Mtld_DA_Api::getProperty($tree, $ua, 'vendor'); } catch (Mobi_Mtld_Da_Exception_InvalidPropertyException $e) { $vendor = "Unknown"; } echo $vendor; …  $tree = Mobi_Mtld_DA_Api::getTreeFromFile("sample/Sample.json");  $prps = Mobi_Mtld_DA_Api::getProperties($tree, "Nokia6680...");  $prop = Mobi_Mtld_DA_Api::getProperty($tree, "Nokia6680...", "displayWidth");

Method Summary static integer getApiRevision () static array getProperties ( &$tree, string $userAgent) static array getPropertiesAsTyped ( &$tree, string $userAgent) static string getProperty ( &$tree, string $userAgent, string $property) static boolean getPropertyAsBoolean ( &$tree, string $userAgent, string $property) static string getPropertyAsDate ( &$tree, string $userAgent, string $property) static integer getPropertyAsInteger ( &$tree, string $userAgent, string $property) static string getPropertyAsString ( &$tree, string $userAgent, string $property) static array getTreeFromFile (string $filename) static array getTreeFromString (string $json) static integer getTreeRevision ( &$tree) static array listProperties ( &$tree)

Wurfl: installation Wurfl installation instructions: http://wurfl.sourceforge.net/nphp/

See demo at http://192.168.30.105/mywebs/mwc/wurfl/index.php Download wurfl files at http://192.168.30.105/mywebs/mwc/Links.htm

Image adaptation Static: Dynamic Howto: Display a pre-sized image depending on screen width Dynamic Make use of image adaptation library in conjunction with device atlas Howto: http://mobiforge.com/developing/story/image-adaptation-with-deviceatlas

Useful refs Phone detection and PHP ***http://dev.mobi/article/lightweight-device-detection-php And ASP here: http://dev.mobi/article/lightweight-device-detection-asp what kind of phone is it? ***http://dev.mobi/article/the-deviceatlas-api-php-part-i-the-basics http://dev.mobi/node/858 WURFL in PHP: http://dev.mobi/article/introduction-wurfl Device atlas and image adaptation http://dev.mobi/article/image-adaptation-with-deviceatlas