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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:47:56+00:00 2026-05-31T07:47:56+00:00

This works in IE but not Chrome. So something to do with how the

  • 0

This works in IE but not Chrome. So something to do with how the browser handles the code. I’m fairly new to all this so apologies for not realizing the solution if it’s simple. I looked around for something similar but couldn’t find it.

function reFillTable(newData)
{
var tbl = document.getElementById("string"); //works
var tblLength = tbl.rows.length; //this works fine
var row = null;
var cell = null;
splitString = newData.split(" ");
var tableIndex = 1;

for (var n = 0; n < tblLength; n++)
{

  row = tbl.rows(n); //this breaks in chrome but not IE???????
  //code continues but is irrelevant as of now...

}



}

I can get an alert before the “row = tbl.rows(n);” but not after so it’s clearly breaking on this line. What’s the deal here? Also, is there a better way to traverse a table than this method? It was the only thing I found so I’ve been using this.

  • 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-31T07:47:57+00:00Added an answer on May 31, 2026 at 7:47 am

    try using row = tbl.rows[n];

    It is the proper way for traversing table, and supported by all browsers

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

Sidebar

Related Questions

$.post($(this).attr(action), $(this).serialize(), function(json) { alert('red'); AddItemAjax(json); }, json); This works in Chrome but not
I'm trying to figure out why this works in FireFox, Chrome but not in
This javascript code does not work in IE8, but works in Firefox and Google
Can't seem to figure out why this works in Safari but not in chrome.
This works in FF6 and IE 7, 8 and 9, but not Chrome/Safari or
This works in jQuery 1.3.2, but not in 1.4 $(#container).children().map(function() { var child =
This statements works fine in BASH v. 4.1.7(1), but not in BASH v. 4.2.20(1)
This .show and .hide works great in Firefox 3 but not in IE 7.
I found this in Ryan Bates' railscast site, but not sure how it works.
My Apache server works fine without -DSSL, but does not start with SSL. This

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.