View Full Version : Resolved iFrame help
Hello
I could use some help with iFrames. I have a page with an iframe and the external file that the iframe shows is a list of links to videos i have. Is it possible to click some link that opens the page with the iframe showing a different page?
Example:
Open the Page Normally:
<a href="http://www.mydomain.com/videos/home.html">
Open the page with the iframe showing a different page:
<a href="http://www.mydomain.com/videos/home.html#page-name">
OR
<a href="http://www.mydomain.com/videos/home.html" onclick="iframe.page=page-name">
Is it possible to do something like this???
Beverleyh
08-13-2009, 02:09 PM
I'm not really sure what you mean when you say "Is it possible to click some link that opens the page with the iframe showing a different page?"
Are the links outside of the Iframe (on the main page) and you want the pages to load inside the Iframe?
Or do you mean you have links on page 1, that when clicked-on, open page 2which has an Iframe, with X page loaded already into it?
Can we see your file/page structure? Can you provide a link of what you have already?
Sorry that your confused, I am too. The page with the iframe is here: http://www.fireflytv.net/channels/naruto. I want to give a link to someone but have the iframe showing a different page (ex: as though a ink in the iframe as been clicked on page load) if they arrived by clicking the link.
Example of narmal link:
<a href="http://www.fireflytv.net/channels/naruto">Click here</a>
What i'm looking for:
<a href="http://www.fireflytv.net/channels/naruto" onClick="iframe.src='new-url'">Click me<a/>
Does that help?
Beverleyh
08-14-2009, 07:48 AM
I think I understand - I believe this forum discussion will help you (there is example code to copy and paste: http://www.hotscripts.com/forums/html-xhtml-xml/31814-external-link-iframe.html
aubreylc
08-19-2009, 07:45 PM
make your target = your frame name in the main page.
[ICODE]<a href="pages/iframe.html" target="iframe_contents"><h2>Refresh vendor list</h2></a>
<!---Beginning iframe content--->
<iframe name="iframe_contents"
<iframe id="iframe_contents" width="380" padding="20px" height="400" frameborder="0"
scrolling="no" allowtransparency="true" src="pages/iframe.html"></iframe>
<!---End iframe content---> [CODE]
aubreylc
08-19-2009, 07:47 PM
<a href="pages/iframe.html" target="iframe_contents"><h2>Refresh vendor list</h2></a>
<!---Beginning iframe content--->
<iframe name="iframe_contents"
<iframe id="iframe_contents" width="380" padding="20px" height="400" frameborder="0"
scrolling="no" allowtransparency="true" src="pages/iframe.html"></iframe>
<!---End iframe content--->
molendijk
08-20-2009, 08:03 PM
I posted something on the subject here (http://www.dynamicdrive.com/forums/showthread.php?t=45866).
Right now, the demo-link I provided there is broken, so here's another link:
http://molendijk.freei.me/include_movieaudio_onthefly/include_movieaudio_onthefly.html
===
Arie Molendijk.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.