Permalink
Browse files

calling function

  • Loading branch information...
1 parent e95ce26 commit 6446b7e6356f8bbb2874a9167f6edb0304711367 @cesine cesine committed Apr 23, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 public/view/visitor.html
  2. +1 −1 server.js
View
@@ -11,7 +11,6 @@
</head>
<body>
-<script src="http://pure-mountain-5519.herokuapp.com/getip?callback=getip"></script>
<script src="http://j.maxmind.com/app/geoip.js"></script>
<script >
window.jsonIP ={};
@@ -20,6 +19,7 @@
window.jsonIP.ip=data;
}
</script>
+<script src="http://pure-mountain-5519.herokuapp.com/getip?callback=getip"></script>
<script>
isAndroidApp = function() {
//Development tablet navigator.userAgent:
View
@@ -35,7 +35,7 @@ app.get('/getip',function(req,res){
var returnobj = {};
returnobj.ip = ip_address;
res.writeHead(200, {'content-type': 'application/json'});
- res.write('"'+ip_address+'"');
+ res.write('getip("'+ip_address+'");');
res.end();
});
app.post('/view/main.html',function(req,res){

0 comments on commit 6446b7e

Please sign in to comment.