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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:50:08+00:00 2026-06-10T08:50:08+00:00

I have html page with table on it. Simplify it may look at: <Row_ID>,

  • 0

I have html page with table on it. Simplify it may look at:

<Row_ID>, <bla-bla-bla>, <_XXX.XX%_ is complete> 

In C# I has a function that evaluate “% is complete” by ID. But it operation may take some times (not instant and may cause some delay )

Now I need implement auto-refresh of “% is complete” that will be update data in one or two minutes interval. I do not want to reload neither entire page nor entire table (if I do it by ajax). Because user may look at the page and the reloading will brake its current position (or even rows counts in the table).

So I think about javascript setTimeout that call some function and to get values from server (by JSON?) But I’m not sure about web-page freeze when javascript function will request data. May be there are another update methods exists?

Any versions or suggestions are welcome!

Sorry for my broken English.

  • 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-10T08:50:09+00:00Added an answer on June 10, 2026 at 8:50 am

    This should accomplish what you mean. I am assuming you will make a single call to return a JSON result of multiple results (most efficient). Also, jQuery ajax calls are asynchronous, so there will be no page ‘freeze’ – also, just guessing at your MVC Model setup, but I think you get the idea?

    <table>
        @foreach(var line in Model)
        {
        <tr>
            <td>@line.Id</td>
            <td>@line.Something</td>
            <td id="p-@line.Id">@line.Percentage% complete</td>                   
        </tr>
        }
    </table>
    

    JS:

    var to;
    $().ready(function() {
        ResetUpdate();
    });
    
    function Update() {
        // do your $.ajax();
        // if success,
        // assuming return data is an array like:
        var data = [ {id:1, p:26}, {id:2, p:99} ];
        for(var i = 0; i < data.length; i++) {
            $('#p-' + data[i].id).html(data[i].p + '% complete');            
        }
        ResetUpdate();
    }
    
    function ResetUpdate() {
        to = setTimeout("Update()", 120000); //2 minutes
    }
    

    Here is the jsFiddle.

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

Sidebar

Related Questions

So I have a html page that has a form, and a table inside
I have an HTML page that has many nested tables, for example table for
On a HTML page I have three sections with 3 tables. Each table has
I have an HTML-page with some data in table format, and this code: function
I have a html page that contains a structure like this: <table class=pick> <tr>
I have an HTML page (PHP, really) with a table cell that contains a
I have an html/css page that is supposed to use an html table layout
I have an index.html.erb page timesheet that has various js and jquery tables and
I have loaded a table of data into an HTML page so that it
I have a HTML page with about 50 tables on it. Each table has

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.