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

On submit form in iframe hide div?

Discussion in 'HTML & JavaScript' started by zendobi, Jun 7, 2009.

  1. zendobi

    zendobi Newbie

    Joined:
    Jul 21, 2008
    Messages:
    15
    Likes Received:
    15
    Ok I hope you all can understand what i am going to try to explain.

    The scenario> You send someone to a page that you have a CPA offer in an Iframe that is held in a DIV layer that pops up on page load and covers the entire page. When they enter their email and submit the form I want to hide the DIV and allow the visitor to view the page.

    Ok so it that possible? and if so could you point me to maybe an example somewhere?

    Thanks,

    Mike
     
  2. someotherguy

    someotherguy Newbie

    Joined:
    Feb 5, 2009
    Messages:
    21
    Likes Received:
    3
    I don't have an example, but you could just set up the onSubmit property of the form to make the div hidden. Or possibly the onClick of the submit button.
     
  3. zendobi

    zendobi Newbie

    Joined:
    Jul 21, 2008
    Messages:
    15
    Likes Received:
    15
    I thought about that, but the forms are for CPA offers, so I dont have access to the form code.
     
  4. Thug Media

    Thug Media Regular Member

    Joined:
    Jul 13, 2008
    Messages:
    341
    Likes Received:
    285
    Occupation:
    Ultrapreneur
    Location:
    <?php England () ?>
    What about the blackhat code breaker script would that be any good for you ?

    TM
     
    Last edited: Jun 9, 2009
  5. blackhatjamie

    blackhatjamie BANNED BANNED

    Joined:
    Sep 11, 2007
    Messages:
    341
    Likes Received:
    276
    Isnt that what CPAgod does already?
     
  6. someotherguy

    someotherguy Newbie

    Joined:
    Feb 5, 2009
    Messages:
    21
    Likes Received:
    3
    OK, so you'll have to serve up a page from your server. In the page have two iframes, the one on top is your overlay page, when they hit submit it hides this top iframe. If you're trying to put a cpa offer in the overlay page, use GodCPA to make a duplicate of the form so you control the onSubmit.

    Load the second "underneath" page in the second iframe. They'll get to see it when the overlay frame goes away.

    Realize the visitor will never see the thanks page for the first form submit, so if there's something there that they needed to see or click, then you might be out of luck.
     
  7. zendobi

    zendobi Newbie

    Joined:
    Jul 21, 2008
    Messages:
    15
    Likes Received:
    15
    I have a friend that has GodCPA, and built the code with it, and tried it, it doesnt succeed at hiding the iframe. It still shows the next page, so then I tried wrapping the whole thing in a floating div, like is seen in blackhat code breaker, but it still wont hide.

    The next idea, I have is setting up a javascript in the main page to detect mouse clicks, so that when someone has clicked their mouse 2 times, it hides the div, like they click the input field to enter their email, then click the submit. Does that sound like it would work.
     
  8. dwarf777

    dwarf777 Newbie

    Joined:
    Jun 10, 2009
    Messages:
    34
    Likes Received:
    8
    Location:
    NYC
    Try to use onload event in iframe, make a count, and on second load of iframe, redirect iframe to the "Thank you" page.
     
  9. onegg

    onegg Junior Member

    Joined:
    Dec 12, 2007
    Messages:
    147
    Likes Received:
    176
    Location:
    In your mind
    try blackhat code breaker