Know which handle was used for resizable

I have an area that is using jQuery's .resizable();

The handles are e,se,s.

I have different functions I need to perform based on the which handle was used for resizing. I tried the browser event object by using event.target but it returns the element being resized, not the handle.

Does any one have any ideas of how to know which handle is being used?

Thanks is advance!
LVL 1
Shaye LarsenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hieloCommented:

<!DOCTYPE html>
<html>
<head>
  <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
	<!--   <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
	<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> -->
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
	<style type="text/css">
    #resizable { width: 100px; height: 100px; background: beige; }
  </style>
  <script>
  $(document).ready(function() {
  
  	var options={	handles: 'e,se,s'
				,ghost:true 
				,start: function(event, ui) {
					var handle=$(this).css("cursor").split("-")[0];
					$("#handleName").html("Handle: "+handle); 
				}
			};
    $("#resizable").resizable(options);
  });
  </script>
</head>
<body style="font-size:62.5%;">
  
<div id="resizable"></div>
<div id="handleName"></div>
</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaye LarsenAuthor Commented:
Great thinking to use the cursor name! Wonderful solution, thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.