Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8487557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:16:47+00:00 2026-06-10T21:16:47+00:00

I am using facebox to display a contact form, however when the user selects

  • 0

I am using facebox to display a contact form, however when the user selects submit I would like the action which for this example I shall call action=”contact_send.php” to also open in a facebox. Currently it is easy to open a link into a facebox by declaring the rel attribute as facebox
e.g.

<a href="contact.html" rel="facebox">Contact</a>

This opens contact.html in a facebox window, I would however like the action of this form to also open in a lightbox, does anyone have any suggestions that might help?

thanks in advance
-Ashutosh

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:16:48+00:00Added an answer on June 10, 2026 at 9:16 pm

    Your HTML FORM

    <form id="contactfrm" method="post" onsubmit="return false;">
     ....your form elements
     <input type="submit" onclick="submitContact();" />
    </form>
    

    EDIT :

    Your Script

    Now use jquery to submit form

    <script type="text/javascript">
    function submitContact() {
    
        $.facebox(function() {
    
            $.ajax({
                data: { 'name' : $('#name').val(), 'message' : $('#message').val() },  //Make sure to change these values that reflects yours.
                error: function() {
                    $.facebox('There was error sending your message.');
                },
                success: function(data) {
                    $.facebox(data); // the data returned by contact_send.php
                },
                type: 'post',
                url: 'contact_send.php'
            });
    
        });
    
    }
    </script>
    

    When you click submit button on your page, this code opens facebox and processes the variable you sent to contact_send.php page and returns the output from that page to the facebox.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the facebox plugin in jQuery. I would like to maintain a
I'm not good with javascript. I'm using a facebox login form based on this
So, I'm using Facebox 1.3 (latest) I call facebox with a link like this:
Hi I'm using facebox plugin to display iframe link. I want to change the
i am using facebox (a jquery modal plug-in) and tinymce for my textboxes. however
I am using facebox which uses jQuery 1.2.1 on my website here http://www.pointclickshoot.com/beta2 The
Im using facebox for delete data (conformation) from MySQL. i like to know how
Im in a page mainpage.aspx in which i have this code: <a rel=facebox href=destination.htm?path=blabla>mainpage</a>
Using Jenkins or Hudson I would like to create a pipeline of builds with
Using MVVM. I have a DataTemplate which I am using to display an expander

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.