-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
47 lines (36 loc) · 1.2 KB
/
index.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
<html>
<script type="text/javascript">
// Check if geolocation is available
if(navigator.geolocation) {
// This is the specific PhoneGap API call
navigator.geolocation.getCurrentPosition(function(p) {
// p is the object returned
var lat = p.coords.latitude;
var longi = p.coords.longitude;
htprequet(lat,longi);
}, function(error){
alert("Failed to get GPS location");
});
} else {
alert("Failed to get GPS working");
}
function htprequet(var longi , var lat){}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("board").innerHTML=xmlhttp.responseText;
}
}
//var url = "http://localhost/n2rds/details.php?board1="+board_php+"&license1="+license_php+"&webpage1"=+web_php+"&skype1="+skype_php+"&facebook1="+fb_php+"&certificate1="+cert_php;
var url = "http://oth1.com/codeniti/getperson.php?latitude="+lat+"&longitude="+longi;
xmlhttp.open("GET",url,true);
xmlhttp.send();
</script>
<body>
</body>
</html>