Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe not loading correctly

Status
Not open for further replies.

madHatter1

Technical User
Feb 27, 2003
54
GB
Hello

I have a Web site which uses iframes - and so far they all work fine.

I have four iframe links: About us, Portfolio, Guestbook, and Contact us. The default page, which is the "About us" link, loads into the iframe when the user first visits the site. When I click on Portfolio or whatever other link, the default "About us" page is replaced with whatever linked page the user clicks.

The problem I have is that once the user has visited the links and then GOES BACK to the "About us" page, the page doesn't open in the iframe, but in a separate (and (quite large) window.

Why is that, and how can I code it so that it loads into the iframe?

Many thanks

Hatter
 
Put all the navigation links on your main page ie
about us, protfolio, guestbook etc
and make sure to use

<a href=&quot;about.html&quot; target=&quot;yourframename&quot;>About Us</a>

Regards
Ian Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
Hello Ian

Many thanks for your reply (and my apologies for the delay in getting back to you).

I already have what you suggest:

| <A HREF=&quot;about.html&quot; target=&quot;Frame1&quot;><b>about us</b></A> | <A HREF=&quot;contact.html&quot; TARGET=&quot;FRAME1&quot;><b>contact</b></A> | <A HREF=&quot;gallery1.asp?Path=images&Series=anime&ImageNumber=1&quot; TARGET=&quot;FRAME1&quot;><b>portfolio</b></A> | <A HREF=&quot;/guest/gnew.asp&quot; TARGET=&quot;FRAME1&quot;><b>guestbook</b></A> |

As I say, the links work in the iframe except the:
<A HREF=&quot;about.html&quot; target=&quot;Frame1&quot;><b>about us</b></A>

Even that works, except when I try to go back to it from another link.

Cheers

Hatter
 
I think its an uppercase/lowercase problem with your target attribute.
If your frame name=&quot;Frame1&quot; then all the target attributes should be target=&quot;Frame1&quot; and not target=&quot;FRAME1&quot; or vice versa. Anyway just make sure the are in the same case.
Regards
Ian Infinity exists! - I just haven't worked out a way to get there yet.

| |
 
Many thanks, Ian

Actually, it is, apparently, case-sensitive. Anyway, it's working now!

Best wishes

Hatter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top