Hi Bob,
Thanks for the reply.
My requirement is that i have to set the iframe height by calculating the
height od the document uploaded on a particular link , whose container is an
IFRAME.
We are calculating the height of the file uploaed is this way:
var objFrame=document.getElementById('theiframe');
var objFrameDocument=objFrame.contentWindow ?
objFrame.contentWindow.document

bjFrame.contentDocument;
if(objFrameDocument)
{
//if(objFrameDocument.documentElement=="CSS1Compat" &&
objFrameDocument.compatMode=="CSS1Compat" &&
objFrameDocument.compatMode=="CSS1Compat")
if(objFrameDocument.documentElement && objFrameDocument.compatMode &&
objFrameDocument.compatMode=="CSS1Compat")
intDocHeight=objFrameDocument.documentElement.scrollHeight;
else
intDocHeight=objFrameDocument.body.scrollHeight;
}
intDocHeight=intDocHeight+300
objFrame.style.height=intDocHeight
return (intDocHeight+300)+"px";
This piece od code is working prefect with all the types of files:
xls,doc,pdf,ppt,htm,ppt, xls converted to mht or htm etc.
But when we convert Doc to mht with an image in the doc, the height returned
is not correct.
In all the conversions I am using the Save as option only.
Hope it answers your question.
Please let me know if more input is required.