1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Affiliate iframe help

Discussion in 'General Scripting Chat' started by bizzerd, Aug 19, 2016.

  1. bizzerd

    bizzerd Newbie

    Joined:
    Jul 5, 2010
    Messages:
    14
    Likes Received:
    1
    I'm with Crakrevenue and have a iframe that captures one of Crakrevenue Register form's. but when someone submits the forms, it loads the new page in my iframe, instead of my parent page. Anyway to make this submit redirect happen on my parent page? Thank you!


    Code:
    <div id="container">
        <iframe id="embed" src="http://www.example.com"></iframe>
    </div>
    
    
    div#container
    {
        width:840px;
        height:317px;
        overflow:scroll;     /* if you don't want a scrollbar, set to hidden */
        overflow-x:hidden;   /* hides horizontal scrollbar on newer browsers */
    
        /* resize and min-height are optional, allows user to resize viewable area */
        -webkit-resize:vertical;
        -moz-resize:vertical;
        resize:vertical;
        min-height:317px;
    }
    
    iframe#embed
    {
        width:1000px;       /* set this to approximate width of entire page you're embedding */
        height:2000px;      /* determines where the bottom of the page cuts off */
        margin-left:-183px; /* clipping left side of page */
        margin-top:-244px;  /* clipping top of page */
        overflow:hidden;
    
        /* resize seems to inherit in at least Firefox */
        -webkit-resize:none;
        -moz-resize:none;
        resize:none;
    }
     
  2. tasburrfoot

    tasburrfoot Regular Member

    Joined:
    Dec 16, 2008
    Messages:
    323
    Likes Received:
    152
    Do you have to use an iFrame? I can't think of any efficient way of doing what you're asking..

    Otherwise use some kind of JS to add an onClick() event to the submit button on the form.