Forum Moderators: open

Message Too Old, No Replies

iFrame headache

         

Alfasys

8:49 am on Jun 25, 2003 (gmt 0)

10+ Year Member



Hi there,

I still do have a problem with the iFrame command.

I added this to the BODY section

<iframe src="x.htm" name="myFrame" id="myFrame" scrolling="yes" frameborder="0"></iframe>

Now, in my browsers IE6.0, Netscape 7.0 and Opera 6.05 it works just fine, I can scroll up and down within the frame defined by the iFrame command. Some visitors told me that they cannot scroll in this frame.

I know it's very odd, but it's getting even stranger.

After adding following script in the HEAD section more people can navigate and scroll within the iFrame formed window, but not everyone.

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function writeLayer(text) {
document.frames['myFrame'].location.href = text;
document.addrForm.location.value = text;
}
function setLayer(text) {
if (text.indexOf("http://",0) <= 0)
text = "http://" +text;
document.frames['myFrame'].location.href = text;
document.addrForm.location.value = text;
}
// End -->
</script>

I know there's no connection between the two pieces of code.

What is the problem?

Thank you for a respons.

Karl

SuzyUK

8:55 am on Jun 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi alfasys I just caught this post so I don't have time to search for a previous reply just dashing out ;)

but I answered a previous question like this before, though it wasn't javascript related, but the theory may be the same

The solution was to add a z-index to the iframe so it wasn't being "obscured" by a div... perhaps it's the same with layers?

I'll look later if you can't find post

Suzy

futureX

11:40 am on Jun 25, 2003 (gmt 0)

10+ Year Member



The best thing would be to find out what browsers those users are browsing with, and then investigate.

SuzyUK

2:09 pm on Jun 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



alfasys... here's the previous post on this [webmasterworld.com], it may or not be the same problem, I believe there was also a bug in NN6.1 regarding scrolling iframes too..

More browser specific info as per futureX's suggestion would help and/or a code snippet would be a help if you still can't get it figured..

Suzy

Alfasys

2:23 pm on Jun 25, 2003 (gmt 0)

10+ Year Member



Thank you for the tips.

First I'm gonna try to fix the z-index for the iFrame tag. I'm also gonna contact the people with the problem to mail me the settings and the info of their browsers to check where it go wrong. If there are more suggestions for this problem, they're very welcome. Thank you.

Karl