Tuesday, July 07, 2009

jGenerateRefresh jQuery plugin on Codeplex

Ever wanted to bind something to the layout rendering phase of an element in Javascript? This helps, by checking at a fixed interval if the size or position of an element have changed and, if so, firing the 'refresh' custom event. All one has to do is then bind to it.

Codeplex page: http://jgeneraterefresh.codeplex.com/
JQuery plugins page: http://plugins.jquery.com/node/9030

$(function() { 
$('#target').generateRefreshEvent(100); // every 100 milliseconds