Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js "></script>
</head>
<body>
<script type="text/coffeescript">
$(document).ready ->
$ ->
callback = (response) -> $('#stage').text response.ip // ip is json key
$.get "http://freegeoip.net/json/", callback, 'json' // json url
</script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/coffee-script/1.7.1/coffee-script.min.js "></script>
<div id="stage"></div>
</body>
</html>
The most helpful COFFEESCRIPT solutions
how to set color using coffeescript ?COFFEESCRIPT Click to see more ... 831 79