Skip to content

Instantly share code, notes, and snippets.



Last active Dec 11, 2015
What would you like to do?
Ajax request example
<!DOCTYPE html>
<meta charset="utf-8">
body {
font: 10px sans-serif;
<pre id="result"></pre>
<script src="//" type="text/javascript"></script>
url: "",
dataType: "json",
data: {
"q":'select * from weather.forecast where woeid=2502265',
"format": "json",
"jsonp" : "?"
success: function(res) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment