Create a gist now

Instantly share code, notes, and snippets.

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