-
Notifications
You must be signed in to change notification settings - Fork 0
/
flgiht-history.html
89 lines (68 loc) · 2.32 KB
/
flgiht-history.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test PhoneGap</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
<link rel="stylesheet" href="css/jquery.mobile-1.2.0.css" />
<link rel="stylesheet" href="css/style.css" />
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/jquery.mobile-1.2.0.min.js"></script>
<script src="js/cordova-2.1.0.js"></script>
</head>
<body>
<script>
function onSuccess(data, status)
{
data = $.trim(data);
$("#notification").text(data);
}
function onError(data, status)
{
// handle an error
}
$(document).ready(function() {
$("#submit").click(function(){
var formData = $("#callAjaxForm").serialize();
$.ajax({
type: "POST",
url: "http://ihateflightdelays.co.cc/app/callajax.php",
cache: false,
data: formData,
success: onSuccess,
error: onError
});
return false;
});
});
</script>
<!-- ################################### BEGIN MAIN PAGE ######################################## -->
<div data-role="page" id="list_page" data-theme="c">
<!-- BEGIN HEADER -->
<div id="header" data-role="header" data-position="fixed" data-theme="c">
THIS IS HEADER
</div>
<!-- END HEADER -->
<!-- BEGIN CONTENT -->
<div data-role="content">
<form id="callAjaxForm">
<div data-role="fieldcontain">
<label for="firstName">First Name</label>
<input type="text" name="firstName" id="firstName" value="" />
<br />
<label for="lastName">Last Name</label>
<input type="text" name="lastName" id="lastName" value="" />
<h3 id="notification"></h3>
<button data-theme="b" id="submit" type="submit">Submit</button>
</div>
</form>
</div>
<!-- END CONTENT -->
<!-- BEGIN FOOTER -->
<div data-role="footer" data-position="fixed" style="height: 50px; vertical-align:middle">
THIS IS FOOTER
<!-- END FOOTER -->
</div>
<!-- ##################################### END MAIN PAGE ######################################### -->
</body>
</html>