forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_default.html
More file actions
52 lines (45 loc) · 1.51 KB
/
_default.html
File metadata and controls
52 lines (45 loc) · 1.51 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
Default index ServiceStack.WebHost.IntegrationTests page
</div>
</form>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
var dt = new Date();
var etime = dt.getTime();
var jdata = {
"AppToken": "TEST123",
"OrderId": 1,
"GeoCode": {
"t": etime,
"latitude": 32.81434,
"longitude": -80.3432221
}
};
$.ajax({
url: "geoinfo",
type: "POST",
contentType: "application/json",
accept: "application/json",
dataType: "json",
data: JSON.stringify(jdata),
success: function (data) {
//alert(data.Result);
}
});
// $.post("geoinfo", JSON.stringify(jdata),
// function (data) {
// alert(data.Result);
// },
// "json");
});
</script>
</body>
</html>