Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.something').click(function(){
- $('body').html('');
- $.ajax({
- url: 'someurl',
- dataType: 'json',
- async: false,
- success: function(data){
- //do stuff
- alert('yo');
- }
- });
- return false;
- });
- $('.something').click(function(){
- $('body').html('');
- window.setTimeout(function() {
- $.ajax({
- url: 'someurl',
- dataType: 'json',
- async: false,
- success: function(data){
- //do stuff
- alert('yo');
- }
- });
- }, 0);
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement