iFrame help. Can you look at this code?

3 replies
Okay:

I have a registration form on my home page at Redfoxrebates.com. The programming for the form is complicated; so instead of trying to duplicate it, I used an iframe to place the form on http:///www.redfoxrebates.com/blog. Probably not the best option, but it seems to be working except for one thing.

When you fill on the form on the blog; the success page is only in the small iframe? I want the user to be direct to the full size success page. Can anyone with iframe or other programming experience help??

If this doesnt make sense you can try it out. Just fill in an invalid email; I can delete later.

Here is the code to the iframe that I am using:

<li>
<style>
#outerdiv
{
width:270px;
height:410px;
overflow:hidden;
position:relative;
}

#inneriframe
{
position:absolute;
top:-580px;
left:-740px;
width:1280px;
height:1200px;
}
</style>
<div id="outerdiv">
<iframe src="http://www.redfoxrebates.com" id='inneriframe' scrolling=no></iframe>
</div>
</li>

Any help would be great!! Thanks.
#code #iframe
  • Profile picture of the author Steve Diamond
    Try adding target="_parent" inside the form tag. This should definitely solve your problem where you embed the form in an iframe, and depending on how you use it elsewhere, it probably won't cause any other problems.

    Steve
    Signature
    Mindfulness training & coaching online
    Reduce stress | Stay focused | Keep positive and balanced
    {{ DiscussionBoard.errors[1049309].message }}
  • Profile picture of the author Spencer Haws
    Thank you! I got it to work. I actually ended up using the "_top" in the form tag. The "_parent" was not working for some reason. However, I never would have figured it out without your suggestion. Thanks!
    Signature
    Get Long Tail Pro, My Ultimate Keyword Research Software - Quickly Find Profitable Keywords, Check for EMDs, and Analyze the Competition

    My Blog - NichePursuits.com
    - Learn Step by Step How to Build Successful Niche Websites (from someone who has actually done it)!
    {{ DiscussionBoard.errors[1049685].message }}
    • Profile picture of the author Steve Diamond
      Originally Posted by keyblast5 View Post

      Thank you! I got it to work. I actually ended up using the "_top" in the form tag. The "_parent" was not working for some reason. However, I never would have figured it out without your suggestion. Thanks!
      Glad you figured it out!

      Steve
      Signature
      Mindfulness training & coaching online
      Reduce stress | Stay focused | Keep positive and balanced
      {{ DiscussionBoard.errors[1049721].message }}

Trending Topics