Forum Moderators: open

Message Too Old, No Replies

iFrame problem - NTL Related?

         

pboreham

9:34 am on Jun 26, 2005 (gmt 0)

10+ Year Member



Hi all,

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]

mack

12:10 am on Jun 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You don't by any chance run an internet security application such as norton on those computers do you? I have had very similar sounding issues in the past and Norton was the cause.

Mack.

pboreham

5:49 am on Jun 27, 2005 (gmt 0)

10+ Year Member



Hi,

Yea, all the machines have Norton Internet Security. But like I say, the websites normally work fine on all machines - UNTIL you browse NTL World first, then in the same session, move onto an iFrame site...

I've not tried, but IIRC, it is the same on those machines with Norton on or off...

Paul

tedster

6:07 am on Jun 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some ideas:

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.

kaled

8:33 am on Jun 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.

mack

10:02 am on Jun 27, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Just as a tester, try conneting using a non-ntl internet connecton. This will determine if NTL is the reason.

Mack.

Mark Barrett

10:10 am on Jun 27, 2005 (gmt 0)

10+ Year Member




p

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

pboreham

10:21 am on Jun 27, 2005 (gmt 0)

10+ Year Member



Cheers for the replies so far guys:

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

Mark Barrett

10:36 am on Jun 27, 2005 (gmt 0)

10+ Year Member




p

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

pboreham

10:59 am on Jun 27, 2005 (gmt 0)

10+ Year Member



Hmmm, its hard to tell because I have added a script on the iFrame source pages to redirect back to the main site in case people are going directly to the source pages.

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.