472,984 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,984 software developers and data experts.

Changing an iframe

23
Hello, Dumb question... I have a web page that uses a couple of iframes, and what I would like to do is have a link on the main page that changes an iframe without refreshing the main page. I know it's possible to have a link in one iframe affect another iframe without refreshing the parent because that's the way I've been doing it up til now, but can a link on the parent affect an iframe without refreshing it so that I can get rid of the iframes that exist for only that purpose?

(let me know if I'm not making any sense, I havn't slept in a while and I may be rambling)
Oct 7 '07 #1
2 1482
Hello, Dumb question... I have a web page that uses a couple of iframes, and what I would like to do is have a link on the main page that changes an iframe without refreshing the main page. I know it's possible to have a link in one iframe affect another iframe without refreshing the parent because that's the way I've been doing it up til now, but can a link on the parent affect an iframe without refreshing it so that I can get rid of the iframes that exist for only that purpose?

(let me know if I'm not making any sense, I havn't slept in a while and I may be rambling)
Yes you can, all you do is this:
say iframe1 is the name of the iframe,
[HTML]<a href="URL" target="iframe1">Link</a>[/HTML]
hope it helps
Oct 7 '07 #2
Z1P2
23
Yes it does, and for the reference of others, if you are using a drop down form, it would look like this:

Expand|Select|Wrap|Line Numbers
  1. <FORM name="Whatever name"><SELECT size=1 name="URL" onChange="if(options[selectedIndex].value)iframe1.location.href=(options[selectedIndex].value)">
Oct 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: DJ WIce | last post by:
Hi, I have this situation: I have a main page with content and an IFRAME on it. The IFRAME has it's own style sheet and the body of that uses a class: <body class="IFbody"> How can I...
5
by: Jim Marquardson | last post by:
Hi, I've struggled with this for a while now, so I'm asking for help. I am trying to click on a link in one page, have that link open up in a new window, and set that newly opened window's...
3
by: Wade | last post by:
08242005 1416 GMT-5 Recently some of you helped me with a script to change images. Well I was asked to make a change to the script and not knowing if what the school system is even possible, Ill...
4
by: Robson Carvalho Machado | last post by:
Dear friends, I have an IFRAME that I want to change src url when clicking a button. How can I change IFRAME src using button_click ? <iframe runat="server" frameBorder=0 marginHeight=0...
2
by: Rob | last post by:
Hi Gang: I have a page that loads a remote page into an IFRAME. I don't have any control over this remote page though the page is owned by the same company I work for. The problem is that all...
3
by: David Virgil Hobbs | last post by:
I discovered how to write out the inner HTML of the contents of an Iframe; I want to know how to write out the outerHTML of the contents of an Iframe. frames.document.body.innerHTML allows me to...
4
by: libsfan01 | last post by:
hey this code wont work for my iframe in safari, i cant change the page by changing the src with js: <script language="javascript"> function loadcontent(page) {...
3
by: Prasad | last post by:
Hi , I am using a cross domain iframe in my page.. If i want to change the iframe height a/c to its content height , its giving Permission denied error as i am trying to access a function, which ...
3
by: bulldog8 | last post by:
I am having problems with changing a frames source file for Mozilla (1.5.0.4). The followig code works for IE: <script type="text/javascript"> var imgP = new Image(); function...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.