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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:56:29+00:00 2026-06-16T16:56:29+00:00

What I want to do is ones a user is finished typing his/her e-mail

  • 0

What I want to do is “ones a user is finished typing his/her e-mail and has moved to password field or just finished typing e-mail, to have jquery load the users gravatar based on the e-mail that was inserted on the login page and load this image into the div that contains temporary no-image image.”

How can I do this with jQuery

  • 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-16T16:56:31+00:00Added an answer on June 16, 2026 at 4:56 pm

    No HTML given

    <input id="email" ... /><img id="gravatar" style="display:none;"/>
    

    It doesn’t need ajax as someone suggested because the gravatar call is very simple.

    jQuery

    $('#email').on('change', function(){
        var hash=md5($('#email').val()); // you will need to find a javascript md5 function
        $('#gravatar').attr('src', 'http://www.gravatar.com/avatar/' + hash).show();
    });
    

    I haven’t bothered to preload the image.

    “or just finished typing e-mail” – if you want to do this you would throw in an email address validation function and check on keyup too.

    $('#email').on('keyup change', function(){
        if (is_email_address($(this).val()){
            var hash=md5($('#email').val()); // you will need to find a javascript md5 function
            $('#gravatar').attr('src', 'http://www.gravatar.com/avatar/' + hash).show();
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have strings like the ones below in a SQL column. I want to
I have a list of objects and I want to remove all the ones
I have this file file.txt which I want to split into many smaller ones.
I have a Lexicon model, and I want user to be able to create
I have a draggable object (div), and some droppable ones (table TD's). I want
I want to have a base class called MBUser that has some predefined properties,
I have a User Control with a DetailsView that has the property AutoGenerateRows set
I want to have an ajaxed form and when a user clicks submit it
I'm writing a web page that has a from field that allows a user
I have an editable UITableView. While my user is re-arranging the cells, I want

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.