Created
October 26, 2011 13:42
-
-
Save lukaselmer/1316388 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
function f() { | |
console.log("bla"); | |
$.ajax({ | |
url : 'http://152.96.80.18:8080/api/trails', | |
type : 'get', | |
'dataType' : "jsonp", | |
data : { | |
format : "json" | |
}, | |
success : function(data) { | |
console.log(data); | |
alert(data); | |
}, | |
//accepts: {'Accept': "application/json"}, | |
//accepts: {'Accept': 'application/json'}, | |
//dataType : "script text xml", | |
//contentType : "application/xml", | |
// 'accepts' : "application/json", | |
// 'contentType' : "application/json", | |
//'cache' : false | |
}); | |
} | |
$(document).ready(f); | |
</script> | |
</head> | |
<body> | |
<div>asdf</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment