Skip to content

Instantly share code, notes, and snippets.

Created April 7, 2012 16:27
Show Gist options
  • Save anonymous/2330138 to your computer and use it in GitHub Desktop.
Save anonymous/2330138 to your computer and use it in GitHub Desktop.
a guest on Apr 7th, 2012 - SVetter
$.ajax({
type: "POST",
url: "meta-parse.php",
data: $('input.#url').serialize(),
success: function(data) {
var json = $.parseJSON(data);
var images = json.images;
images.split(',');
$('#url_preview').html("<div id='message'></div>");
$('#url_preview').toggle();
$('#add_process_board_picker').toggle();
$('#add').toggle();
$('#message').html('<div class="images">'+images+'</div>')
.hide()
.fadeIn(500, function() {
$('#message');
});
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment