Click to See Complete Forum and Search --> : MS Word appear in an iframe


jovialjonny
09-04-2003, 10:28 AM
Hi all,
I have an iframe on my webpage that allows users to load in pretty much any content they want eg.websites (via URL) or a local file from their machine.

Users have the option to open a second iframe alongside the first which contains exactly the same content (to aid in comparison and analysis of some documents).

The problem is with Microsoft Word documents. The doc will load into the main iframe no problem (by setting iframes.src = <file pathname>) however if they then open the 2nd iframe the Word document will not open again!

1 of 2 things happens:
1) The new iframe opens as a blank page.
2) The new iframe opens containing the Word doc but the original iframe now changes to a blank page.

I believe this is something to do with how Word doesn't allow for the same file to be opened twice (when using word normally if you already have a word doc open and try to open it again, it merely brings that page to the front.)

I have absolutely no idea what I can do about this problem so if anyone has any suggestions how I could solve this it would be greatly appreciated! I was thinking perhaps there is some way of confusing word into thinking its a different file or something but I am really stumped on this!:confused:

PeOfEo
09-04-2003, 05:03 PM
Why not save it in another format instead of a word doc, for instance do it all with word pad which uses rtf (rich text format). The only problem I can think of with this is if the person is using word as the default program to open .rtf files it could do the same thing it is doing with the .doc. You could always just use a .txt, it wont be as pretty but it will work.