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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:43:41+00:00 2026-05-14T14:43:41+00:00

I am looking at getting the image name from an image with a src

  • 0

I am looking at getting the image name from an image with a src loaded dynamically.
Basically what I am doing is using the Google chat badge on a site to live chatting. And else where on the page, I have an image saying Live Chat:Online or Live Chat:Offline. And I want this to change depending on whether I am available to chat or not. Does this make sense?

Anyway, the easiest way I figure to do this would be check the img url. If the img is offline.gif then obviously I am offline.

An example of a dynamically loaded img would be something like

<img src="http://www.google.com/talk/service/badge/Show?encrypted_acount_id_here" />

Once this image has loaded, it loads one of the following images
“http://www.google.com/talk/service/resources/offlinef.gif”
“http://www.google.com/talk/service/resources/idlef.gif”
“http://www.google.com/talk/service/resources/onlinef.gif“

Hopefully this make sense now.

Thanks heaps

  • 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-14T14:43:42+00:00Added an answer on May 14, 2026 at 2:43 pm

    It’s possible that the image itself is generated dynamically in which case there wont be another source. The only reason you would see another source when you view it’s properties is because of the content headers of the generated image.

    If the src itself however is changed dynamically your best bet would to just get the src attribute from the element.

    If by chance what you actually are looking for is a way to programatically find a way to know if you are offline or online, you could try to get the alt attribute from the image. Most websites have an alt description for the image element and it should hopefully read online if the online image is showing or offline if the offline image is showing.

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

Sidebar

Related Questions

I'm getting about the same bad looking resizing from all the 4 algorithms of
After getting a profile hash from the LinkedIn Ruby Gem, but I'm looking for
I've been working on getting an image to upload from my iOS app to
Ok, so I've no problem getting a single image from a database. I use
I have recently started looking into using Azure but I'm having some issues getting
I'm looking for a way trough javascript find the main color from a image.
I'm looking to getting into image/video processing and was searching for a good library
I was looking at getting HTML-XML-Utils working on my computer and I noticed the
I'm looking for ways of getting rid of Windsor Xml configuration files. I want
I'm currently looking at different solutions getting 2 dimensional mathematical formulas into webpages. 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.