Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
4+3 =