Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How to call javascript/jquery function on resize event of td

Here is the code

ASP.NET
<td id="cTree" valign="top" width="200px" class="fullview">
 style="overflow: auto;
  position: relative; z-index: 3000;">
                <uc2:Categories ID="Categories1"  runat="server" height="100%"/>                
            </td>
Posted
Updated 21-Nov-11 18:53pm
v4

1 solution

Hi Have you tried with jqueryUI. You can use resize event and there are many more events like start, stop etc.
see below sample.
JavaScript
//bind the resizable method to your td element. 
$( ".fullview" ).resizable({
   resize: function(event, ui) {
     //this is the event... that will fire on resize here you can hook up 
//any method or write any action you wanna do.
   }
});


visit this url:
jquery UI resizable sample[^]
 
Share this answer
 
v2
Comments
deepakdynamite 23-Nov-11 0:16am    
Yes finally I kept
<uc2:Categories ID="Categories1" runat="server" height="100%"/> into a div and resized it using jquery.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900