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 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

I make a user control and then want to include it on a page
Today, I started to code a page that prompts the user to choose their
I want to include a batch file rename functionality in my application. A user
I have a file that I want to include in Python but the included
Ok, so I'm building a website that has client profiles. A web user finds
We want to include data visualization in our desktop GUI (mostly timelines and graphs;
I want to include a link in my SiteMaster (using Html.ActionLink) UNLESS the view
I'm trying to highlight the search results but I want to include the surrounding
I have a MySQL query in which I want to include a list of
I have two classes, and want to include a static instance of one class

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.