Forum Moderators: open

Message Too Old, No Replies

<iframe> --- targetting, anchors, etc.

i must be missing something very simple.

         

PatrickKerby

7:32 pm on Jun 14, 2004 (gmt 0)

10+ Year Member



Hello,
here is my problem:

PageA has 3 buttons which link to anchors on 3 different paragraphs on PageB.

PageB is located in an iframe on PageC.

although I think I have everything setup correctly, the links on PageA still open up PageB on its own rather than within the iframe on PageC.

any common errors?
any suggestions?
thanks!

Patrick

pageoneresults

7:39 pm on Jun 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do your links have the target attribute set for the
<iframe>
? For example...

<a href="file.htm" target="i1">

i1 being the name attribute of the

<iframe>
.

P.S. I don't think I understood your question quite clearly. My answer may not be what you are looking for.

PatrickKerby

7:46 pm on Jun 14, 2004 (gmt 0)

10+ Year Member



sorry.. you're right, it wasn't very clear.

my first page, which has the links on it.. does not have the iframe on it.

so my links need to direct to
a) the second page,
aswell as
b) the anchor on the page in the iframe on the second page.

but when i click on my link, it brings up only the content of the iframe rather than within the page the iframe is nested in

DrDoc

7:48 pm on Jun 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So, you need to link to page C (with a query string)... and have something on that page that will recognize the URL, and open the page in the iframe.

PatrickKerby

7:54 pm on Jun 14, 2004 (gmt 0)

10+ Year Member



yeaah... um.. pretty much.

i may just scrap the iframe and do it a way i know how... but if its possible to get it to direct it properly as i want it... would be nice to know

DrDoc

8:38 pm on Jun 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd scrap the iframe too if I were you ;)

Why are you using the iframe, by the way?

PatrickKerby

8:42 pm on Jun 14, 2004 (gmt 0)

10+ Year Member



lol.. because it was a quick fix at the time.... which has resulted in.. well.. not a quick fix.

thanks for the thoughts.