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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:44:34+00:00 2026-05-28T18:44:34+00:00

I am using jQuery Ajax API to handle my CRUD operations. I encounter the

  • 0

I am using jQuery Ajax API to handle my CRUD operations. I encounter the situation that I want to call the server using AJAX but do not want to handle the result with a callback function. Is there any way to handle the result without using callback functions.

There is sample code describes what I want.

        if (ConfirmUserName(userName)) {
            return "User Already Exist";
        }
        else {
            return true;
        } 

The function used validates userName. Please note SendRequest method sends synchronous AJAX call to server.

function ConfirmUserName(userName) {
            var validate = false;
            SendRequest("/ClientUser/ValidateUserName", { ClientUserName: userName }, null, function (returnedData) {
                validate = returnedData;

            }, function () { }, null);
        return validate;
        }
  • 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-28T18:44:35+00:00Added an answer on May 28, 2026 at 6:44 pm

    If you are not expecting any output results from the Ajax request, you can simply ignore the success attribute. However, this will have its own implications.

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

Sidebar

Related Questions

I'm trying to submit a simple jQuery ajax call but using the DELETE method
I am trying to call a Sample API from my JSP using jQuery Ajax,
I am using the jquery ajax api so load in some content, the code
I'm using jQuery's ajax methods to interact with the Twitter REST API . Their
I'm using jquery ajax to post updates back to my server. I'm concerned about
I am posting to the server using jquery ajax using $.post. After server returns
How would you access the cache from a jQuery ajax call? I'm using jquery
I have some content that I am loading using jquery ajax. The content has
I'm having difficulty parsing some JSON data returned from my server using jQuery.ajax() To
I'm using jQuery.ajax() to make a PUT request to a REST web service, but

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.