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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:31:56+00:00 2026-05-25T10:31:56+00:00

I want to include a function on my page, that checks whether the user

  • 0

I want to include a function on my page, that checks whether the user has a Gravatar account with their email. If yes, they should have that picture displayed, if not they should be given other options.

I’m trying to do this as follows:

  $.ajax({
      url: 'https://secure.gravatar.com/' + md5(user.email) + '.json',
      method: 'GET',
      timeout: 4000,
      success: function successFn() {
          doGravatarStuff();
      },
      error: function errorFn(response, status, error) {
          console.log(response.status); //debug
      }
  });

This always returns an error status of 0 on Internet Explorer and I can’t seem to figure out why. I tried changing the ‘dataType’ to ‘json’, ‘html’ etc but that doesn’t seem to help.

Also, and maybe that is a related problem, if I test this on FF or Crome, with a user that really doesn’t have an account, it returns a 404-error according to the ‘net’ tab readout

404 Not Found 649ms

but ‘response.status’ still seems to be 0

Any ideas anyone? Thanks so much in advance!!

  • 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-25T10:31:57+00:00Added an answer on May 25, 2026 at 10:31 am

    Normally cross-domain AJAX requests are denied because it’s a security thing. See this blog article: http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/

    Did you try the jsonp dataType? I use jsonp when I access twitter’s tweet json feed.

    Example:

    var urls = "http://twitter.com/status/user_timeline/" + username + ".json?count=" + pageSize + "&page=" + currentPage;
    
      $.ajax({
        beforeSend: function () {
          $("#ajax-load").fadeIn()
        },
        url: urls,
        cache: true,
        type: 'GET',
        dataType: 'jsonp',
        success: twitterCallback2
      });
    
      };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today, I started to code a page that prompts the user to choose their
I have a function in my login form that checks if the email and
I have a UserControl that I want to include in a page multiple times
I have problem that on server include() function does not want to work and
I have a email system I am building for a company that they want
I'm writing a web page that has a from field that allows a user
I've got a ColdFusion page that I want to include some admin level jQuery
I want to include a header file only if a certain function body is
I want to include a batch file rename functionality in my application. A user
I want to include a folder in a setup project so that when 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.