Forums

This topic is locked

Help with anchors and iFrames

Posted 28 May 2004 00:22:49
1
has voted
28 May 2004 00:22:49 Greg Castell posted:
I'll do my best to describe my problem, so bear with me. I've just created a website, www.learningbrook.org (it might be easier to understand my problem if you visit the site), that uses a separate page for each subjest/tab on the link bar, and each one of those different pages contains an iFrame that displays a unique page. If you look at the homepage (please do), you'll see several questions (in the iFrame) underlined and in blue. I'd like users to be able to click on those questions to be taken automatically to that Q/A pair. I know hoew to do this using named anchors and links with the # sign to specify the anchor. However, the problem occurs when I create an anchor and link to it, when I click on the link, the page that's normally displayed in the iFrame (the content page) opens by itself and goes to the anchor, instead of staying in the iFrame and just juming to that anchor. Is there a way to fix this? I've already emailed Macromedia, and their only advice was to post on the Macromedia forums, which I've done, but nobody has replied. If you have any qustions for me, just post them and I'll do my best to answer them. Thanks in advance!

--Greg

Replies

Replied 28 May 2004 17:10:28
28 May 2004 17:10:28 Dave Thomas replied:
u tried setting a target in the link?

target="_self"

Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Replied 28 May 2004 17:43:19
28 May 2004 17:43:19 Greg Castell replied:
This seeems to work, and it also works without setting the target! Now a more complicated question. Like I said earlier, every tab on the link bar, and every one of those unique pages has its own content page. For example, when you click on the "Resources" tab, you're taken to the resources.htm page, and the resources_content.htm page is displayed in the iFrame in the resources.htm page. Is there a way to have a link from, say, the home page take a user to an anchor on a different page's content page. When I tried this before, the link would work, but the link to an anchor on the resources_content page from the index page would result in the resources_content.htm page opening inside of the index.htm's iFrame. Is there a way to make it so the correct content page opens inside of the correct display page? Thanks again for the help!

--Greg

Reply to this topic