Web Mobile Intro: Making Simple Web Mobile Application
Web mobile introduction Step By Step Tutorial - Part 2: After install simulator, we will try to build simple web mobile. In this practice, we make 2 page. And look action, how to jump from one to other.
First, create a file named "test.php" within www/test/mobile. Enter following code:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML mobile 1.0//END" "http://www.wapforum.org/DTD/xhtml-mobile0.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My First Mobile Web App</title>
</head>
<body>
<h1>Hi..<?=$_GET['name']?></h1>
You enter the site at <?=date("d-M-Y h:i:s")?>
Refresh this page by click <a href="test.php">here</a>
or <a href="test2.php">test</a>
</body>
</html>
Next, create a file named "test2.php". Enter following code:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML mobile 1.0//END" "http://www.wapforum.org/DTD/xhtml-mobile0.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Page #2</title>
</head>
<body>
<h1>Hi..<?=$_GET['name']?></h1>
You enter the site at <?=date("d-M-Y h:i:s")?>
Refresh this page by click <a href="test2.php">here</a>
or <a href="test.php">test</a>
</body>
</html>
| Series this article: Web Mobile Intro: Simulator Web Mobile Intro: Making Simple Web Mobile Application Web Mobile Intro: Testing Web Mobile Use Openwave Simulator Tag: web mobile, simulator, application Category: Post : April 04th 2008 Read: 1,288 blog comments powered by Disqus |
