Created
August 14, 2012 20:37
-
-
Save kmgdevelopment/3352733 to your computer and use it in GitHub Desktop.
Apply Effects to Ajax Function
This file contains hidden or 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
$('a').click(function(e){ | |
e.preventDefault(); | |
var theUrl = $(this).attr('href'); | |
$.ajax({ | |
url: theUrl, | |
success: function(data){ | |
var theTemplate = $(data); | |
$('.containerDiv').html(theTemplate); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ah ok, that makes sense. The fadeIn starts after the previous event begins not ends. Thanks!