-
Notifications
You must be signed in to change notification settings - Fork 3
/
search.html
44 lines (31 loc) · 939 Bytes
/
search.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
<html>
<head>
<meta name = "viewport" content = "initial-scale = 1.0, user-scalable = no" />
<script src="shared/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="NKit.js"></script>
<script>
var navController = new NKNavigationController();
navController.setTitle("UISearchBar");
NKRegisterClass("MyUISearchBar");
CallNKitAction("showSearchBar?className=MyUISearchBar");
</script>
</head>
<body style="margin-top:75px">
<script>
function searchUpdated(searchValue)
{
$("#container").html(searchValue);
}
/*
function searchButtonClicked()
{
CallNKitAction("dismissKeyboard?className=MyUISearchBar");
}
*/
function searchButtonClicked(text) {
NKLog("Search Query: " + text);
}
</script>
<div id="container">content here</div>
</body>
</html>