Stephen Woodbridge wrote:
> Hi Stefan,
>
> I have been trying your resize plugin, it is really slick and works great!
>
> I have a request, does it already have or can you add the ability to
> added a call back at the end of the resize, so other code can be
> notified of the change in size? Like notify below:
>
> $(document).ready(function(){
> $('#resize_map').Resizeable(
> {
> minHeight: 100,
> maxHeight: 700,
> minWidth: 100,
> maxWidth: 800,
> handlers: {
> se: '#resize'
> },
> notify: function(){
> alert("I have been resized");
> $('#map_tag').Resized(this.sizes);
> }
> }
> );
> });
>
> Maybe there is another way to do this?
Would this not be better suited to an event?
$('#resize_map').bind('resize', function() {
alert("I have been resized");
});
I've not had chance to test it, but I'm sure all elements
have a resize event. If not then the resizeable plugin can
trigger() it itself.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/