Argh, Javascript + Forms and me = DISASTER!

Discussion in 'JavaScript' started by tomabyte, May 15, 2010.

  1. #1
    Hello, I am developing a contact form and I have the form fully working but all I want is for when you fill out the contact form and submit it, a Lightbox window shows the confirmation page instead of it opening in the whole window. I have tried everything I can think of (I am a complete newbie with JS) so I am hoping one of the nice experts here could help me out. The form is located here: http://tomabyte.co.uk/FORM-SPACE/

    If someone could help me I would highly appreciate it.
    Cheers, Tom.
     
    tomabyte, May 15, 2010 IP
  2. swashata

    swashata Member

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #2
    What do you mean by a lightbox windo??
    you currently have
    <form target="foo" onsubmit="window.open('', 'foo', 'width=800,height=220,status=no,resizable=no,scrollbars=no')" name="fsForm959562" action="http://www.formstack.com/forms/index.php" method="post">
    HTML:
    delete this target="foo" onsubmit="window.open('', 'foo', 'width=800,height=220,status=no,resizable=no,scrollbars=no')" to submit the form on the current page!

    If you want the submission to be done on that page along with the form, then you can use AJAX forms... Here are some examples:

    Hope that helps!
     
    swashata, May 16, 2010 IP
  3. tomabyte

    tomabyte Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks but I don't think you understand. A lightbox window is a Javascript window that shows up, for example, FancyBox: fancybox.net

    What I want is when you click "Submit" a FancyBox window to show the result page. What I currently have is just an alternative to what I want.

    Thanks for replying.
     
    tomabyte, May 16, 2010 IP