Forum Moderators: open
We have had an ongoing problem for sometime now - and I think I have found the culprit - but not the cure.
We use iFrames on a lot of our sites (including our own) and sometimes the links to the iFrame page stop working and ones that do work open in a fresh window instead of the iFrame. Completely puzzled we searched for answers as it only happens on certain PCs.
I thought Yahoo/Google toolbar related etc but no joy. Then I noticed that the machines that had problems always had NTLWorld as there default home page...
Does anyone know why/what causes the problem and more importantly, how to avoid it!
Try it yourself, browse NTLWorld for a bit, then have a look at a site with iFrames.
<Sorry, no personal details.
See Terms of Service [webmasterworld.com]>
Cheers, Paul
[edited by: tedster at 5:02 pm (utc) on June 26, 2005]
1. try changing the name/id of your iframe
2. use absolute URLs on your site
3. might be a hidden frameset on NTL (a 0,100% kind of thing). Fight that with a frames-breaker script
However, it's more important to find a fix than understand the exact cause - so start with experiments 1 and 2.
However, it's more important to find a fix than understand the exact cause - so start with experiments 1 and 2
I disagree. It is often more urgent to find a fix but it is always preferable to find the cause of a mystery problem rather than bodge your way around it.
I've just spent two days attempting to track down an access violation issue in some code. In practical use, the error does not occur, however, until I find the cause, I cannot be certain that fault is benign rather than potentially severe.
Kaled.
When you view a page that is not showing the iframe look in the source code and see if the whole iframe code (tags and content) shows or not. Let us know what you see there.
I appreciate this problem may not be caused by Norton but for my interest do you have the whole Internet Security package and which version are you running?
Oh yes! - and what is the size of an iframe that is experiencing this problem i.e. "width" and "height."
Mark Barrett
MACK:
We are not using NTL for an internet connection (using Eclipse) - just on some of the guys PC's they have NTL World as the home page.
I know the 'fix' would be to not have that as the home page(!) but we are obviously thinking of clients.
MARK:
Here is the source code that works fine if you do not browse NTL World first...
<iframe src="pages/home.htm" id="main" height="100%" width="100%" scrolling="auto" name="main" frameborder="0" title="contents"></iframe>
TEDSTER:
Will try the things you have suggested ASAP and let you know what happens!
Thanks again, Paul
What I meant re the source code - when the page is in the browser and the iframe is not showing do View/Source Code or Page Source etc. Is the code there where it should be or not?
What I am really trying to ascertain is whether something has stopped the iframe code even getting as far as the browser?
Mark
Without this code (on NTL viewed sessions), the source page opens in a full page - outside of the iframe.
Not sure what that code would show you as it would just be the code for the source page.
I have removed the Javascript redirect from one of our links so you can see. I will PM you the website address.
Cheers, Paul.