Created
October 1, 2014 12:40
-
-
Save skoslitz/9d97a8b95e452daaa1cb to your computer and use it in GitHub Desktop.
load json with JQuery
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
<script type="text/javascript"> | |
var apiUrl = "http://localhost/yiiRest/basic/web/index.php/event/temporal" | |
$.ajax({ | |
url: apiUrl, | |
dataType: 'json', | |
success: function(data){ | |
console.log(data); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment