-
pdf within an iframe
hello what I am trying to do , is that I have 2 web pages, the first we will call first.html , and the second, second.html.
What I want to happen is this , when I click on a certain link , on first.html, I want for second.html , to appear , and also on an iframe , in second.html, I want a pdf to show up.
-
It isn't clear what you're trying to achieve. If you show us what you have tried, we can offer suggestions, but unfortunately, we can't troubleshoot something we can't see.
It sounds like you should do some research into iframes and the target attribute too, so start there and post back when you have a basic demo prepared for us to look at.
-
This sounds like a homework exercise and we won't do your homework for you as you would learn nothing from it.
As Beverley says, you need to do some research. Try starting here and then here.
-
I have done my homework, a whole lot of searching, and cannot find the answer , Go to http://wayfarer.atwebpages.com/first.html and it willl explain things further.
-
Unfortunately, I cannot access your website because it is being flagged as malware by the filters on my network. Hopefully someone else can help
-
2 Attachment(s)
I do not know why it is considered malware , does the index page show up as malware also??? Anyhow here are pictures or screenshots of the pages.Attachment 5730Attachment 5731
-
Well, you clearly haven't done much research as the first hit on Google for "iframe" led to this page.
Your page is probably flagged as malware because of the content of the active link which is a JavaScript redirect. If you want to create a link for general use just use the <a>...</a> tags and not Javascript which could hide all sorts of devious stuff (and in your case actually does!).
-
I looked at the web page you showed me , and I already knew this stuff, it is not at all what I am trying to do, and there is no devious stuff on my web page, it is a study of the trinity I wrote.
-
Now my index page , on that website , I use to have a study on Scribd , but took it off of Scribd , that would be why the study of the index page does not function.
I could try the <a></a> tag , but in the end it is much more than that , that I am trying to do , instead of writting a seperate page for each study, I wnat all of my studies to show up in this one iframe , on the second web page , I have succeeded in doing this on my studies page, but not on my index page, my iframe is on the studies page.
Hope you can help , just want answers , not asumptions.
-
Here is a code I used.
Code:
<div onClick='document.getElementById("someID").src="https://onedrive.live.com/embed?cid=0912027297A21B07&resid=912027297A21B07%218989&authkey=AD_ol5nd3vdkIvY&em=2&wdStartOn=1&wdEmbedCode=0&wdPrint=0";'>PDF test 1</div> <br><bR>
<iframe id='someID' frameborder="1" scrolling="no" width="100%" height="355"></iframe>
But now I changed it to an <a> tag.
Code:
<a onClick='document.getElementById("someID").src="https://onedrive.live.com/embed?cid=0912027297A21B07&resid=912027297A21B07%218989&authkey=AD_ol5nd3vdkIvY&em=2&wdStartOn=1&wdEmbedCode=0&wdPrint=0";'>PDF test 1</a> <br><bR>
<iframe id='someID' frameborder="1" scrolling="no" width="100%" height="355"></iframe>
this works on my studies page, but what I want is when I click on a link on my index page, that it brings me to my studies page, and also open my study in the iframe that is on the studies page.
I tried alot of codes including the web page you sent me too, but thanks for letting me know about stuff on the <a> tag and javascript.