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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:05:45+00:00 2026-05-24T17:05:45+00:00

I am trying to Create a HTML report. In this at run time of

  • 0

I am trying to Create a HTML report. In this at run time of execution of my code i create a HTML file which has details of report in table format and some labels.
Now my HTML Report should read the file as in col-row format so that i can traverse to required data and get the same in my HTML Report.

my new Report

<tr><td>
<a " href=./" target="_top">All Test</a><br>
<a " href=./" target="_top">All Errors</a><br> ......
</td><td><table>{Here the data should be generated as per click on the above link}</table></td>

The data should be generated by reading the HTML file and when in clicks the Link (eg.Alltest)

And i am not getting what to write in front of href in the link.

UPDATE: Create a HTML page which is created from data of another HTML file. In other words i want to add a table which create the contents of it dynamically on click event of the link, and the contents are stored in another HTML file.

UPDATE2:
1. On Load ALLTest link will be active and data will be loaded in table from another HTML file.
2. If the user clicks the Allerror Link the rows containing status error in HTML file should be loaded in table.

UPDATE3:

$(document).ready(function(){
 $("button").click(function(){
  $.ajax({url:"report.html", success:function(result){
   result=*{updated result}*
   $(".mytable").html(result);
  }});
});});

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-05-24T17:05:46+00:00Added an answer on May 24, 2026 at 5:05 pm

    From looking at your code sample and the provided tags, I assume you’re trying to generate the contents of the TABLE tag. To do this, you need to fix the HTML code, because your anchor (A) tags do not have a valid href attribute:

    <tr><td>
    <a href="#" class="showtests">All Test</a><br>
    <a href="#" class="showerrors">All Errors</a><br> ......
    </td><td><table class="mytable">{Here the data should be generated as per click on the above link}
    </table></td>
    

    To make jQuery selections a bit easier, I’ve added some class attributes. Now you can use the following jQuery script:

    $(function() { 
        $(".showtests").click(function() { 
            $(".mytable").load("http://www.mysite.com/tests.html");
            $(".mytable TD:nth-child(3):not(':contains(\'test\')')").parent().remove();   
        });
        $(".showerrors").click(function() { 
            $(".mytable").load("http://www.mysite.com/errors.html");
            $(".mytable TD:nth-child(3):not(':contains(\'error\')')").parent().remove();   
        });
    });
    

    After the HTML rows are loaded into the table, the rows not containing the right status (“test” or “error”) are removed. This example checks the third column, which you can adjust by updating nth-child(3) with the correct column index.

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

Sidebar

Related Questions

This is my first time using XSLT. I'm trying to create a file that
I'm following this guide: http://www.math.umd.edu/~dcarrera/ruby/0.3/chp_01/programs.html and I'm trying to create my first ruby program.
I'm trying to create an html table for order logs for customers. A customer
I am trying to create a html page with persistent footers using jquery mobile.This
I'm trying to create a master index file for a bunch of HTML files
I'm trying to create an html table from database records. I want the table
I'm trying to create a report by generating a PDF based on HTML. At
I am trying to create an html table by querying on an xml document.
I'm trying to create a simple report on an intranet site. Based on this
I am trying to create simple user registration form. I have an index.html file

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.