The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> PDFs in a DIV
Norfolkman365
post Oct 3 2016, 09:16 AM
Post #1





Group: Members
Posts: 1
Joined: 3-October 16
Member No.: 24,868



I have a list of items on a webpage and if I click on one, it will open a pdf associated with that item....Simple enough!
However, I want that pdf to open in a DIV which will be located elsewhere on the page and, of course, any of the other links clicked on, to open in the same DIV. I feel this should be simple in HTML but need a pointer in the right direction. I don't have access to PHP.
Many thanks in advance,
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 3 2016, 10:12 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



You can't open files in a DIV. You are looking for IFRAME. Maybe it can be done with OBJECT and JavaScript also, but IFRAME should be safer.

Note that if the user don't have their browser configured to allow PDF to be opened in the browser, it won't be. That user will instead get an normal download dialogue.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 09:47 AM