Fork of Ben's project to set the evenName to 'baResize' rather than 'resize', allowing an easy way to differentiate between events fired by this special event and the jQuery UI resize event. This required the enormous code change of "str_resize = 'resize'" on line 63 to "str_resize = 'baResize'". Thanks Ben!
jQuery resize event
Version: 1.1, Last updated: 3/14/2010
With jQuery resize event, you can bind resize event handlers to elements other than window, for super-awesome-resizing-greatness!
Note that while this plugin works in jQuery 1.3.2, if an element's event callbacks are manually triggered via .trigger( 'resize' ) or .resize() those callbacks may double-fire, due to limitations in the jQuery 1.3.2 special events system. This is not an issue when using jQuery 1.4+.
Visit the project page for more information and usage examples!
This working example, complete with fully commented code, illustrates a few ways in which this plugin can be used.
Support and Testing
Information about what version or versions of jQuery this plugin has been tested with, what browsers it has been tested in, and where the unit tests reside (so you can test it yourself).
1.3.2, 1.4.1, 1.4.2
Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.1.
1.1 - (3/14/2010) Fixed a minor bug that was causing the event to trigger immediately after bind in some circumstances. Also changed $.fn.data to $.data to improve performance.
1.0 - (2/10/2010) Initial release
Copyright (c) 2010 "Cowboy" Ben Alman
Dual licensed under the MIT and GPL licenses.