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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:50:52+00:00 2026-06-17T18:50:52+00:00

function validate (user_value){ var name = user_value; $.ajax({ url:ggs.erm.servlet.setup5.AjaxS, data:{ namee :name}, success:function(){ alert(worked);

  • 0
function validate (user_value){
    var name = user_value;
    $.ajax({
        url:"ggs.erm.servlet.setup5.AjaxS",
        data:{ namee :name},
        success:function(){
            alert("worked");
        }
    });
}

This is my Code. Is something wrong with it?? Any kind of syntax or semantics error.
Problem:Not able to send parameter to servlet in URL.?????

  • 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-17T18:50:54+00:00Added an answer on June 17, 2026 at 6:50 pm

    If you want your servlet’s doPost method to handle the request you should add property type with value post.

    function validate (user_value){
        var name = user_value;
        $.ajax({
            url:"ggs.erm.servlet.setup5.AjaxS",
            data:{ namee :name},
            type: 'post',
            success:function(){
                alert("worked");
            }
        });
    }
    

    This way your Ajax request will be post instead of get (the default one).

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

Sidebar

Related Questions

I have this function: function validate($data) { $newData = str_replace( , , $newData); $newData =
I wrote a javascript function to validate that the user input data is not
The function is used to validate the input. It prompts the user for a
I am puzzled why this return false doesn't cancel the post-back. function validate() {
yet I didnt find a jquery function that validate value to be a future
I've cobbled together a jQuery function to validate email and submit the form using
I have done various tests and I have found that the jQuery validate function
What would the regex expression that would go into preg_split function to validate date
I have two asp.net textboxes and need to put a validate function in javascript
I'm calling a php function from my $.ajax call to add a new item

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.