var dwWindowResizerTimeout = null;
jQuery(window).load(function(){
var pageProxyURL ='http:///pageProxy.html';
var jFrame;
var opts = {
"id" : "hiddenIframe",
"css" : {
"position":"relative",
"top":"0",
"left":"-2200px"
},
"height" : "5",
"width" :"100",
"border" : "0",
"scrolling" : "no",
"src" : pageProxyURL
};
jFrame = jQuery('', opts);
if(jFrame){
jQuery("body").append(jFrame);
var iframe = jFrame.get(0);
var updateH = function(){
var newHeight = 0;
if(self.innerHeight){
newHeight = document.body.offsetHeight;
}
else{
newHeight = document.body.scrollHeight;
}
newHeight = parseInt(newHeight,10) + 50;
iframe.src = pageProxyURL+'?height=' + newHeight;
};
updateH();
jQuery(window).resize(function(){
clearTimeout(dwWindowResizerTimeout);
dwWindowResizerTimeout = setTimeout(updateH,200);
});
jQuery('body').on('dwHeightChange', function(){
updateH();
});
}
});
function updateIframeHeight() {
}