This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Load a file(.pdf,.doc,.jpg) in same page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Load a file(.pdf,.doc,.jpg) in same page " Watch "Load a file(.pdf,.doc,.jpg) in same page " New topic
Author

Load a file(.pdf,.doc,.jpg) in same page

Anand Krishnanandam
Greenhorn

Joined: May 23, 2006
Posts: 25
I want to know a best way to view a file of any type (.pdf,.doc,.jpg,.tiff) on to the same page instead of opening a new window.
Example : If I click a button to open a pdf, it should open right below the button.

Thanks,
Nithya.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56205
    
  13

Open it in an iframe.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Anand Krishnanandam
Greenhorn

Joined: May 23, 2006
Posts: 25
Thanks a lot.
Anand Krishnanandam
Greenhorn

Joined: May 23, 2006
Posts: 25
I'm able to load the pdf files to the Iframe but not the doc files. They open using the MS word. Do I need to treat the doc files differently, so that they can be loaded in the IFrame.

Thanks for any help.
Anand.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Load a file(.pdf,.doc,.jpg) in same page
 
Similar Threads
open pdf file from a JSP page
iText and FDF
Surprising .. "Member Not Found"
How to open a local file in Java program
convert to pdf file format