Need Help with Iframe! Resizing? Redirect? whats the problem?

Discussion in 'Cloaking and Content Generators' started by choad, Jun 25, 2009.

  1. choad

    choad Registered Member

    Joined:
    Dec 28, 2008
    Messages:
    70
    Likes Received:
    119
    Ok what i am basically trying to do, since most (if not all) of the cpa e-mail submits needs at least the second page to be filled out in order for it to convert, is after they click submit i want to be able to resize or redirect them so after they type in the e-mail and click submit, they only see the form (from the second page) in the iframe instead of the form being shown in the first iframe.

    ex:
    Code:
    http://getpass.ueuo.com/2/
    when you type in the e-mail address, the second page is in the iframe =(

    i want to be able to put the second page in an iframe as well without it being messed up.

    can anyone help me?
     
  2. chuckz

    chuckz Newbie

    Joined:
    Jul 15, 2008
    Messages:
    31
    Likes Received:
    5
    What I would do is use AJAX to throw some sort of "waiting..." modal over the page for 2-3 seconds and resize/move the iframe to get the second page content positioned correctly after the user submits his e-mail. Here's one way to do that, courtesy of another BHW member I can't recall right now:

    Code:
    <script type='text/javascript'> 
    function checkHistory() {
    var hist=history.length;
    if (hist>1)//just change value 1 to other if you need :)
    	{
    		//redirect or resize or whatever... :P
    	}
    }
    </script>
    
    then add this to the iframe:
    
    onload="checkHistory()"
    
     
  3. ghettogong

    ghettogong Regular Member

    Joined:
    Oct 7, 2009
    Messages:
    299
    Likes Received:
    28

    did you succeed in iframing the 2nd page, im into to this matter at the momemnt..
    Posted via Mobile Device