Forum Moderators: open

Message Too Old, No Replies

IE 6 iframe problem

scrolling its parent page when it shouldnt

         

fireball

5:21 pm on Dec 16, 2002 (gmt 0)

10+ Year Member



Seems like a lot of knowledgable people in here, hopefully someone knows the answer to mine :).

I have a small internal website made for my company. The main page contains a table. The top 100 pixels of the table is a graphic and a javascript menu. The rest of the table ( from 100 pix to bottom of page ) contains an iframe which all the content is loaded into. Everything about it works fine except for one unique problem.

A few of the pages loaded into the iframe contain an anchor link ( like <a href="#A2"> ) which links down further on the page. This works fine when the page is by itself. However when loaded inside the iframe, it causes the parent page itself to scroll down the height of the menu and graphic. You cannot scroll back up to them. Its as if IE 6 pushed the entire table up about 150 pixels, obliterating the graphic and menu. I have never heard of anything like this before, does anyone know how to fix it?

tedster

5:08 pm on Dec 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, fireball.

I just tested this in IE6 and I cannot duplicate the problem. So, it's start with the basics, I guess.

Have you validated the HTML for both pages? And what DTD are you using?

This should work smoothly, so lets dig down to the source of the problem.

korkus2000

5:42 pm on Dec 17, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does it happen on the same pages every time?

fireball

5:21 pm on Dec 19, 2002 (gmt 0)

10+ Year Member



We'll, Ive isolated the problem causer to the javascript menu. If i load the page with the menu in it, and use an anchor link, it scroll up too far like before. If I load the page without the menu however, it scrolls properly. But this problem only affects the page anchors, and not normal links. I dont know javascript that well though, I am trying to use a menu I downloaded off of a free script page.