function setiframeheightafterload(id) { try { var iframe = document.getelementbyid(id); if (iframe.attachevent) { iframe.attachevent("onload", function () { iframe.height = iframe.contentwindow.document.documentelement.scrollheight; }); return; } else { iframe.onload = function () { iframe.height = iframe.contentdocument.body.scrollheight; }; return; } } catch (e) { throw new error('setiframeheightafterload error'); } }; function setiframeheight(id) { try { var iframe = document.getelementbyid(id); if (iframe.attachevent) { iframe.height = iframe.contentwindow.document.documentelement.scrollheight; return; } else { iframe.height = iframe.contentdocument.body.scrollheight; return; } } catch (e) { throw new error('setiframeheight error'); } }; function setparentiframeheight(id) { try { var parentiframe = parent.document.getelementbyid(id); if (window.attachevent) { window.attachevent("onload", function () { parentiframe.height = document.documentelement.scrollheight; }); return; } else { window.onload = function () { parentiframe.height = document.body.scrollheight; }; return; } } catch (e) { throw new error('setparentiframeheight error'); } }; function thisiframeheightauto() { setiframeheight("jobs"); }; $(function () { window.setinterval("thisiframeheightauto()", 200); });