Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

jquery ajax while loading

$.ajax({
    url: uri,
    cache: false,
    beforeSend: function(){
        $('#image').show();
    },
    complete: function(){
        $('#image').hide();
    },
    success: function(html){
       $('.info').append(html);
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #ajax #loading
ADD COMMENT
Topic
Name
6+6 =