iFrame disappears. Help!

by Bearded 8 replies
One of my affiliate managers just sent me a coupon code for one their products.

I'd like to create a page where there's a small iframe at the top that just says:

and then the affiliate page is underneath.

But it seems no matter what I try, the affiliate URL busts itself out of the frames and loads in the whole window.

Is there any way around this?

(Yes, I know I need to check my affiliate TOS before doing this.)

Any help would be greatly appreciated.

#main internet marketing discussion forum #coding #html #iframes
Avatar of Unregistered
  • Profile picture of the author waken
    Why would you want to put the coupon code in an iframe? Just put it on your site and the iframe to load the affiliate site.
    {{ DiscussionBoard.errors[20897].message }}
    • Profile picture of the author Bearded
      I tried it both ways actually. I even tried regular frames (the horror!), and nothing wants to work.
      {{ DiscussionBoard.errors[20901].message }}
      • Profile picture of the author waken
        Not sure if you're using the correct code..anyway..here's one with auto scrolling if the affiliate site screen is large..you can adjust the width and height to your liking...

        Your Coupon Code Here
        <!--begin code -->
        <div align="center">
        <IFRAME width="800" height="800" FRAMEBORDER="0" HSPACE="0" VSPACE="0" name="plugin" SRC="http://youraffiliatelink.com" scrolling="auto"></IFRAME>
        <!--end of code -->
        Or this without the scrolling option:

        Your Coupon Code Here
        <iframe width=800 height=800 src="http://youraffiliatelink.com" frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>
        Hope this helps..
        {{ DiscussionBoard.errors[20948].message }}
        • Profile picture of the author Bearded
          Yeah, that's basically what my code looked like. I see my little div at the top for a second, and then the affiliate page loads in the whole window.

          I think when the redirect happens it must be loading in _parent or something.

          Hmm...I'll have to figure something else out.

          Thanks for your help.

          {{ DiscussionBoard.errors[21097].message }}
  • Profile picture of the author Gail Sober
    They are probably using frame busting code on their website. Check the pages source code for something like

    if (top !=self)

    Try adding


    to the iframe tag to stop the frame buster from working.

    {{ DiscussionBoard.errors[21259].message }}
    • Profile picture of the author seasoned
      Are you aware that you could be SHOOTING YOURSELF IN THE FOOT?!?!? cookies may not be allowed in any frame. If they aren't, you probably won't get credit EVEN if the company allows it.

      {{ DiscussionBoard.errors[23651].message }}
      • Profile picture of the author Bearded
        Cookies and frames certainly aren't mutually exclusive. I do this kind of thing for CPA offers all time and it works just fine.

        However, in this case, I decided just to make a bridge page. We'll see how it works.

        {{ DiscussionBoard.errors[23682].message }}
        • Profile picture of the author seasoned
          I'm just telling you the way things are. It went into IE7, and XP SP2. It's one of those things you can't simply test, as it relies on the clients settings. It is much like generating your own SSL cert. You CAN do it! The reason why Verisign gets paid so much is because THEIRS are accepted without warning. You CAN disable the warning on YOUR system easily. The only problem is what do you do about the millions of others!?

          {{ DiscussionBoard.errors[24202].message }}
Avatar of Unregistered

Trending Topics