473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How to reference page in iframe only?

I have an iframe named previewError. The iframe tag attribute "src"
references a webpage using <a name=1> tag. In the parent page of the
iframe, I have

<a href="./iframe.html#1" target="previewError">1</a>
<iframe src="iframe.html" name="previewError"></iframe>

This works fine. When the name tag is out of view, I click the parent
anchor and the iframe page jumps up so that I see the area where the
name tag is. The problem is the iframe parent page also jumps pushing
the iframe to the very top of the parent page. How do I keep the
parent from jumping?

Thanks,
Brett

Jul 23 '05 #1
2 4834
In message <11**********************@o13g2000cwo.googlegroups .com>,
brett <ac*****@cygen.com> writes
I have an iframe named previewError. The iframe tag attribute "src"
references a webpage using <a name=1> tag. In the parent page of the
iframe, I have

<a href="./iframe.html#1" target="previewError">1</a>
<iframe src="iframe.html" name="previewError"></iframe>

This works fine. When the name tag is out of view, I click the parent
anchor and the iframe page jumps up so that I see the area where the
name tag is. The problem is the iframe parent page also jumps pushing
the iframe to the very top of the parent page. How do I keep the
parent from jumping?

Thanks,
Brett

Any chance of a url, so that we can see 'the big picture'?

regards.
--
Jake

Jul 23 '05 #2
Hi,

Please reference: http://64.106.155.121/public/index.htm

If you click the "1", you'll see both pages jump up. Clicking "1"
reveals the red link. However, both pages jump up. If there is no
vertical scroll on the parent page, the parent won't jump. For
example, this page does not have a veritical scroll bar on the parent:

http://64.106.155.121/public/index2.htm

You can see only the iframe jumps up. Is there a way to keep the
index.htm page from jumping up without removing the scroll bar?

Thanks,
Brett

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Angel | last post by:
How do I get the reference of the IFrame from the asp.net webpage that is being displayed within that IFrame? In other words I have an IFrame in my page. Within that IFrame Set the source to a...
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...
7
by: Andrew Mercer | last post by:
I am getting the above error when attempt to set the src, height and width of an iframe in C# code. I am using this as an attempt to dynamically alter the image displayed in the iframe tag of an...
23
by: paul | last post by:
HI! How so get the name of the present page into a variable? I need it because I need to attach it to a path so I can make others link to me. My pages are in iframes. Paul
42
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
7
by: pb | last post by:
Hi all, I have some code that automatically generates a url depending on user selections. This url is then set as a hyperlink and the user clicks on the link that has the target as an iframe on...
2
by: ericisjusteric | last post by:
I have a page with multiple iframes and need to have the user (ie6) be able to click a button to refresh any one of the iframes - but also to click another button at the top of the page to refresh...
1
by: Logos | last post by:
I have a bit of an issue that seems like it should be simple, but I'm missing some crucial understanding of some sort. I have a login page I am loading into an iframe from a button click on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.