PDA

View Full Version : Intermittent Frame problem



szirtest
01-21-2004, 01:31 PM
I'm having an intermittent problem with opening a link in frames (I'm using iExplore6). I have a navigation bar in one frame, that opens a link in the main information frame. My fear is that on some browsers this could be happening 100% of the time.

I'm using:

[code]<a href="mylink" target="main"></code]

to access the link and

[code]<frameset ...> <frame name="nav"><frame name="main"></frameset>

to define the frames...

This works 99% of the time, but occasionally the link opens up in the top level window not the target.

Anyone had this problem? Is there a way to solve it (other than remove all frames from my website).

Thanks

Tom

sma
01-21-2004, 08:26 PM
I havn't have such problem eventhough I used it a greate deal of times.
I suspect misspelling of target name of the link.
If you still have problem, let us have the nearest sample to approach the problem.

bbcompent1
01-21-2004, 09:34 PM
Usually to avoid framing problems, I make the use of the <DIV> tags as they create the same effect without having a page for each framed area. A good example of this would be if you had a table that was free-standing inside of a web page. In essence it will appear to be a framework but its not. Its still the same page with a div tag. Just my two cents worth. :)

szirtest
01-22-2004, 07:19 AM
The strange thing is that it works most of the time 95%, occasionally the browser goes into a mode where it loads the link in the top frame not the target frame. I need to restart the browser and then it works again!!! Though strangely my client checked the site at an internet cafe and he got the same problem.

This is the code for the frameset.


<frameset cols="*,700,*" framespacing="0" frameborder="0" border="0">
<frame name="left" src="blank.htm" scrolling="NO" border="0" frameborder="NO" framespacing="0" resize="no" noresize marginwidth="0" marginheight="0">
<frameset cols="107,*" framespacing="0" frameborder="0" border="0">
<frame name="menu" src="newmenu.htm" scrolling="NO" border="0" frameborder="NO" framespacing="0" resize="NO" noresize marginwidth="0" marginheight="0">
<frameset rows="100,*" framespacing="0" frameborder="0" border="0">
<frame name="header" src="newheader.htm" scrolling="NO" border="0" frameborder="0" framespacing="0" resize="no" noresize marginwidth="0" marginheight="0">
<frame name="main" src="Biography.php" scrolling="auto" border="0" frameborder="0" framespacing="0" resize="NO" noresize marginwidth="0" marginheight="0">
</frameset>
</frameset>
<frame name="right" src="blank.htm" scrolling="NO" border="0" frameborder="0" framespacing="0" resize="no" noresize marginwidth="0" marginheight="0">
</frameset>


and the menu html frame contains this


butHome.jpg (biography.php)


Very strange.

I know a lot of people don't like frames - I can see there disadvantages but I what I like (coming from an OO background) is that the site layout/appearance and content are seperated.

There is one (well two including the site css document) place (the index.htm that has the frameset) that defines the site appearance so changes are global without editing every page.

I must admit I'm not an HTML expert - so perhaps I'm missing a better way of doing it. How would you tackle this problem? Is there a way to embed one html document into another? (other than using a script to do it). I've never used IFrames - are they any better than regular frames?

szirtest
01-22-2004, 07:55 AM
oh by the way - here's the website in question:

http://www.georgeszirtes.co.uk/

sma
01-22-2004, 09:18 PM
It's sound strange. I can't generate that mode in my machine. I hope it's because of some condition. I suggest you to trace this bug according to the procedure you can generate that mode.