Results 1 to 5 of 5

Thread: Change target of Submit button?
      
   

  1. #1
    jeffdoaninc is offline Corporal
    Join Date
    Mar 2009
    Posts
    13

    Default Change target of Submit button?

    Hello. I have a form inside of an iframe that is on every page of my website. I want to make it so that when the submit button is clicked, the "Thank you" page shows up in the whole browser, not just the iframe. Also, I really don't want to use an error page, since I have custom error messages that pop up when bad data is entered. How do I disable the error page? I tried just deleting the "./error.html" out of the field for it... but that didn't work... I think.

    Can someone let me know how I can do this??

    Thanks!!

  2. #2
    jeffdoaninc is offline Corporal
    Join Date
    Mar 2009
    Posts
    13

    Default Re: Change target of Submit button?

    Welp, 45 minutes later.... I figured it out on my own!

    Just in case anyone else wants to know how to do this, I will write up a summary shortly after I'm finished publishing :)

  3. #3
    jeffdoaninc is offline Corporal
    Join Date
    Mar 2009
    Posts
    13

    Default Re: Change target of Submit button?

    Ahhh... I think I spoke too soon. I did get it to work and open in the "_top" window, but now the form will not send me the data. I was able top make the "Thank You" page open outside of the iframe in the "_top" window by adding this to the submit button's events:

    The event is an "onClick" with the action "Javascript Function"

    My javascript code is: window.open('/thankyou.php','_top');

    This works and the Thank You page opens in the entire window... but I don't get the data!! Help!! :(

  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: Change target of Submit button?

    Remove the event. It simply opens the thankyou page without sending any info.

    Right click the form, and select HTML, then , in the Inside tag, add this code:

    target="_parent"
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  5. #5
    jeffdoaninc is offline Corporal
    Join Date
    Mar 2009
    Posts
    13

    Default Re: Change target of Submit button?

    Thank you for your reply! I was worried that a more technical question might go unanswered. However, I ended up scratching the idea to load the Thank You page in the entire window, and created a smaller version of it in order to just simply let it load in the iframe.

    Again, thank you!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49