1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Stay on page when submitting webform

Discussion in 'Programming' started by Searchnology.com, May 10, 2010.

  1. #1
    Hi,

    I need a way to use an html webform on a webpage and when the user clicks submit the "Thank you" page content replaces the webform on the same page. I am trying to prevent the user from leaving the webpage they are currently viewing.

    1. I can't use Iframes in this scenario.
    2. Alternatively, if the thank you page could popup in a very small new window they could work too.

    Thanks for any help.

    Kevin
     
    Searchnology.com, May 10, 2010 IP
  2. Qc4

    Qc4 Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    One possibility is to use AJAX to post the form data and fetch the result.
     
    Qc4, May 10, 2010 IP
  3. VarriaStudios

    VarriaStudios Member

    Messages:
    246
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    ajax and actionscript 3 "flash".
     
    VarriaStudios, May 11, 2010 IP
  4. myveed

    myveed Peon

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ajax would be fine.
     
    myveed, May 11, 2010 IP
  5. mc2fred

    mc2fred Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Replace the submit button in your form with a 'button' input and make it call a javascript function...then ajax is the best action from there

    May I suggest you look for the $.post function on jquery.com, imo it's the best way to do ajax. (Requiers Jquery)
     
    mc2fred, May 14, 2010 IP