Skip to content

Instantly share code, notes, and snippets.

@setunai setunai/gist:1912532

Created Feb 26, 2012
What would you like to do?
<title>jsonp/jquery test</title>
<input type="text" id="url" style="width:300px;" value="">
<input type="button" id="run" value="test">
<script type="text/javascript" src=""></script>
<script type="text/javascript">
(function ($) {
var api = '';
$('#run').click(function (){
var url = $('#url').val();
$.getJSON(api, {'url': url}).then(
function (cnt){
function (){
alert('error dayo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.