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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:16:44+00:00 2026-06-18T02:16:44+00:00

Okay To start off this is my first post so I apologize initially for

  • 0

Okay To start off this is my first post so I apologize initially for any “Newbie” mistakes I may Make. I will try to be Detailed as possible and lay it out as best I can.

What I Am doing:

Creating a Chrome App for Internal Company Use.

Issue:

Parsing Through an Ajax Call that contains full HTML Data from a loaded ajax call:

What I don’t Have access to:

Server based PHP or MYSQL.

What I do have access to:

Full html data of all pages that contain the data that I need to loop through, as well as posting new data to server via put and get.

App Is already setup for permissions to access cross domain data so I will not run into issues with ajax and it cross domain policy. All data pulls successfully for pages I need to pull.

What I am Using:
Jquery
Javascript for things that may or not be supported or my lack of understanding of J Query as it is pretty robust and still trying to grasp the different api’s available.

Problem:

I am able to load the ajax data with the html data I need. I have listed how the html looks after i have used Jquery “find” to locate the tbody within the html of the call I orginally made with ajax and what I filtered out so far. I also have it printing to consol.log(variablename) in the console of chrome. I have listed my goal for this data below the code. I am not worried about cross browser compatibility as this will be a chrome only app and other browsers will not be using the code.

<tbody>
<tr>
<td><strong>Header 1</strong></td>
<td><strong>Header 2</strong></td>
<td><strong>Header 3</strong></td>
<td><strong>Header 4</strong></td>
<td><strong>Header 5</strong></td>
<td><strong>Header 6</strong></td>
<td><strong>Header 7</strong></td>
</tr>
<tr >
<td>image location link</td>
<td>another link</td>
<td>Product</td>
<td>New</td>
<td></td>
<td>date</td>
<td></td>
<td>another link to an account</td>
</tr>
<tr>
<td>image location link</td>
<td>another link</td>
<td>Product2</td>
<td>New</td>
<td></td>
<td>date</td>
<td></td>
<td>another link to an account</td>
</tr>
<tr>
<td>image location link</td>
<td>another link</td>
<td>Product</td>
<td>old</td>
<td></td>
<td>date</td>
<td></td>
<td>another link to an account</td>
</tr>
</tbody>

Goal: The Tbody above will have more tr’s then listed but is a sample of what is available. I would need to parse through the data each time and find each tr with td’s that contain the Same product type and the td that has “New” Listed.

I really appreciate your guys help on this and look forward to hearing your responses.

What I have attempted using Jquery:

Trying to use contains and each loop to create a new data object. Instead of providing some horribly written code haha, I would like if someone can provide some great framework code that will help me get to the next level if possible.

Thanks 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-06-18T02:16:46+00:00Added an answer on June 18, 2026 at 2:16 am

    So you can find for New or find or old and get rid of the old. It’s up to you.

    Here is another update that provides a second table. This should get you started. Basically it skips the first “tr” since that is the header and finds the rest that have New at the 4 position. Closest traverses up the dom to the first parent.

    http://jsfiddle.net/JzUrq/2/

    var data = $("#holder").html();
    
    $("#newTable").append($(data).find("tr:eq(0)"));
    
    $(data).find("tr:gt(0) :nth-child(4):contains('New')").closest('tr').each(function(index){
        var row = "<tr>"+$(this).html()+"</tr>";
        $("#newTable").append(row);
    });
    

    Something else you can do is set the html to that entire table and simple hide anything with old.

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

Sidebar

Related Questions

Okay, this question has evolved a bit, and I want to try to start
Okay, first off I will attempt to explain what I'm trying to do. I
Okay so I have two problems. First off I have made a square that
Okay, let's start with this very simple button click method private void button1_Click(object sender,
Okay, let's start with an example. Keep in mind, this is only an example.
Okay, so this is my first project using PHP and MySQL and I thought
Okay, I'm working on a iPhone game. You start off on a menu screen,
Okay, start out saying this is hard to explain with words only. So i
Okay let me start off by saying I have been looking around a lot
i try to run php processes in background and start this from an php

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.