I have an iframe in a page (with a name to the iframe), and in that iframe I have several anchors
There are links in the iframe that look like
The problem is, when any of these links is clicked, along with the iframe, the parent page scrolls up too to the beginning of the iframe.
I tried this, doesn't work: - <a href="#something" target="the_iframe_name">
Does anyone know a solution? Thank you very much for your time.
2 3632 epots9 1,351
Recognized Expert Top Contributor
are u closing your tags?
[html]
<a href="#somethin g">go to something</a>
<a name="something ">about something</a>
[/html]
Sorry for the delayed response. Yes, I was closing the tags.
I could not solve this problem using anchors, so I found a different way - I kept track of the x,y co-ordinates of the scroll position of the page (where the anchor would have been) and used the javascript scrollTo(x,y) instead to go to that part when the "a href" was clicked on.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: splish |
last post by:
Hello,
I have the following problem:
An Iframe exists inside a page (that has content exceeding the height,
therefore scrollbars kick in) - normal stuff.
When I want to use anchor references inside the Iframe the parent
page is affected also, in that it jumps to the top of the iframe, as though
there were an anchor at that point.
|
by: Catherine Lynn Smith |
last post by:
I want to know the recommended way to handle scripting of/with
containers such as an iframe. I have a page with border-navigation
bars on the top/bottom/left/right and I want to use an iframe to load
content in the middle.
I would like, if possible, to have the parent window resize itself to
suit whatever is loaded into the iframe container, deriving the size
needed from calculated values. Thus the calculation would have to
over-ride...
|
by: catyionic |
last post by:
Greetings:
I have numerous links on index.html...example of one.....
<A HREF="stage.html#Flash" target="left">Flash</A>
It connects to page named stage.html ... which contains...
<a name="#FLASH">Flash ...</a></td>
It presents the data in the middle of index in an Inline frame. It
works real well, looks good, but everytime the link is clicked, the
|
by: Robert Mark Bram |
last post by:
Hi All,
We are using a scrolling iFrame to present a list of options to the
user within the main page with an anchor against each option. Depending
on the user actions, we jump to an anchor in the frame with code like
this:
theFrameSrc = theFrame.src;
theFrame.src = theFrameSrc + "#" + anchorName;
|
by: axlq |
last post by:
I'm trying to figure out how to make javascript set the scroll
position of a page to an anchor that's specified in the page URL.
You may ask, why? Doesn't the browser go there anyway when the URL
is loaded?
Yes, well, sort of. Dynamic HTML javascript activity that must
occur when the page loads messes up the scroll position in all
browsers except IE. (I'm contracting a bunch of expanded lists so
that javascript enabled browsers...
| |
by: LudwigWrules |
last post by:
I have an iframe on my site. I need the frame to display its "child" page at a specific point. I can do this by setting an anchor, but it makes the parent window go there, too. I was thinking of just using java script to make the iframe scroll bars go to a specific point when the page loads. Is that feasible, and do you know what script might accomplish this?
Here is the site: http://ludwig.squarespace.com/home/
The iframe window doesn't...
|
by: nma |
last post by:
Hi
How can I make the anchor link once I do onclick?
<td width="<?php echo ($cellwidth); ?>" height="17" bgcolor="#00ff00" onMouseOver="this.style.background ='red'"
onMouseOut="this.style.background='#00ff00'" onClick="window.frames.eventsDisplay.location = 'MB2eventlistTimeline.php?movieID=<?php echo $movie->movieID;?>&events=<?php echo $timeline->eventCategory;?>'; parent.playClip(<?php echo $timeline->eventID?>, <?php echo...
|
by: praveenb000 |
last post by:
Hi every one,
I designed a web page, having horizontal menu using UL and LI tags;
I need to be set rollover effect for a menu items.
whenever user hover on a menu item, the entire item(including anchor tag text) has to change to another color,
but since iam using anchor tag in LI tag, the text in the menu item is not changing color when i hover on the menu item(LI). (but changing color when i hover on the anchor tag Text).
But i...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |