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

  • Home
  • SEARCH
  • 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 8554045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:47:32+00:00 2026-06-11T14:47:32+00:00

I would like to process this form with ajax, but it’s not entirely clear

  • 0

I would like to process this form with ajax, but it’s not entirely clear to me on how I should handle data before sending. This is my form, it’s an expression engine module that outputs that, so I’m not aware on what will happen into the php function :

<form id="bookmark_form_entry_106" class="bookmark_form" name="bookmark_form" method="post" action="http://mysite.com//S=1b73e2e22729ccf0613b758ecc7e2631fab28745/">

<div class="hiddenFields">
<input type="hidden" name="XID" value="438068dba50235d9992e1492a6171e892f7bac60">
<input type="hidden" name="ACT" value="50">
<input type="hidden" name="RET"     value="http://mysite.com/S=1b73e2e22729ccf0613b758ecc7e2631fab28745/video/esegui_slq_1">
<input type="hidden" name="type" value="entry">
<input type="hidden" name="data_id" value="106">
<input type="hidden" name="site_id" value="3">
</div>


<input type="submit" value="add bookmark">

</form> 

I will use jQuery $.ajax(); but I don’t know how to handle the form data:

$.ajax({  
type: "POST",  
url: "http://mysite.com//S=1b73e2e22729ccf0613b758ecc7e2631fab28745/",  // is this correct?
data: ,  // what data should go there?
success: function() {  
 // wohoo, this works! 
}  
});  

I’m quite a newbie with forms so I’m not sure if I had to know more about how the POST script will handle my data, or if knowing what’s inside the form itself it’s enough.

I’m also curious on how I can test this with the web inspector (or firebug) Thank you!

  • 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-11T14:47:33+00:00Added an answer on June 11, 2026 at 2:47 pm

    To get the data, you’ll need jQuery’s serialize function ( http://api.jquery.com/serialize/ ).

    var data = $('#form_id').serialize()
    

    Then just use the data variable in your AJAX call!

    Depending on how exactly you’re handling the submit of the form, you should probably be able to have the $(this) variable be your form which has been submitted.

    So a nice way of constructing your call would be:

    $.ajax({  
    type: "POST",  
    url: $(this).attr('action'),  // read the action attribute of the form
    data: $(this).serialize(),  // what data should go there?
    success: function() {  
     // wohoo, this works! 
    }  
    });  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that looks something like this: <form id=uploadForm name=uploadForm method=post enctype=multipart/form-data>
i would like to process an undefinitely long string in C++ by chunks of
I would like to process a frame element in my source xml file using
i would like to process infrared imaging in Matlab. Any kind of processing or
Given a very large string. I would like to process parts of the string
I would like to run a process from Python (2.4/2.5/2.6) using Popen , and
I would like to know the process and service providers who will enable me
I would like to create a child process in node, and block in a
I would like to make log in process more safely. And to achieve it
I would like seek some guidance in writing a process profiler which runs in

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.