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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:19:19+00:00 2026-05-21T11:19:19+00:00

I just upgraded to JQuery 1.5.2 from 1.4 and my PostForm is not working

  • 0

I just upgraded to JQuery 1.5.2 from 1.4 and my PostForm is not working now . It does post to page but even though there is no error it says there is error.

function TestPostForm(){
               $.ajax({
                    type: "POST",
                    url: "process.jsp",
                    data: 'operation=Test&ui=TestUser',
                    dataType: "application/x-www-form-urlencoded",
                    async: false,
                    success: function(response) {
                        alert('Success');
                        return response;                    
                     },
                         error: function(xhr, ajaxOptions, thrownError) {
                              alert("There was an error : " + xhr.status);
                       }
                    });
              } 

Java Code : process.jsp

if (operation.equals("Test")) {
            String ui = request.getParameter("ui");
            out.println("Ok" + ui);
        }
  • 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-21T11:19:20+00:00Added an answer on May 21, 2026 at 11:19 am

    Your problem is with dataType, what you should have defined was contentTypeString:

    contentType: "application/x-www-form-urlencoded"
    

    dataType defines what type of data you expect your script to return (xml, json, script or html) while contentType passes the type of content you are sending in the request.

    You can read more about these options on the jQuery API: http://api.jquery.com/jQuery.ajax/

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

Sidebar

Related Questions

UPDATE 1: I've just upgraded from jquery 1.4.4 to 1.6.1. How does that effect
I just upgraded my jQuery from 1.3.2 to 1.4.2, and I think it's giving
I just upgraded jQuery to version 1.4.2 and I am now getting an error
I just upgraded from SnowLeapord to Lion and now cannot create virtualenvs. I understand
Just upgraded from jQuery 1.3.2 to 1.8.2 and found that several functions that worked
I just upgraded to Linux Mint 14 and to Rails 3.2.9 from 3.2.8. Now
We just upgraded our code to .Net 4.5 and are using VS2012 now, but
just upgraded from jquery 1.4.2 to 1.4.4 and i've encountered a performance problem which
Looking for a best practice here. But I just recently upgraded an app from
I just upgraded my app from 3.2.2 to 3.2.8. I use jquery-tooltip. Once I

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.