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:
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: