Skip to content

Instantly share code, notes, and snippets.

@chicks
Created July 24, 2012 19:04
Show Gist options
  • Save chicks/3171922 to your computer and use it in GitHub Desktop.
Save chicks/3171922 to your computer and use it in GitHub Desktop.
SUGAR.util.doWhen('$("#cognos").length > 0', function () {
$.ajax({
url:"blah.php",
success:function (data) {
$("#cognos").html(data)
}
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment