- Code: Select all
setInterval(function(){
outter = $('iframe');
inner = $('iframe').contents().find('body');
if(outter.height() < inner.height() + 10){
outter.height(outter.height()+50);
}
}, 100);
Ideally it would work as needed, not based on a timer. For example, when a enter key is pressed, it would check whether the height grown or not, and act accordingly, similarly binding to all other events (ideally it would just be on change, which jquery has such an event, not sure how to go about using that).
Anyone have any idea how to accomplish my ideallys?
Thanks a lot!