Here's a view of that code without the annoying "SystemSettings.Apos", which KILLS readability. I know we HAVE to do something to get double quotes in there, but the bloat just irks me.
IF Doc.DocFile IS DEFINED THEN
Doc.EmbedPath='<div id='+"+'pdf'+"+' style='+"+'width:940px; height: 500px;border: 2px solid #C4C4C4;'+"+'>
<iframe src='+"+Doc.FilePathView+'#zoom=85&scrollbar=0&toolbar=0&navpanes=0'+"+' type='+"+'application/pdf'+"+' width='+"+'100%'+"+' height='+"+'100%'+"+' style='+"+'position: relative;'+"+'></iframe>
</div>'
Now, one can see a but more of what you're doing. Its a nice hack.
In what way does it not work with IE?
Also, don't know if this tip will help anyone,
If I was doing this in my code, I'd write it like this just to help readability:
Doc.EmbedPath=REPLACE_PATTERN( '<div id='+~+'pdf'+~+' style='+~+'width:940px; height: 500px;border: 2px solid #C4C4C4;'+~+'>
<iframe src='+~+Doc.FilePathView+'#zoom=85&scrollbar=0&toolbar=0&navpanes=0'+~+' type='+~+'application/pdf'+~+' width='+~+'100%'+~+' height='+~+'100%'+~+' style='+~+'position: relative;'+~+'></iframe>
</div>' ,'~',SystemSettings.Apos)