Is it possible to refresh a div only while resizing the html page without setting a timer?
            Asked
            
        
        
            Active
            
        
            Viewed 2,303 times
        
    1
            
            
        - 
                    3Please provide some code. – Nevin Madhukar K Mar 17 '15 at 07:03
 - 
                    Fixed grammar and made the question a bit more understandable. Also, perhaps describe exactly what you mean by 'refresh'. Provide some code if possible. – Moncader Mar 17 '15 at 07:59
 
2 Answers
0
            
            
        You can use the window resize event like
$(window).bind('resize', function() {
   $("#mydiv").load(location.href + " #mydiv");
});
        Brijesh Bhatt
        
- 3,810
 - 3
 - 18
 - 34
 
- 
                    I used this function only. want to refresh the particular div ( only with out setting the timer. – aravinda Mar 17 '15 at 07:11
 
0
            
            
        Use the following module, to perform action on window resize
$( window ).resize(function() {
    // add actions needed
});
To refresh div
$("#mydiv").load(location.href + " #mydiv");
        Community
        
- 1
 - 1
 
        Pandiyan Cool
        
- 6,381
 - 8
 - 51
 - 87