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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:25:13+00:00 2026-05-16T15:25:13+00:00

In Prototype, this Ajax call posts its form to the server as a URL

  • 0

In Prototype, this Ajax call posts its form to the server as a URL encoded string of name-value pairs, as you would find in a HTTP GET request:

function doajax()
{
 var current_req = new Ajax.Request('/doajax', {
 asynchronous:true, 
 evalScripts:true,
 parameters: $('ajax_form').serialize(true)}
 );
}

How would you do the same thing using 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-05-16T15:25:14+00:00Added an answer on May 16, 2026 at 3:25 pm

    Since the default method for Ajax.Request is POST, the equivalent $.post() call would look like this:

    function doajax()
    {
      $.post('/doajax', $('#ajax_form').serialize(), function(respose) {
        //do something with response if needed
      });
    }
    

    If you don’t need/don’t care about the response, this will do:

    function doajax()
    {
      $.post('/doajax', $('#ajax_form').serialize());
    }
    

    Or, if you’re specifically fetching a script, then it’ll look like this, using $.ajax():

    function doajax()
    {
      $.ajax({
        url:'/doajax', 
        type: 'POST',
        data: $('#ajax_form').serialize(),
        dataType: 'script',
        success: function(respose) {
          //do something with response if needed
        }
      });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a HTML-page, that's encoded in ISO-8859-1 and a Prototype-AJAX call that's build
How do you convert this Prototype Ajax call to a jQuery implementation that functions
There is currently this Prototype code that does a PUT: new Ajax.Request(someUrl, { method:
This is an example code from the prototype site. var url = '/proxy?url=' +
I am looking for help to convert this prototype to jquery. Thank you. Ajax.Responders.register({
I have an Ajax call written in prototype and need to convert it to
@ref prototype.js I have seen this Prototype.js ajax syntax used everywhere. However I have
So, I created an object which makes an AJAX call to populate its properties
i use this code to track all the ajax requests from my site XMLHttpRequest.prototype.uniqueID
I have a call to a service using ajax, i would like if everything

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.