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 8328895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:35:14+00:00 2026-06-09T01:35:14+00:00

I am using a Form in a LightBox which contains some input element. <form

  • 0

I am using a Form in a LightBox which contains some input element.

<form name="imageUploadForm" action="uploadImage.do" method="post" enctype="multipart/form-data">
<input type="text"  id="id" name="id" style="display: none;" value="">
<div id="fileUploaderDiv">
     <input type='file' name="file0" id ="file0"  />
</div>
<button onclick="javascript:ImageUploader.attachImage();">Upload</button>
</form>

can anybody tell me how to copy this form in new one and submit it without redirecting user or knowing him about form submission using javascript or jquery?

  • 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-09T01:35:15+00:00Added an answer on June 9, 2026 at 1:35 am

    http://api.jquery.com/serialize/

    $('#yourbutton_notintheexample_you_provided').click(function(){ 
        var myForm = $('form[name=imageUploadForm]')
        var data = myForm.serialize();
        $.ajax({
           url: myForm.attr('action'),
           type: myForm.attr('method'),
           data: data, 
           success: function(){
               window.alert("write your form handling code here")
            }
        });
    });
    

    or something along the lines.

    In prototype, there was a single convenience method, called Form.request, read about it here.

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

Sidebar

Related Questions

I am using a Form in a LightBox which contains some input element. <form
I send form data using php in colorbox(lightbox) ifarme method. so i close auto
I am using form_tag <%= form_tag url_for(:action=>'url'), :onclick=> $('.submit_btn').addClass('disabled');, :complete=>$(.submit_btn).removeClass(disabled), :method=>post, :remote =>true do
I have a form made using Webform[Drupal] which I load on the lightbox. The
Using colorbox.js, I am opening a form in a lightbox when the user clicks
i am using form authentication for my website which is written in ASP.Net, but
Code to create new form instance of a closed form using form name I
Ordinarily, using form_for(@foo) means that on the back end of the form's action, you'll
I am trying to put in a log-in form via a lightbox using inline
i'm using form with enctype multipart/form-data for uploading photo, so below is my code

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.