[Pro] iFrame query

I’ve put an iframe instance on a page to display a page from another web site on a different domain. The iFrame action is the only thing on the page.

When I publish it certainly pulls in the requested page, but after a few seconds the URL in the address bar changes from www.mydomain/iframepage.html to the URL of the supplying web site.

Is this normal behaviour? How can I ‘import’ (for want of a better word) a page from another site without it displaying the supplying site’s URL? The way the iFrame is working at the moment is no different than just providing a link to another site!

I tried a PHP include but got a bunch of [include-function] errors, so I guess PHP isn’t set up for it…??

Hugh


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’ve put an iframe instance on a page to display a page from another web site on a different domain. The iFrame action is the only thing on the page.

Is it a page from a site of your own - or a third party.

If a third party then it may well be that the page in question contains some ‘frame busting’ code.

Post a link.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi David,

It’s a page from one of my own sites, but a completely different domain - I just used it for the experiment!

The iframe is at: http://www.conformance.co.uk/agosto2014.php

Hugh


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s interesting…I just tested that link above in two different browsers.

In Safari the URL in the address bar quickly changes to the URL of the target site. ie. you’re visibly on a different domain.

In Chrome the URL in the address bar remains that of the host site.

Bloody browsers, who’d have 'em…!!

Hugh


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As I suspected there is iFrame busting code on the mulucaves.org/cube/index.php page

It is included in the common.js file

    /* Break out of iframe - mainly used for iFrame payment gateways to stop confirmed page showing within CC */
    if (top.location.href!=self.location.href) {
            top.location = self.location.href;
    }

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi David,

Interesting! Not sure whether it’s actually desirable to fix that?.. But if it was how would you fix it, change the js code?

As I say, different browsers seem to give different results!

Hugh


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

different browsers seem to give different results

Chrome, for example, treats the iFrame’s js as a security breach and blocks it - other Browsers are not so picky.

The code is there with respect to the Cart functionality on that Framed page.

Why is it you are pulling in the iFramed page in the first place?

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Why is it you are pulling in the iFramed page in the first place?

Long story, which I haven’t time to type out and tell you!
Briefly…hosting company doesn’t support ioncube - client won’t move from hosting company - so run ioncube and the script somewhere else and pull it into main site.

At least that’s my idea. Maybe there’s a better one?

Hugh


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

And why do you need ioncube?

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

because the script (Cubecart) is ioncube encoded


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

because the script (Cubecart) is ioncube encoded

OK - that makes sense.

Then I would try removing the iFrame buster code from the common.js file but I have no idea of the security implications.

I am assuming that you have too much invested in Cube Cart to consider an alternative?

Or if it is all downloadable products would LinkLok be a viable alternative?

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I have far too much invested in this whole ecommerce issue…time, mostly! All brought about by Barclays changing their encryption routines which could not be fixed in the cart we were using without lengthy and difficult upgrade. I won’t go into the rest of it, it makes me weep…


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I hope you are charging this guy plenty when an easy fix would be changing hosting.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options