You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by James Winburn <jw...@computerguidance.com> on 2008/11/20 21:56:12 UTC

display Word doc in iFrame

Hey guys,

 

It is possible to point the IE browser to an MS Word document and have
it displayed as though the Word application were invoked.  I tried to do
the same thing in an iFrame portlet. I set the source field to
file:///c:/doc1.doc <file:///c:\doc1.doc>  (and made sure the file
actually existed), but I just got a blank screen.  

 

The conf/web.xml file has a mime-type mapping for msword (extension=doc
and mime-type=application/msword) so it looks like it SHOULD work.  

 

What am I doing wrong? 

 

 

Thanks,

James Winburn

Computer Guidance Corporation

Scottsdale, Arizona

    


RE: display Word doc in iFrame

Posted by James Winburn <jw...@computerguidance.com>.
Thanks, Woonsan,

You didn't give me the actual solution, but you did point me in the
right direction.  :)

Here are some of the strings that will display local pages and documents
in an iFrame:

file:///test.html               <- page at local root directory
displayed.
http://localhost:8080/test.html <- page in jetspeed-2.1.3\webapps\ROOT
displayed.
http://localhost:8080/doc1.doc  <- document in
jetspeed-2.1.3\webapps\ROOT displayed in Word.


In short, while an html file can be displayed in either the workstation
or the jetspeed domain, a word document can only be displayed in the
jetspeed domain.  


James Winburn
Computer Guidance Corporation
Scottsdale, AZ

-----Original Message-----
From: Woonsan Ko [mailto:woon_san@yahoo.com] 
Sent: Friday, November 21, 2008 1:16 AM
To: Jetspeed Users List
Subject: Re: display Word doc in iFrame

I guess it could not be shown because the src url is not in the same
domain as the portal. Did you ever try with an http url in the same
domain of the word document?


--- On Thu, 11/20/08, James Winburn <jw...@computerguidance.com>
wrote:

> From: James Winburn <jw...@computerguidance.com>
> Subject: display Word doc in iFrame
> To: jetspeed-user@portals.apache.org
> Date: Thursday, November 20, 2008, 9:56 PM
> Hey guys,
> 
>  
> 
> It is possible to point the IE browser to an MS Word
> document and have
> it displayed as though the Word application were invoked. 
> I tried to do
> the same thing in an iFrame portlet. I set the source field
> to
> file:///c:/doc1.doc <file:///c:\doc1.doc>  (and
> made sure the file
> actually existed), but I just got a blank screen.  
> 
>  
> 
> The conf/web.xml file has a mime-type mapping for msword
> (extension=doc
> and mime-type=application/msword) so it looks like it
> SHOULD work.  
> 
>  
> 
> What am I doing wrong? 
> 
>  
> 
>  
> 
> Thanks,
> 
> James Winburn
> 
> Computer Guidance Corporation
> 
> Scottsdale, Arizona


      

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: display Word doc in iFrame

Posted by Woonsan Ko <wo...@yahoo.com>.
I guess it could not be shown because the src url is not in the same domain as the portal. Did you ever try with an http url in the same domain of the word document?


--- On Thu, 11/20/08, James Winburn <jw...@computerguidance.com> wrote:

> From: James Winburn <jw...@computerguidance.com>
> Subject: display Word doc in iFrame
> To: jetspeed-user@portals.apache.org
> Date: Thursday, November 20, 2008, 9:56 PM
> Hey guys,
> 
>  
> 
> It is possible to point the IE browser to an MS Word
> document and have
> it displayed as though the Word application were invoked. 
> I tried to do
> the same thing in an iFrame portlet. I set the source field
> to
> file:///c:/doc1.doc <file:///c:\doc1.doc>  (and
> made sure the file
> actually existed), but I just got a blank screen.  
> 
>  
> 
> The conf/web.xml file has a mime-type mapping for msword
> (extension=doc
> and mime-type=application/msword) so it looks like it
> SHOULD work.  
> 
>  
> 
> What am I doing wrong? 
> 
>  
> 
>  
> 
> Thanks,
> 
> James Winburn
> 
> Computer Guidance Corporation
> 
> Scottsdale, Arizona


      

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org