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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:28:17+00:00 2026-05-23T21:28:17+00:00

I have read many other posts on here that state the same issue and

  • 0

I have read many other posts on here that state the same issue and it turns out to be invalid json.

This however is not my problem, I am surrering from the same symptoms but the json is valid as far as I can tell:

ok, this is my code:

function CheckEmail(email) {
    $.ajax({
        type: "GET",
        url: "<%=_baseUrl%>/CheckEmail.ashx?email=" + email,
        dataType: "json",
        success: function (response) {
            var json = response;

            if (json.emailExists == "true") {
                emailValid = false;
                $('#emailError').html('Email address already exists in our system, please try a different address');
            }
            else {
                emailValid = true;
                $('#emailError').html('');
            }
        },
        error: function (response, ajaxOptions, thrownError) {
            emailValid = false;
        }

    });
}

I am always getting into the error event.

This is the response from the ashx handler (as seen through fiddler):

Headers

HTTP/1.1 200 OK
Date: Fri, 22 Jul 2011 08:22:39 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Length: 23

Content

{"emailExists":"false"}

Can someone suggest why this might be failing??

thrownError = “”
ajaxOptions = “error”
and the errorText in the response = “error”

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

    Could this – jquery ajax has a problem getting return value from ashx handler – be a possible answer? Seems to be having the same problem as you!

    EDIT:
    I’m curious about the reasons behind it as well. A null might be returned if it’s an asynchronous ajax call (http://roshanbh.com.np/2008/01/how-to-return-value-from-ajax-function-use-synchronous-request.html), which jQuery ajax is by default. But yours works fine if it’s a relative path. Maybe this is a problem where the absolute path causes a cross-domain call, and the return value is ignored for some reason? Are you able to try using an absolute path and force synchronous ajax call?

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

Sidebar

Related Questions

I have read the posts I found here and in many other places -
Am tearing my hair out here. Have read many examples which describe how to
I have read so many times, here and everywhere on the net, that mutexes
I have read in many posts that global variables are bad, but I need
I have read in many places that network connection in a j2me app should
Alright...I've given the site a fair search and have read over many posts about
Ignoring unsafe code, .NET cannot have memory leaks. I've read this endlessly from many
OK I have read many posts regarding Dual Licensing using MIT and GPL licenses.
I have read other related posts, but am still not quite sure how, or
I have read a lot of gwt-mvp questions that are asked here, but since

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.