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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:15:16+00:00 2026-05-18T21:15:16+00:00

In prototype I could post a form to its action with its populated form

  • 0

In prototype I could post a form to its action with its populated form data just by:

$('form-id').request({
  onComplete: function(response){ /* whatever */ }
})

I realise that I can always build my request by explicitly stating the fields like:

$.post("/my-action-url/",
   { firstformfield: $("#firstformfield").val(), second: $("#second").val() },
    function(data){
 }
); 

But for me its a big code redundancy as a lot of my application logic lies in forms, and I don’t want to build extra javascript functions for every template..

I think its not so hard to do. Because you basically just have to extract the form action url, loop through all the form fields in it and build your request based on that…
Of course there are some specialities like encoding and stuff, but well…

I think I could do this on my own but I wonder whether its not available yet? I didn’t find it in the docs.

Also I read that jQuery supports plugin, maby theres something for that?

  • 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-05-18T21:15:17+00:00Added an answer on May 18, 2026 at 9:15 pm

    jQuery serialize

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

Sidebar

Related Questions

I wonder if someone could be kind enough to explain the function.prototype thingie (thingie!!??)
could anyone please tell me, where in Javascript the difference between MyClass.prototype = new
I have a prototype: int[] medianFileter(int[] data); and an array int[] intVal = new
I have the function prototype here: extern C void __stdcall__declspec(dllexport) ReturnPulse(double*,double*,double*,double*,double*); I need to
(Sorry in advance if the post is to long, I just add all the
$.Comment = function() { this.alertme = Alert!; } $.Comment.prototype.send = function() { var self
How could I generalise the function below to take N arguments? (Using call or
Could anyone say why the following recursive function does not work for me ?
With the help of members from this post , I converted from prototype to
How do you prototype your software UI? What's your experience? Could you please share

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.