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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:06:50+00:00 2026-05-24T14:06:50+00:00

<table cellpadding=1 cellspacing=1 id=member><thead> <tr> <th>&nbsp;</th> <th>Gracz</th> <th>Ludność</th> <th>Osady</th><th>&nbsp;</th></tr></thead><tbody><tr> <td class=ra>1.</td><td class=pla><a href=spieler.php?uid=5473>rafal12</a></td><td class=hab>8801</td>

  • 0
<table cellpadding="1" cellspacing="1" id="member"><thead>
<tr>
<th>&nbsp;</th>
<th>Gracz</th>
<th>Ludność</th>
<th>Osady</th><th>&nbsp;</th></tr></thead><tbody><tr>
    <td class="ra">1.</td><td class="pla"><a href="spieler.php?uid=5473">rafal12</a></td><td class="hab">8801</td>
    <td class="vil">12</td><td class="on"><img class="online2" src="img/x.gif" title="Logował(a) się w ciągu ostatnich 24 godzin" alt="Logował(a) się w ciągu ostatnich 24 godzin" /></td></tr><tr>
    <td class="ra">2.</td><td class="pla"><a href="spieler.php?uid=3136">rspboss</a></td><td class="hab">7131</td>
    <td class="vil">11</td><td class="on"><img class="online2" src="img/x.gif" title="Logował(a) się w ciągu ostatnich 24 godzin" alt="Logował(a) się w ciągu ostatnich 24 godzin" /></td></tr><tr>
    <td class="ra">57.</td><td class="pla"><a href="spieler.php?uid=762">zxcv</a></td><td class="hab">1670</td>
    <td class="vil">4</td><td class="on"><img class="online1" src="img/x.gif" title="teraz on-line" alt="teraz on-line" /></td></tr><tr>
.... and so on...

That’s sample of html table that I want to collect data from. What I want to retrive are values inside img tags inside this table and make list of them. How can I get that value?

How can I say if img class was online1 or online2?

Any help is welcome

PS: it would be great, if someone would be so nice, to guide me how to make list of them and put it into XMLHttpRequest

  • 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-24T14:06:50+00:00Added an answer on May 24, 2026 at 2:06 pm
    //Find all the images that are inside the tbody of the table with the id member
    oImages = document.getElementById("member").getElementsByTagName("tbody")[0].getElementsByTagName("img");
    //Create an array that will contain refrences for all the img tags
    aImages = [];
    //go through all of the images, check their class, and append them to
    //the array if the class match
    for(i-0; i<oImages.length; i++){
      if(oImages[i].className == "online1") aImages.push(oImages[i]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my markup: <table class=col1table cellspacing=0 cellpadding=0> <tr> <td><a class=tips_trigger href=#><img src=/img/design/icon_tips_venn.png /></a></td>
<table cellpadding=0 cellspacing=0 border=1 class=display id=FormsData style=margin-bottom:5px;> <thead> <tr id=thFormsData> </tr> <tr> </tr> </thead>
Take a look at this table: <table cellpadding=0 cellspacing=0 class=order_form> <tr> <th>Amount</th> <th>Desc</th> <th>Price</th>
I have several forms like this: <table width=100% border=0 cellpadding=0 cellspacing=0 class=table_std> <tr id=exam_String_newValue_row>
CSS table tr {border-bottom:1px solid #008999} HTML <table width=100% cellspacing=0 cellpadding=0> <thead> <tr> <th
I built an HTML table: <table cellpadding=0 cellspacing=0 border=0 style=width:1000px id=maintable> <thead> <tr> <th
I have the following table : <table cellpadding=4 cellspacing=0 border=0> <tr> <td> <span class=label>Label1<
Presently I use: <table cellpadding=0 cellspacing=0> <tr><td><a href=cv.pdf target=_blank> <img src=graphics/pdf.gif width=24 height=24 /></a></td>
I have the following code <table cellpadding=2 cellspacing=2> <tr> <td>Factory:</td> <td> <asp:TextBox ID=txtFactory runat=server
<table cellspacing=0 cellpadding=0> <textarea rows=5 cols=60 name=question></textarea> <tr> <td><input type=text readonly=1 value=127.0.0.1 /></td> <td><input

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.